:root {
  --ink: #0a0a0a;
  --muted: #6f6f6f;
  --bg: #ffffff;
  --placeholder: #d9d9d9;
  --max: 1014px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* photos bleed past the right edge on purpose — crop, never scroll sideways */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  /* Design uses SF Pro Rounded; ui-rounded resolves to it on Apple devices,
     Varela Round is the closest free webfont for other platforms */
  font-family: ui-rounded, "SF Pro Rounded", "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px 0;
}

.logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 24px 0;
  text-align: center;
}

/* ---- Crayon doodles ---- */

.doodle {
  position: absolute;
  width: clamp(110px, 16vw, 230px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.doodle img {
  display: block;
  width: 100%;
  height: auto;
}

/* Percentages only, so every drawing keeps its place on any screen */
.d-heart          { top: 4%;  left: 1%; }
.d-heart img      { transform: rotate(-9deg); }
.d-banana         { top: 12%; right: 1%; }
.d-banana img     { transform: rotate(12deg); }
.d-watermelon     { top: 62%; left: 3%; }
.d-watermelon img { transform: rotate(7deg); }
.d-pineapple      { top: 72%; right: 2%; }
.d-pineapple img  { transform: rotate(-8deg); }

.d-pear           { top: 8%;  right: 4%; }
.d-pear img       { transform: rotate(-7deg); }
.d-peach          { top: 76%; left: 2%; }
.d-peach img      { transform: rotate(10deg); }

.d-strawberry     { top: 8%;  left: 4%; }
.d-strawberry img { transform: rotate(-10deg); }
.d-blueberries    { top: 20%; right: 4%; }
.d-blueberries img { transform: rotate(8deg); }

/* Phone screens are taller and narrower, so the drawings need their own
   vertical slots to stay clear of the headline block */
@media (max-width: 720px) {
  .doodle { width: clamp(130px, 38vw, 200px); }

  .d-heart       { top: 3%;  left: 0; }
  .d-banana      { top: 10%; right: 0; }
  .d-watermelon  { top: 74%; left: 0; }
  .d-pineapple   { top: 82%; right: 0; }
  .d-pear        { top: 4%;  right: 0; }
  .d-peach       { top: 84%; left: 0; }
  .d-strawberry  { top: 6%;  left: 0; }
  .d-blueberries { top: 15%; right: 0; }
}

/* Text always sits above the drawings. Listed one by one on purpose:
   a :not(.doodle) selector also hits the photos and kills their
   absolute positioning. */
.hero .app-icon,
.hero h1,
.hero .sub,
.hero .pill,
.mission .label,
.mission-text,
.possible .label,
.prototype .label,
.proto-title,
.proto-lead,
.proto-steps,
.proto-note,
.proto-media {
  position: relative;
  z-index: 1;
}

.app-icon {
  width: clamp(80px, 10vw, 107px);
  height: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero .sub {
  max-width: 460px;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.pill {
  display: inline-block;
  margin-top: 44px;
  padding: 20px 44px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pill:hover { transform: scale(1.03); opacity: 0.9; }

/* ---- Mission ---- */

.mission {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 180px 24px 0;
}

.family {
  position: absolute;
  top: 72%;
  right: -180px;
  width: clamp(280px, 34vw, 427px);
  border-radius: 56px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  will-change: transform;
}

.family img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 427 / 304;
  object-fit: cover;
}

/* On narrow screens the photo runs off the right edge instead of sitting
   centred under the text — body has overflow-x hidden, so it crops cleanly */
@media (max-width: 1120px) {
  .family {
    position: static;
    width: 124%;
    max-width: none;
    margin: 48px -24% 0 auto;
    border-radius: 36px;
  }
}

.label {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 18px;
}

.label.centered { text-align: center; }

.mission-text {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

/* ---- Possibilities ---- */

.possible {
  padding: 200px 0 0;
}

.words-wrap {
  position: relative;
  max-width: var(--max);
  margin: 40px auto 0;
}

.words {
  list-style: none;
  text-align: center;
}

.words li {
  font-size: clamp(72px, 15vw, 170px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.phone {
  position: absolute;
  top: 14%;
  left: 4%;
  width: clamp(160px, 27vw, 281px);
  border-radius: clamp(22px, 4vw, 40px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.experiments {
  position: absolute;
  top: 73%;
  right: 2%;
  width: clamp(280px, 49vw, 501px);
  border-radius: clamp(28px, 5vw, 56px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.experiments img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 501 / 305;
  object-fit: cover;
}

/* On phones the two screenshots swallow the word list, so shrink them,
   push them to the edges, and let the words sit on top */
@media (max-width: 720px) {
  .phone {
    width: 38vw;
    left: -3%;
    top: 8%;
  }

  .experiments {
    width: 54vw;
    right: -4%;
    top: 66%;
  }

  .words {
    position: relative;
    z-index: 2;
  }
}

/* ---- Prototype ---- */

.prototype {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 220px 24px 0;
}

.proto-title {
  text-align: center;
  font-size: clamp(72px, 15vw, 170px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 10px;
}

.proto-lead {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.proto-steps {
  list-style: none;
  counter-reset: step;
  max-width: 885px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.proto-steps li {
  counter-increment: step;
}

.proto-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

.proto-steps h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.proto-steps p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

.proto-note {
  max-width: 620px;
  margin: 72px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 720px) {
  .proto-steps {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 56px;
  }
}

.proto-media {
  margin: 60px auto 0;
  max-width: 885px;
  background: var(--placeholder);
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  will-change: transform;
}

.proto-media {
  position: relative;
}

.proto-media video {
  display: block;
  width: 100%;
  height: auto;
}

.sound-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}

.sound-toggle:hover { background: rgba(10, 10, 10, 0.85); }

/* ---- Finale ---- */

.finale {
  max-width: var(--max);
  margin: 0 auto;
  padding: 240px 24px 0;
  text-align: center;
}

.finale-title {
  font-size: clamp(64px, 14vw, 170px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.finale-sub {
  margin-top: 24px;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: var(--muted);
}

.framed {
  max-width: clamp(300px, 52vw, 520px);
  margin: 72px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  will-change: transform;
}

.framed img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .finale { padding-top: 180px; }
  .framed { max-width: 82vw; margin-top: 52px; }
}

/* ---- Footer ---- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px 40px 48px;
  font-size: 13px;
  color: var(--muted);
}

/* The mascot peeks over the footer line, same as in the drawing */
.footer-mascot {
  display: block;
  width: clamp(96px, 14vw, 140px);
  height: auto;
  margin: 0 auto -1px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e6e6e6;
  padding-top: 20px;
  margin-top: 0;
}

/* ---- Reveal on scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
