:root {
  --ink: #242230;
  --navy: #173b78;
  --muted: #696574;
  --paper: #fffdf8;
  --white: #ffffff;
  --pink: #ff66a3;
  --blue: #6670ff;
  --soft-blue: #dfeeff;
  --mint: #c9f4df;
  --sun: #ffdf59;
  --cream: #fff2c7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.65rem 1.25rem;
  border-bottom: 2px solid var(--ink);
  background: rgb(255 253 248 / 94%);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav nav a {
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible,
.site-nav nav a.is-active {
  border-color: var(--ink);
  background: var(--sun);
  color: var(--ink);
}

.site-nav nav .nav-cv-link {
  border-color: var(--ink);
  background: var(--pink);
  color: var(--ink);
}

.demo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  min-height: min(780px, calc(100svh - 72px));
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgb(255 255 255 / 65%) 0 8%, transparent 8.2%),
    linear-gradient(135deg, #e3f3ff 0%, #fff2c7 52%, #ffd9e8 100%);
}

.demo-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 2px dashed rgb(36 34 48 / 22%);
  border-radius: 50%;
}

.demo-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(4rem, 9vw, 8.2rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-shadow: 6px 6px 0 var(--pink);
}

.hero-lead {
  max-width: 41rem;
  margin: 1.6rem 0 0;
  color: #4f4b59;
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-action,
.demo-footer a {
  display: inline-flex;
  margin-top: 1.5rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-action:hover,
.hero-action:focus-visible,
.demo-footer a:hover,
.demo-footer a:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-phone-stack {
  position: relative;
  z-index: 1;
  min-height: 580px;
}

.hero-phone {
  position: absolute;
  width: min(280px, 43%);
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--white);
  box-shadow: 10px 12px 0 rgb(36 34 48 / 18%);
}

.hero-phone img {
  width: 100%;
  height: auto;
}

.hero-phone-back {
  top: 0;
  left: 14%;
  transform: rotate(-7deg);
}

.hero-phone-front {
  right: 10%;
  bottom: -3rem;
  transform: rotate(7deg);
}

.hero-spark {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 4px 4px 0 rgb(36 34 48 / 18%);
}

.hero-spark-one {
  top: 14%;
  right: 1%;
  background: var(--sun);
}

.hero-spark-two {
  bottom: 8%;
  left: 4%;
  background: var(--pink);
}

.video-section,
.ui-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4.5rem);
}

.video-section {
  border-bottom: 2px solid var(--ink);
  background: var(--mint);
}

.ui-section {
  border-bottom: 2px solid var(--ink);
  background: #e8eaff;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto 2rem;
}

.section-heading > span {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1440px;
  margin: 0 auto;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(220px, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 rgb(36 34 48 / 18%);
}

.video-card-sun {
  background: var(--cream);
}

.video-card-blue {
  background: var(--soft-blue);
}

.video-frame {
  max-width: 290px;
  margin: 0 auto;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 5px 5px 0 rgb(36 34 48 / 16%);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 16px;
  background: #111;
  object-fit: cover;
}

.video-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.96;
}

.video-copy p {
  margin: 0.8rem 0 0;
  color: #57525f;
  font-weight: 650;
  line-height: 1.55;
}

.gallery-hint {
  max-width: 1440px;
  margin: -1rem auto 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.ui-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.4rem);
  max-width: 1440px;
  margin: 0 auto;
}

.ui-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: 6px 6px 0 rgb(36 34 48 / 16%);
  cursor: zoom-in;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ui-card:hover,
.ui-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 rgb(36 34 48 / 19%);
  outline: none;
}

.ui-image {
  display: block;
  height: clamp(360px, 48vw, 590px);
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: #f3f0e8;
}

.ui-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease;
}

.ui-card:hover .ui-image img,
.ui-card:focus-visible .ui-image img {
  transform: scale(1.025);
}

.ui-copy {
  display: block;
  padding: 1rem;
}

.ui-copy strong,
.ui-copy small {
  display: block;
}

.ui-copy strong {
  font-size: 1.1rem;
}

.ui-copy small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.demo-footer {
  padding: clamp(4rem, 9vw, 8rem) 1rem;
  background: #ffdce9;
  text-align: center;
}

.demo-footer h2 {
  margin: 0.6rem auto 0;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}

.image-lightbox::backdrop {
  background: rgb(20 18 29 / 94%);
  backdrop-filter: blur(10px);
}

.lightbox-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 4.5rem 1rem 1.5rem;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 45%);
}

.lightbox-stage p {
  margin: 0.8rem 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.85rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  z-index: 1;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0 0.12em;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(20 18 29 / 72%);
  color: var(--white);
  font: inherit;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--white);
  color: var(--ink);
  outline: none;
}

@media (max-width: 1180px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    grid-template-columns: minmax(230px, 0.7fr) 1fr;
  }

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

  .ui-image {
    height: min(72vw, 680px);
  }
}

@media (max-width: 900px) {
  .site-nav {
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
  }

  .brand-mark {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .site-nav nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .demo-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-phone-stack {
    min-height: 580px;
  }

  .hero-phone {
    width: min(285px, 45%);
  }
}

@media (max-width: 620px) {
  .demo-hero {
    padding: 3.5rem 1rem 2.5rem;
  }

  .demo-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
    text-shadow: 4px 4px 0 var(--pink);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-phone-stack {
    min-height: 390px;
  }

  .hero-phone {
    width: 48%;
    border-radius: 22px;
  }

  .hero-phone-back {
    left: 5%;
  }

  .hero-phone-front {
    right: 5%;
    bottom: -1rem;
  }

  .hero-spark {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.35rem;
  }

  .video-section,
  .ui-section {
    padding: 3.75rem 0.75rem;
  }

  .section-heading {
    gap: 0.65rem;
  }

  .section-heading > span {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .section-heading h2 {
    font-size: 2.7rem;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

  .video-frame {
    width: min(100%, 320px);
  }

  .video-copy {
    padding: 0.2rem 0.25rem 0.35rem;
  }

  .ui-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .ui-image {
    height: 58vw;
  }

  .ui-copy {
    padding: 0.75rem;
  }

  .ui-copy strong {
    font-size: 0.86rem;
  }

  .ui-copy small {
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
