/* Ponkan and Friends: one page. Brand colors from the brand guide: cocoa text on cream, deep orange buttons. */
@font-face { font-family: "Baloo 2"; src: url("/assets/baloo2-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root { --ink: #3A2414; --cream: #FFF6EC; --orange: #B5500F; --orange-dark: #8F3F0B; --line: #EFD9C2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif; }
h1, h2, h3 { font-family: "Baloo 2", "Trebuchet MS", sans-serif; font-weight: 800; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 8vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
h3 { font-size: 24px; }
p { margin: 0; }
a { color: var(--orange); font-weight: 700; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }


.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--orange-dark); }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.small { font-size: 15px; }

.player:has(.play:focus-visible) { outline: 4px solid var(--orange); outline-offset: 4px; }
.play:focus-visible { outline: none; }
.player { width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 4px solid var(--ink); background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.play img { width: 100%; height: 100%; object-fit: cover; }
/* small enough to sit in the sky between the title and the friends' heads */
.play-icon { position: absolute; left: 50%; top: 38.5%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--orange); border: 3px solid #fff; }
.play-icon::after { content: ""; position: absolute; inset: 26% 22% 26% 34%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.play:hover .play-icon { background: var(--orange-dark); }

/* five in one row on wide screens; on narrower screens Ponkan leads on top and the four friends pair up (nobody is left alone) */
.friends { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.friends li { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.friends img { width: min(170px, 100%); }
.friends p { font-size: 16px; }
@media (max-width: 900px) { .friends { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; } .friends li:first-child { grid-column: 1 / -1; } }

footer { margin-top: 64px; padding: 28px 16px 36px; text-align: center; border-top: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

/* Policy pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 16px 0; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(30px, 6vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 12px; }
.doc ul { margin: 0; padding-left: 22px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.doc.center { text-align: center; align-items: center; }

/* ---------- Animated hero: logo left, sun right, the friends in a row like the video ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(#8FD3FF, #DDF3FF); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-top { position: relative; max-width: 1200px; margin: 0 auto; padding: 16px 16px 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 16px; }
.hero-logo { width: clamp(96px, 17vw, 210px); }
.hero-sun { width: clamp(84px, 14vw, 170px); height: auto; display: block; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tagline { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; }
.ground { position: relative; display: block; width: 100%; height: clamp(150px, 39vw, 400px); overflow: visible; margin-top: 12px; }
@media (max-width: 700px) { .hero-top { grid-template-columns: 1fr 1fr; } .hero-sun { justify-self: end; } .hero-text { grid-column: 1 / -1; grid-row: 2; } }

/* lengths inside the drawings are drawing units; every animated group turns around its own pivot */
.bob { animation: bob .9s ease-in-out infinite alternate; }
.f1 .bob { animation-duration: .78s; animation-delay: -.3s; } .f2 .bob { animation-duration: 1s; animation-delay: -.6s; }
.f3 .bob { animation-duration: .7s; animation-delay: -.2s; } .f4 .bob { animation-duration: .86s; animation-delay: -.5s; }
@keyframes bob { to { transform: translateY(-14px); } }
.head { animation: tilt 2.6s ease-in-out infinite alternate; }
.f1 .head { animation-duration: 3.3s; } .f2 .head { animation-duration: 2.1s; animation-delay: -1s; } .f3 .head { animation-duration: 2.9s; } .f4 .head { animation-duration: 3.7s; animation-delay: -2s; }
@keyframes tilt { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.earL { animation: earL 3.1s ease-in-out infinite; } .earR { animation: earR 3.1s ease-in-out infinite; }
.f1 .earL, .f1 .earR { animation-duration: 4.3s; } .f2 .earL, .f2 .earR { animation-duration: 2.7s; animation-delay: -1s; } .f3 .earL { animation-duration: 3.7s; } .f4 .earL, .f4 .earR { animation-duration: 5.1s; }
@keyframes earL { 0%, 62%, 100% { transform: rotate(0); } 72% { transform: rotate(-11deg); } 84% { transform: rotate(5deg); } }
@keyframes earR { 0%, 66%, 100% { transform: rotate(0); } 76% { transform: rotate(11deg); } 88% { transform: rotate(-5deg); } }
.blink { animation: blink 4.1s infinite; }
.f1 .blink { animation-duration: 5.3s; } .f2 .blink { animation-duration: 3.4s; } .f3 .blink { animation-duration: 4.7s; } .f4 .blink { animation-duration: 6.1s; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
/* laughing: the eyes squeeze shut into smiles for a moment, each friend at a different time */
.es { opacity: 0; animation: laughOn 11s infinite; } .eo { animation: laughOff 11s infinite; }
.f1 .es, .f1 .eo { animation-duration: 13s; animation-delay: -4s; } .f2 .es, .f2 .eo { animation-duration: 9s; animation-delay: -2s; }
.f3 .es, .f3 .eo { animation-duration: 12s; animation-delay: -7s; } .f4 .es, .f4 .eo { animation-duration: 15s; animation-delay: -9s; }
@keyframes laughOn { 0%, 58%, 82%, 100% { opacity: 0; } 60%, 80% { opacity: 1; } }
@keyframes laughOff { 0%, 58%, 82%, 100% { opacity: 1; } 60%, 80% { opacity: 0; } }
.waveL { animation: waveL 6s ease-in-out infinite; } .waveR { animation: waveR 6s ease-in-out infinite; }
.f1 .waveL { animation-duration: 7.5s; animation-delay: -3s; } .f3 .waveR { animation-duration: 6.8s; animation-delay: -2s; } .f4 .waveR { animation-duration: 8.2s; animation-delay: -5s; }
@keyframes waveL { 0%, 48%, 100% { transform: rotate(0); } 56% { transform: rotate(58deg); } 62% { transform: rotate(44deg); } 68% { transform: rotate(58deg); } 74% { transform: rotate(44deg); } 80% { transform: rotate(58deg); } 90% { transform: rotate(0); } }
@keyframes waveR { 0%, 48%, 100% { transform: rotate(0); } 56% { transform: rotate(-58deg); } 62% { transform: rotate(-44deg); } 68% { transform: rotate(-58deg); } 74% { transform: rotate(-44deg); } 80% { transform: rotate(-58deg); } 90% { transform: rotate(0); } }
.swayL, .swayR { animation: armSway 2.4s ease-in-out infinite alternate; }
@keyframes armSway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.sway { animation: sway 2.4s ease-in-out infinite alternate; }
.s1 { animation-delay: -.6s; } .s2 { animation-delay: -1.2s; animation-duration: 2.9s; } .s3 { animation-delay: -1.8s; animation-duration: 2.1s; }
@keyframes sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.rays { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drift { animation: drift 80s linear infinite; }
.d2 { animation-duration: 110s; animation-delay: -45s; } .d3 { animation-duration: 95s; animation-delay: -70s; }
.db1 { animation-duration: 30s; animation-delay: -8s; } .db2 { animation-duration: 37s; animation-delay: -22s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(1860px); } }
.wA { animation: flapA .5s steps(1) infinite; } .wB { animation: flapB .5s steps(1) infinite; }
@keyframes flapA { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes flapB { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.fly { animation: fly 9s ease-in-out infinite; } .b1 { animation-duration: 12s; animation-delay: -4s; } .b2 { animation-duration: 10s; animation-delay: -7s; }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(70px, -30px); } 50% { transform: translate(-20px, -55px); } 75% { transform: translate(-80px, -15px); } }
.flap { animation: flap .26s ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleX(.25); } }
@media (prefers-reduced-motion: reduce) { .hero * { animation: none !important; } .es { opacity: 0; } }
/* his marks 11-26: hero text + button 4px lower (logo and sun stay), heading and hero button in Ponkan's dark orange.
   The white edge keeps the orange heading readable on the sky (brand guide: titles over a picture get a white edge). */
.hero-text { position: relative; top: 4px; }
.hero h1 { color: #D8641C; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; }
.hero .btn { background: #D8641C; font-size: 19px; }
.hero .btn:hover { background: #B5500F; }
/* QA round 2: pause control for the moving scene, balanced tagline, no birds behind the text on phones */
.tagline { text-wrap: balance; }
.pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; }
.hero.paused * { animation-play-state: paused !important; }
@media (max-width: 700px) { .db1, .db2 { display: none; } .pause { min-height: 36px; font-size: 13px; right: 8px; bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { .pause { display: none; } }
