/* A title in the sky, with the town given the rest of the stage. */
.action-hero { background: oklch(.87 .064 220); }
.action-hero-shade { background: linear-gradient(180deg, oklch(.94 .035 220 / .9), oklch(.94 .035 220 / .7) 35%, transparent 65%); }
.action-hero-layout { position: relative; z-index: 2; display: block; width: min(1180px, calc(100% - 80px)); padding: 40px 0 430px; min-height: calc(100svh - var(--story-header)); }
.action-hero-copy { width: min(100%, 1080px); margin-inline: auto; padding: 0; color: var(--ink); text-align: center; }
.action-hero-category { justify-content: center; margin-bottom: 19px; font-size: 13px; font-weight: 500; color: var(--primary); }
.action-hero-category img { filter: none; width: 20px; height: 20px; }
.action-hero h1 { font-size: clamp(43px, 5.15vw, 70px); font-weight: 660; line-height: 1.08; letter-spacing: -.035em; }
.action-hero h1 > span { display: block; text-wrap: balance; animation: title-settle 1.1s var(--ease) both; }
.action-hero h1 > span + span { animation-delay: .12s; }
.action-hero h1 em { color: oklch(.36 .08 165); font-weight: 730; }
.action-hero-description { max-width: 59ch; margin: 20px auto 0; font-size: 17px; line-height: 1.75; color: var(--primary); }
.action-hero-intro { max-width: none; margin-top: 12px; font-size: 13px; color: var(--primary); }
.action-hero-links { justify-content: center; gap: 30px; margin-top: 24px; }
.action-hero-links .pixel-button { background: var(--primary); color: var(--surface); padding-inline: 24px; }
.action-video-link { color: var(--primary); }
.action-video-link > small { color: var(--primary); }
.action-video-link:hover { color: var(--ink); }
.action-beta-note { color: var(--primary); font-size: 11px; margin-top: 14px; }
.app-ui-preview { position: absolute; left: 0; bottom: 67px; max-width: 230px; margin: 0; transform: rotate(-4deg); animation: postcard-drift 12s ease-in-out infinite; }
.app-ui-preview figcaption { font-size: 8px; margin-top: 9px; }
.town-atmosphere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: .7; }
.town-hero-footer { position: absolute; z-index: 3; right: 4.1%; bottom: 42px; display: flex; flex-direction: column; align-items: end; gap: 0; padding: 10px 15px; background: oklch(.2 .05 175 / .87); color: var(--surface); }
.town-hero-footer .action-town-tagline { margin: 0; font-size: 20px; line-height: 1.5; color: oklch(.96 .025 95); }
.town-hero-footer .action-world-link { margin: 0; min-height: 37px; font-size: 11px; color: var(--surface); }
.action-art-credit { bottom: 10px; left: 4.1%; right: auto; padding: 2px 7px; font-size: 8px; }

/* A companion speaks before the product starts explaining itself. */
.story-first { background: oklch(.94 .035 165); }
.story-first .story-sky { opacity: .2; }
.story-first .story-heading { font-size: clamp(50px, 6vw, 82px); }
.story-first .story-greeting { font-size: 12px; }
.ali-letter { margin: 25px 0 0; max-width: 36ch; color: var(--primary); font-size: 18px; line-height: 1.85; }
.ali-letter cite { display: block; margin-top: 15px; color: var(--primary); font-family: var(--display); font-size: 32px; font-style: normal; line-height: 1.2; }
.story-first .ali-signature { display: none; }
.story-first .story-text-link { font-size: 12px; }

/* The world is a place, rather than a software window. */
.story-action { background: oklch(.91 .045 165); }
.story-action .story-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 65px; }
.story-action .story-heading { font-size: clamp(48px, 5.6vw, 76px); }
.story-action .town-window { padding: 0; background: transparent; box-shadow: none; transform: translate3d(0,var(--scene-shift),0); rotate: none; }
.story-action .town-window > img { aspect-ratio: 1.4; object-fit: cover; }
.story-action .town-window figcaption { padding: 15px 0 0; font-size: 12px; }
.story-action .story-description { max-width: 37ch; font-size: 17px; }
.story-together .story-heading { font-size: clamp(50px, 6vw, 82px); max-width: 19ch; line-height: 1.08; }
.story-together .story-description { font-size: 17px; max-width: 52ch; }
.design-promise { margin-top: 22px; color: var(--accent); font-size: 17px; font-weight: 550; line-height: 1.6; }
.story-together .story-close-button { margin-top: 25px; }
.story-together .story-closing-principle { font-size: 12px; }

@keyframes title-settle { from { transform: translateY(12px); filter: blur(.7px); } to { transform: translateY(0); filter: blur(0); } }
@keyframes postcard-drift { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }

@media (min-width: 1600px) {
  .action-hero-layout { padding-top: 58px; padding-bottom: 480px; }
  .action-hero h1 { font-size: 76px; }
  .app-ui-preview { max-width: 250px; }
}
@media (max-width: 1050px) {
  .action-hero-layout { width: calc(100% - 64px); padding-top: 38px; padding-bottom: 400px; }
  .action-hero h1 { font-size: clamp(42px, 5.4vw, 60px); }
  .action-hero-description { max-width: 55ch; font-size: 16px; }
  .app-ui-preview { max-width: 195px; }
  .town-hero-footer .action-town-tagline { font-size: 17px; }
  .story-action .story-layout { gap: 35px; }
  .story-action .story-heading { font-size: 58px; }
}
@media (max-width: 860px) {
  .action-hero-layout { padding-top: 36px; padding-bottom: 425px; }
  .action-hero-scene { inset: auto 0 0; width: 100%; height: auto; object-fit: contain; object-position: center bottom; mask-image: linear-gradient(180deg, transparent, black 15%); }
  .action-hero h1 > span { display: block; }
  .action-hero-shade { background: linear-gradient(180deg, oklch(.94 .035 220 / .95), oklch(.94 .035 220 / .7) 40%, transparent 75%); }
  .app-ui-preview { max-width: 180px; margin-top: 0; bottom: 140px; }
}
@media (max-width: 760px) {
  .story-first .story-heading { font-size: clamp(43px, 8.5vw, 62px); }
  .ali-letter { margin-top: 22px; font-size: 15px; max-width: 38ch; }
  .ali-letter cite { font-size: 27px; margin-top: 12px; }
  .story-action .story-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .story-action .story-heading { font-size: clamp(43px, 8.5vw, 62px); }
  .story-action .story-description, .story-together .story-description { font-size: 15px; }
  .story-action .town-window { width: 100%; margin: 0; }
  .story-action .town-window > img { aspect-ratio: 1.6; }
  .story-together .story-heading { font-size: clamp(44px, 9vw, 64px); }
  .design-promise { font-size: 15px; max-width: 32ch; margin-top: 18px; }
}
@media (max-width: 480px) {
  .action-hero-layout { width: calc(100% - 40px); padding-top: 31px; padding-bottom: 390px; min-height: 840px; }
  .action-hero-category { font-size: 11px; gap: 8px; margin-bottom: 18px; }
  .action-hero-category img { width: 17px; height: 17px; }
  .action-hero h1 { font-size: clamp(36px, 10.1vw, 45px); line-height: 1.1; letter-spacing: -.035em; }
  .action-hero-description { max-width: 35ch; margin-top: 20px; font-size: 14px; line-height: 1.8; }
  .action-hero-intro { font-size: 11px; max-width: 29ch; margin-inline: auto; margin-top: 12px; }
  .action-hero-links { gap: 22px; margin-top: 22px; }
  .action-hero-links .pixel-button { padding-inline: 18px; font-size: 12px; }
  .action-beta-note { font-size: 10px; }
  .action-hero-scene { width: 180%; max-width: none; left: -40%; }
  .app-ui-preview { max-width: 165px; left: 0; bottom: 135px; }
  .app-ui-preview figcaption { padding: 4px; font-size: 7px; }
  .town-hero-footer { right: 20px; bottom: 29px; padding: 6px 10px; }
  .town-hero-footer .action-town-tagline { font-size: 15px; }
  .town-hero-footer .action-world-link { font-size: 10px; min-height: 32px; }
  .action-art-credit { font-size: 7px; bottom: 6px; left: 20px; }
  .story-first .story-heading { font-size: clamp(42px, 10.4vw, 55px); }
  .story-first .story-greeting { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .action-hero h1 > span, .app-ui-preview { animation: none !important; filter: none !important; transform: none !important; }
  .town-atmosphere { display: none; }
}
