/* Who Flung Pu? marketing web: "The Long Fling", Sketch treatment.
   One long patch of space. A fling trajectory runs from the scooter in the hero,
   down the page gutters, and ends inside the extraction ring that holds the closing action.
   Gel-pen outlines and hand-lettered notes sit over the game's own character art.
   Tokens mirror docs/marketing/BRAND.md section 20. */

@font-face { font-family: "Gluten"; src: url("/fonts/Gluten-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("/fonts/RethinkSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("/fonts/ShantellSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --font-display: "Gluten", "Comic Sans MS", cursive;
  --font-body: "Rethink Sans", system-ui, sans-serif;
  --font-hand: "Shantell Sans", "Comic Sans MS", cursive;

  --color-space: #17123A;
  --color-space-raised: #211A4E;
  --color-cream: #FFF4E0;
  --color-ink: #0E0A24;
  --color-pu: #FF8A2A;
  --color-mint: #5CF2C4;
  --color-pink: #FF5FA2;
  --color-soft: #CBC3EE;
  --color-note: #FF9E5E;

  --line-pen: 2.5px solid var(--color-cream);
  --line-dashed: 2.5px dashed rgba(255, 244, 224, .7);
  --radius-sketch: 18px 26px 14px 30px;
  --radius-control: 14px 22px 12px 20px;

  --content-width: 76rem;
  --reading-width: 68ch;
  --gutter: clamp(16px, 4vw, 48px);
  --duration-fast: 120ms;
  --duration-normal: 220ms;

  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--color-space); color: var(--color-cream); font: 1.0625rem/1.6 var(--font-body); }
[hidden] { display: none !important; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--color-mint); outline-offset: 4px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: .95; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 0; }
h3 { font-size: 1.9rem; margin-bottom: 4px; }
p { margin-bottom: 1.1rem; }
.hand { font-family: var(--font-hand); font-weight: 600; color: var(--color-note); line-height: 1.25; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 20px; background: var(--color-cream); color: var(--color-ink); border-radius: var(--radius-control); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--content-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.page { position: relative; z-index: 1; overflow-x: clip; }
main, header, footer, section { position: relative; z-index: 1; }

/* Ambient space: starfield canvas and the fling trajectory (both drawn by marketing.js) */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.trajectory { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.trajectory path { fill: none; stroke: var(--color-cream); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 10; opacity: .55; animation: march 1.6s linear infinite; }
.anchor { position: absolute; width: 1px; height: 1px; }
@keyframes march { to { stroke-dashoffset: -48; } }

/* Shared header and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.brand-link { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-decoration: none; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-link span { color: var(--color-pu); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a, .utility-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }
.utility-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 28px 40px; border-top: 2px dashed rgba(203, 195, 238, .35); font-size: 1rem; color: var(--color-soft); }
.footer-note { display: block; margin-top: 4px; font-size: 1rem; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.action { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 26px; border: 2.5px solid var(--color-ink); border-radius: var(--radius-control); background: var(--color-pu); color: var(--color-ink); font: 800 1.2rem/1.2 var(--font-display); text-decoration: none; box-shadow: 4px 5px 0 var(--color-ink); transition: transform var(--duration-fast), box-shadow var(--duration-fast); }
.action:hover { transform: translate(-1px, -2px); box-shadow: 5px 7px 0 var(--color-ink); }
.action:active { transform: translate(2px, 2px); box-shadow: 2px 3px 0 var(--color-ink); }
.text-action { border: 0; background: none; text-decoration: underline; cursor: pointer; padding: 10px; min-height: 44px; }

/* Panels: a dashed gel-pen outline, used for mission-control notices and the incident report only */
.panel { border: var(--line-dashed); border-radius: var(--radius-sketch); padding: 18px 22px; }
.panel p:last-child { margin-bottom: 0; }
.panel-label { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--color-mint); letter-spacing: .02em; margin-bottom: 4px; }

/* Section headings */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-heading p { margin: 0; max-width: 36ch; color: var(--color-soft); }

/* Hero (teaser and full) */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: clamp(20px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.wordmark { font-size: clamp(3.6rem, 9vw, 8rem); margin-bottom: 18px; }
.wordmark span { display: inline-block; color: var(--color-pu); transform: rotate(-6deg); animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(4deg) translateY(-6px); } }
.tagline { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--color-note); transform: rotate(-1.5deg); margin-bottom: 18px; }
.hero .panel { max-width: 38ch; }
.premise { max-width: 40ch; margin: 20px 0 0; font-size: 1.15rem; }
.platform-status { margin: 24px 0 20px; font-weight: 700; color: var(--color-soft); }

/* The tow: scooter pulling the crew on a tether */
.tow { position: relative; aspect-ratio: 1 / .9; max-width: 100%; }
.tow img { position: absolute; height: auto; max-width: none; }
.tow-tether { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tow-tether path { fill: none; stroke: var(--color-cream); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.tow-scooter { width: 36%; right: 0; top: 4%; transform: rotate(-18deg); animation: bob 4s ease-in-out infinite; }
.tow-lead { width: 28%; left: 40%; top: 30%; animation: bob 4.6s .3s ease-in-out infinite; }
.tow-gus { width: 30%; left: 16%; top: 46%; animation: bob 5s .7s ease-in-out infinite; }
.tow-twig { width: 24%; left: 0; top: 70%; animation: bob 5.4s 1.1s ease-in-out infinite; }
.tow .hand { position: absolute; font-size: 1.1rem; }
.tow-note-pu { left: 66%; top: 42%; transform: rotate(-4deg); }
.tow-note-twig { left: 22%; top: 93%; transform: rotate(3deg); }
.tow-hud { position: absolute; left: 0; top: 0; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(6, 17, 61, .6); color: #DCE4FF; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.anchor-hero { left: 76%; top: 20%; }
@keyframes bob { 50% { translate: 0 -10px; rotate: 3deg; } }

.teaser-foot { margin: 0 auto; padding-block: 0 28px; font-size: 1.1rem; }

/* Key art panorama: full-bleed, fading into space at top and bottom */
.panorama { margin: 0; }
.panorama img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 45% 50%;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.panorama figcaption { margin-top: -8px; font-size: 1.05rem; text-align: right; }

/* Gameplay capture with hand-drawn notes */
.gameplay-section { padding-block: clamp(56px, 8vw, 110px) clamp(32px, 5vw, 64px); }
.gameplay-section::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 30% 50%, rgba(255, 95, 162, .18), transparent 70%), radial-gradient(60% 60% at 50% 60%, rgba(78, 36, 131, .5), transparent 75%); }
.gameplay-media { position: relative; max-width: 58rem; margin: 28px 0 0; }
.screen { border: var(--line-pen); border-radius: 10px 18px 12px 16px; overflow: hidden; transform: rotate(-.8deg); }
.screen img, .screen video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gameplay-media figcaption { padding: 14px 4px 0; font-size: 1rem; color: var(--color-soft); }
.wip-label { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--color-mint); color: var(--color-ink); font-size: .8rem; font-weight: 700; }
.ann { position: absolute; pointer-events: none; font-size: 1.1rem; }
.ann svg { display: block; overflow: visible; }
.ann path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.ann-hud { left: 25%; top: 4%; }
.ann-chain { left: 30%; top: 58%; }
.ann-chain svg { width: 90px; height: 60px; margin-left: 24px; }
.ann-ring { left: 2%; top: 28%; color: var(--color-note); }
.ann-ring svg { width: 70px; height: 120px; }
.anchor-footage { right: -1%; top: 55%; }

/* Flight plan diagram and steps */
.flight-plan { padding-block: clamp(40px, 6vw, 80px); }
.diagram { margin-top: 26px; padding: clamp(8px, 2vw, 20px); border: var(--line-dashed); border-radius: var(--radius-sketch); overflow: hidden; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .grid { stroke: rgba(203, 195, 238, .14); stroke-dasharray: 2 8; }
.diagram .route { fill: none; stroke: var(--color-cream); stroke-width: 4; stroke-linecap: round; }
.diagram .release { fill: none; stroke: var(--color-pu); stroke-width: 5; stroke-dasharray: 14 12; stroke-linecap: round; animation: march 1.2s linear infinite; }
.diagram .num circle { fill: var(--color-pu); stroke: var(--color-ink); stroke-width: 4; }
.diagram .num-end circle { fill: var(--color-mint); }
.diagram .num text { font: 800 30px var(--font-display); fill: var(--color-ink); text-anchor: middle; dominant-baseline: central; }
.diagram .svg-note { font: 600 22px var(--font-hand); fill: var(--color-note); }
.diagram .svg-arrow { fill: none; stroke: var(--color-note); stroke-width: 2.5; stroke-linecap: round; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { min-width: 0; padding-top: 12px; border-top: 3px solid rgba(203, 195, 238, .35); }
.steps li:last-child { border-color: var(--color-mint); }
.step-title { display: block; font: 800 1.6rem/1.1 var(--font-display); }
.step-number { color: var(--color-pu); margin-right: 8px; }
.steps p { margin: 4px 0 0; color: var(--color-soft); }
.anchor-plan-right { right: -1%; top: 100%; }
.anchor-plan-left { left: -1%; top: 100%; }

/* Crew hanging from the tether */
.crew-section { padding-block: clamp(40px, 7vw, 100px); }
.crew-line { position: relative; margin-top: 30px; }
.crew-rope { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.crew-rope path { fill: none; stroke: var(--color-cream); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.crew-ship { position: absolute; left: -2%; top: -34px; width: clamp(120px, 14vw, 190px); max-width: none; transform: scaleX(-1) rotate(-10deg); }
.anchor-crew { left: 4%; top: 10px; }
.crew-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); padding-left: clamp(90px, 12vw, 160px); }
.crew-member { min-width: 0; text-align: center; }
.crew-hang { position: relative; padding-top: 64px; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; }
.crew-hang::before { content: ""; position: absolute; left: 50%; top: 0; height: 68px; border-left: 2.5px solid var(--color-cream); }
.crew-member:nth-child(3n+2) .crew-hang { padding-top: 92px; animation-delay: -2.4s; }
.crew-member:nth-child(3n+2) .crew-hang::before { height: 96px; }
.crew-member:nth-child(3n) .crew-hang { padding-top: 70px; animation-delay: -3.7s; }
.crew-member:nth-child(3n) .crew-hang::before { height: 74px; }
.crew-hang img { display: block; width: min(84%, 230px); margin: 0 auto; }
.crew-member h3 { margin-top: 10px; }
.crew-member p { margin: 4px auto 6px; max-width: 26ch; }
.crew-note { display: inline-block; transform: rotate(-3deg); }
@keyframes sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* Incident report beside the gravity well */
.incident-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 100px); }
.well { position: relative; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 1; }
.well img { width: 100%; animation: spin 30s linear infinite; }
.well .well-pu { position: absolute; width: 32%; left: 58%; top: 8%; animation: bob 4s ease-in-out infinite; }
.well-note { position: absolute; left: 0; bottom: 4%; transform: rotate(-5deg); font-size: 1.1rem; }
.anchor-well { left: 50%; top: 50%; }
@keyframes spin { to { rotate: 360deg; } }
.incident-intro > p { max-width: 34ch; margin-top: 14px; color: var(--color-soft); }
.incident-report { max-width: 34rem; margin-top: 20px; }
.incident-report dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 10px 0 0; }
.incident-report dt { font-weight: 700; color: var(--color-soft); }
.incident-report dd { margin: 0; }
.verdict { display: inline-block; margin-top: 16px; padding: 2px 16px; border: 2.5px solid var(--color-ink); border-radius: 14px; background: var(--color-pink); color: var(--color-ink); font: 800 2rem/1.2 var(--font-display); transform: rotate(-3deg); }

/* The extraction ring: where the trajectory and the page end */
.arrival { padding-block: clamp(40px, 7vw, 100px) clamp(60px, 8vw, 110px); text-align: center; }
.ring { position: relative; display: grid; place-items: center; width: min(580px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring > img { position: absolute; inset: 0; width: 100%; height: 100%; animation: pulse 3.4s ease-in-out infinite; }
.anchor-ring { left: 50%; top: 3%; }
.ring-inside { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; width: 52%; }
.ring-inside h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ring-inside p { margin: 0; font-size: .95rem; font-weight: 600; }
.ring-inside .actions { justify-content: center; }
.ring-inside .action { font-size: 1.05rem; padding-inline: 18px; }
@keyframes pulse { 50% { scale: 1.03; } }

/* Utility documents: quiet reading layout, no animated decoration */
.document { max-width: calc(var(--reading-width) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 80px; min-height: 65vh; }
.document h1 { font-size: clamp(3rem, 6vw, 4.6rem); margin-bottom: 24px; }
.document h2 { font: 700 1.5rem/1.2 var(--font-body); margin: 32px 0 14px; }
.document .service-label { font-family: var(--font-hand); font-weight: 600; color: var(--color-note); }
.document-body { overflow-wrap: anywhere; }
.document-body p { margin-bottom: 20px; }
.document-body a { color: var(--color-mint); }
.effective-date { font-size: 1rem; color: var(--color-soft); border-bottom: 1px solid rgba(203, 195, 238, .4); padding-bottom: 16px; margin-bottom: 28px; }
.contact-block { margin-top: 40px; padding: 4px 22px 18px; border: var(--line-dashed); border-radius: var(--radius-sketch); }
.contact-block a { color: var(--color-mint); }
.contact-block p { margin: 12px 0; }
.unavailable { font-weight: 700; }

/* Analytics consent */
.consent-notice { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 15; max-width: 620px; padding: 24px; border: var(--line-pen); border-radius: var(--radius-sketch); background: var(--color-space-raised); }
.consent-notice p { font-size: 1rem; }
.consent-notice .action + .text-action { margin-left: 12px; }

/* Tablet and phone: stack, keep the tow and one note, drop decoration that would crowd text */
@media (max-width: 991px) {
  .hero, .incident-section { grid-template-columns: minmax(0, 1fr); }
  .tow { width: 100%; max-width: 460px; margin: 0 auto; }
  .well { max-width: 300px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .trajectory { display: none; }
  .panorama img { aspect-ratio: 2 / 1; object-position: 52% 50%; }
  .panorama figcaption { text-align: left; margin-top: 4px; }
  .diagram .svg-note, .diagram .svg-arrow { display: none; }
  .ann-chain, .ann-ring { display: none; }
  .crew-rope, .crew-ship { display: none; }
  .crew-roster { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 420px; margin-inline: auto; padding-left: 0; }
  .crew-member { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; }
  .crew-hang, .crew-member:nth-child(n) .crew-hang { padding-top: 0; animation: none; }
  .crew-hang::before { display: none; }
  .crew-hang img { width: 100%; }
  .crew-member h3 { margin-top: 0; }
  .crew-member p { margin-inline: 0; }
  .ring { aspect-ratio: auto; width: 100%; }
  .ring > img { position: relative; inset: auto; width: 220px; height: 220px; margin: 0 auto; }
  .ring-inside { width: 100%; margin-top: 18px; }
  .ring-inside .action { font-size: 1.15rem; }
  .site-header nav { gap: 20px; }
  .consent-notice { padding: 20px; }
  .consent-notice .action + .text-action { margin: 12px 0 0; display: flex; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ann-hud { display: none; }
  .tow-hud { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

