/* Kevin and Sarah: the homepage hero cartoon. The reel is drawn at 800 x 600 and scaled to fit its box. */
.toon { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #D7D4CD; }
.toon .reel { position: absolute; left: 0; top: 0; width: 800px; height: 600px; transform-origin: 0 0;
  transform: scale(var(--k, .6)); font: 18px/1.45 Inter, system-ui, sans-serif; color: #161616; }
.toon .shot { position: absolute; inset: 0; overflow: hidden; }
.toon .cam { position: absolute; inset: 0; transform-origin: 50% 45%; }

/* caption: the on-screen line of the story */
.toon .cap { position: absolute; left: 34px; top: 26px; right: 34px; z-index: 3; font-family: Archivo, Impact, sans-serif;
  font-stretch: 72%; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.01em; }
.toon .cap.light { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.toon .cap.low { top: auto; bottom: 30px; }

/* people */
.toon .who { position: absolute; bottom: 0; height: 500px; width: auto; max-width: none; }
.toon .who.r { right: 10px; -webkit-mask-image: linear-gradient(to right, transparent, #000 50px);
  mask-image: linear-gradient(to right, transparent, #000 50px); }
.toon .close { position: absolute; left: 0; top: 70px; width: 800px; height: 800px; max-width: none; }
.toon .bg { position: absolute; inset: 0; }
.toon .cam.cu { transform-origin: 50% 85%; }

/* drawn screens */
.toon .scr { position: absolute; left: 34px; top: 112px; width: 440px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); z-index: 2; }
.toon .scr.big { left: 70px; width: 660px; top: 118px; font-size: 23px; }
.toon .bar { display: flex; gap: 7px; align-items: center; padding: 10px 14px; background: #ECECEA; border-bottom: 1px solid #DCDCD7; }
.toon .bar i { width: 11px; height: 11px; border-radius: 50%; background: #CFCFCB; }
.toon .bar span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 12px; font-size: 14px; color: #6B6B66;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toon .in { padding: 16px 18px; display: grid; gap: 12px; }
.toon .bubble { padding: 9px 14px; border-radius: 12px; max-width: 88%; }
.toon .me { background: #161616; color: #fff; justify-self: end; }
.toon .ai { background: #F1F1EE; }
.toon .code { display: grid; gap: 7px; margin-top: 8px; }
.toon .code i { display: block; height: 9px; border-radius: 4px; background: #CFCFCB; }
.toon .ok { color: #1E7A4C; font-weight: 600; }
.toon .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EDEDEA; }
.toon .row .d { font-weight: 600; flex: 1; min-width: 0; }
.toon .muted { color: #6B6B66; }
.toon .btn { background: #FF5A1F; color: #fff; font-weight: 600; border-radius: 6px; padding: 6px 14px; }
.toon .sticky { background: #FFE9A8; padding: 10px 14px; border-radius: 4px; transform: rotate(-2deg); justify-self: start; }
.toon .sticky s { position: relative; text-decoration: none; color: #6B6B66; margin-left: 6px; }
.toon .sticky s::after { content: ""; position: absolute; left: 0; top: 52%; height: 2px; width: 100%; background: #161616;
  transform: scaleX(0); transform-origin: left; }
.toon .search { border: 2px solid #161616; border-radius: 8px; padding: 9px 14px; font-weight: 600; }
.toon .pill { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 2px 8px; }
.toon .pill.s { color: #1E7A4C; background: #DDF1E5; }
.toon .pill.m { color: #8A5A00; background: #F6E7C8; }
.toon .pill.w { color: #A3321C; background: #F6DAD3; }
.toon .split { display: grid; grid-template-columns: 1fr 1fr; font-size: 15px; }
.toon .split > div { padding: 8px 14px; }
.toon .split .panel { background: #F6F6F3; border-left: 1px solid #DCDCD7; }
.toon .panel b { display: block; font-size: 14px; padding: 4px 0; }
.toon .panel .d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toon .zero { font-family: Archivo, Impact, sans-serif; font-stretch: 72%; font-weight: 800; font-size: 64px; line-height: 1; }
.toon .zero small { font: 500 16px Inter, sans-serif; color: #6B6B66; }
.toon .huge { position: absolute; right: 40px; top: 36px; z-index: 3; text-align: right; font-family: Archivo, Impact, sans-serif;
  font-stretch: 72%; font-weight: 800; font-size: 150px; line-height: .85; color: #FF5A1F; }
.toon .huge small { display: block; font-size: 40px; color: #161616; }
.toon .facts { display: grid; gap: 6px; color: #3D3D3A; }
.toon .facts b { color: #161616; }
.toon .app { background: #F2F2F0; border-radius: 10px; padding: 20px; display: grid; gap: 6px; }
.toon .app h5 { margin: 0; font-family: Archivo, Impact, sans-serif; font-stretch: 80%; font-weight: 800; font-size: 34px; line-height: 1; }
.toon .fine { position: absolute; left: 34px; bottom: 26px; z-index: 3; font-size: 17px; color: #3D3D3A; background: rgba(255,255,255,.75);
  padding: 4px 10px; border-radius: 6px; }

/* motion: every shot is re-inserted when it starts, so these run from zero on each cut */
.toon .push { animation: toon-push var(--d, 2s) linear both; }
.toon .drift { animation: toon-drift var(--d, 2s) linear both; }
.toon .fade { animation: toon-fade .35s ease-out both; }
.toon .rise { animation: toon-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.toon .fill { animation: toon-fill .5s ease-out both; transform-origin: left; }
.toon .sticky s::after { animation: toon-fill .25s ease-out both; animation-delay: inherit; }
.toon .type { animation: toon-type .7s steps(10) both; }
.toon .dim { animation: toon-dim .4s ease-out both; }
.toon .pulse { animation: toon-pulse .5s ease-in-out both; }
.toon .line { stroke-dasharray: 640; animation: toon-draw 1.4s linear both; }
@keyframes toon-push { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes toon-drift { from { transform: scale(1.08) translateY(10px); } to { transform: scale(1.14) translateY(-6px); } }
@keyframes toon-fade { from { opacity: 0; } }
@keyframes toon-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes toon-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes toon-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes toon-dim { to { opacity: .3; } }
@keyframes toon-pulse { 50% { transform: scale(1.12); } }
@keyframes toon-draw { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
.toon.paused * { animation-play-state: paused !important; }

/* controls */
.toon .ctl { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(22,22,22,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.toon .ctl:focus-visible { outline: 2px solid #FF5A1F; outline-offset: 2px; }
.toon .ctl svg { width: 14px; height: 14px; fill: currentColor; }
.toon .prog { position: absolute; left: 0; bottom: 0; height: 3px; background: #FF5A1F; z-index: 4; width: 0; }
.toon.still * { animation: none !important; }

/* phone cut: a tall reel (480 x 700); the screen sits on top, the person below, close-ups are cropped to the centre */
.toon.tall { aspect-ratio: 480 / 700; }
.toon.tall .reel { width: 480px; height: 700px; font-size: 19px; }
.toon.tall .cap { left: 24px; right: 24px; top: 22px; font-size: 38px; }
.toon.tall .cap.low { top: auto; bottom: 26px; }
.toon.tall .scr, .toon.tall .scr.big { left: 20px; width: 440px; top: 128px !important; font-size: 19px; }
.toon.tall .scr.big { top: 170px !important; }
.toon.tall .who.r { height: 260px; right: 0; }
.toon.tall .panel .row { padding: 7px 0; }
.toon.tall .close { width: 720px; height: 720px; left: -120px; top: 90px; }
.toon.tall .split { grid-template-columns: 1fr; font-size: 17px; }
.toon.tall .split > div:first-child { display: none; }
.toon.tall .split .panel { border-left: 0; }
.toon.tall .huge { right: 24px; top: 24px; font-size: 120px; }
.toon.tall .huge small { font-size: 34px; }
.toon.tall .fine { left: 20px; right: 20px; bottom: 20px; font-size: 16px; }

/* end card: the explicit finish of the loop */
.toon .end { position: absolute; inset: 0; isolation: isolate; padding: 46px 44px; display: flex; flex-direction: column;
  justify-content: center; gap: 28px; color: #fff; }
.toon .endbg { position: absolute; inset: 0; z-index: -1; background: #FF5A1F; animation: toon-wipe .5s cubic-bezier(.2,.8,.2,1) both; }
.toon .vs { display: flex; flex-wrap: wrap; gap: 14px; }
.toon .chip { display: flex; align-items: center; gap: 12px; border-radius: 40px; padding: 6px 20px 6px 6px; font-size: 19px; font-weight: 500; }
.toon .chip img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; max-width: none; }
.toon .chip b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; line-height: 1.2; }
.toon .chip.k { background: rgba(22,22,22,.25); }
.toon .chip.s { background: #fff; color: #161616; }
.toon .endh { font-family: Archivo, Impact, sans-serif; font-stretch: 72%; font-weight: 800; font-size: 96px; line-height: .9;
  letter-spacing: -.015em; transform-origin: 0 50%; }
.toon .endpill { align-self: flex-start; background: #161616; color: #fff; font-weight: 600; font-size: 21px; padding: 10px 22px; border-radius: 30px; }
.toon .pop { animation: toon-pop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes toon-wipe { from { clip-path: circle(0% at 85% 85%); } to { clip-path: circle(150% at 85% 85%); } }
@keyframes toon-pop { from { opacity: 0; transform: scale(1.3); } }
.toon.tall .end { padding: 36px 24px; gap: 24px; }
.toon.tall .vs { flex-direction: column; align-items: flex-start; }
.toon.tall .endh { font-size: 70px; }
.toon.tall .endpill { font-size: 19px; }
