:root {
  /* Colours from the office itself: paper cream, the app's purple, lawn green, terracotta, sunshine and window blue. */
  --bg: #f6efe0; --bg-2: #ede3cd; --card: #fffaf1; --card-2: #f3ead8; --line: #e2d4b8;
  --ink: #241d38; --muted: #5f566f; --dim: #958aa0;
  --lime: #5a4fcf; --violet: #3f9a4b; --pink: #e5603f; --sun: #f0ac22; --teal: #3a9fd6;
  --shadow: #3a2a1a;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --pixel: "Pixelify Sans", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
kbd { font: 600 .82em var(--mono); padding: 1px 6px; border-radius: 6px; background: #241d3810; border: 1px solid #241d3826; border-bottom-width: 2px; }
::selection { background: var(--sun); color: var(--ink); }
/* The app itself is dark: windows, terminals and map overlays keep light text. */
.window, .terminal { --ink: #f5f2ea; --muted: #b4aec4; --dim: #7c7690; color: var(--ink); }

/* Languages: every text exists twice, the body shows one. */
body:not([data-lang="en"]) [lang="en"], body:not([data-lang="es"]) [lang="es"] { display: none !important; }

.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -2%); } 75% { transform: translate(-2%, -4%); } }

/* Nav -------------------------------------------------------------------------------------------------------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 16px; border-radius: 18px; background: #fffaf1d9; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px #3a2a1a55; backdrop-filter: blur(14px) saturate(1.4); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.nav.hide { transform: translate(-50%, -120%); }
.brand { display: flex; align-items: center; gap: 9px; font: 700 17px var(--display); letter-spacing: -.02em; }
.brand b { color: var(--lime); font-weight: 800; }
.brand img { flex-shrink: 0; }
.links { display: flex; gap: 22px; margin-left: 12px; font-size: 14.5px; color: var(--muted); }
.links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Language switch: a globe and a sliding pill between EN and ES. */
.lang { position: relative; display: flex; align-items: center; height: 36px; padding: 3px 3px 3px 30px; border-radius: 99px; background: #241d380d; border: 1px solid var(--line); }
.lang .globe { position: absolute; left: 9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.lang button { position: relative; z-index: 1; width: 38px; height: 28px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font: 700 12.5px var(--display); letter-spacing: .04em; cursor: pointer; transition: color .25s; }
.lang button[aria-checked="true"] { color: #fff; }
.lang button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lang-thumb { position: absolute; top: 3px; left: 30px; width: 38px; height: 28px; border-radius: 99px; background: var(--ink); box-shadow: 0 2px 6px #241d3840; transition: transform .35s cubic-bezier(.5, 1.6, .4, 1); }
body[data-lang="es"] .lang-thumb { transform: translateX(38px); }
.stars { display: flex; align-items: center; gap: 7px; padding: 0 12px; height: 36px; border-radius: 10px; background: #241d380b; font: 600 13px var(--mono); color: var(--muted); }
.stars:hover { color: var(--ink); }

/* Buttons ---------------------------------------------------------------------------------------------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; font: 700 16px var(--display); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; will-change: transform; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.big { height: 68px; padding: 0 38px; font-size: 22px; border-radius: 18px; }
.btn-lime { background: var(--lime); color: #fff; box-shadow: 0 6px 0 #3b3196, 0 18px 40px -12px #5a4fcf88; }
.btn-lime:hover { box-shadow: 0 8px 0 #3b3196, 0 24px 50px -12px #5a4fcfaa; }
.btn-lime:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 #3b3196; }
.btn-ghost { color: var(--ink); padding: 0 6px; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 7px; text-decoration-color: var(--dim); font-weight: 500; font-family: var(--hand); font-size: 24px; }
.btn-ghost:hover { text-decoration-color: var(--lime); color: var(--lime); }
.arrow { transition: transform .25s; display: inline-block; }
.btn:hover .arrow { transform: translateX(5px); }

/* Shared type ------------------------------------------------------------------------------------------------ */
.scribble { font: 700 26px/1 var(--hand); color: var(--pink); margin: 0 0 10px; transform: rotate(-2deg); display: inline-block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; max-width: 15ch; }
h2 em { font-style: normal; color: var(--lime); position: relative; }
.sub { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 18px 0 0; }
.section-head { width: min(1180px, calc(100% - 40px)); margin: 0 auto 56px; }
section { position: relative; }
.hand-note { font: 700 24px var(--hand); color: var(--pink); margin: 0; }
.hand-note.center { text-align: center; margin-top: 16px; }

/* Hero ------------------------------------------------------------------------------------------------------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 120px 0 70px; }
.hero::before { content: ""; position: absolute; inset: -10% -30% auto -30%; height: 120%; z-index: -1; background: radial-gradient(40% 40% at 72% 42%, #5a4fcf2a, transparent 70%), radial-gradient(30% 35% at 18% 28%, #f0ac2233, transparent 70%), radial-gradient(30% 30% at 50% 92%, #3f9a4b22, transparent 70%); filter: blur(10px); }
.hero-title { font-size: clamp(44px, 5.6vw, 86px); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.marker { position: relative; color: var(--lime); white-space: nowrap; }
.marker svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.marker path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; margin: 26px 0 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.cursors { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; }
.cursor svg { width: 22px; height: 22px; fill: var(--c); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 3px 6px #0006); }
.cursor span { margin-top: 16px; padding: 3px 9px; border-radius: 8px 8px 8px 2px; background: var(--c); color: #fff; font: 700 12px var(--display); }
.c1 { --c: var(--pink); left: 6%; top: 22%; } .c2 { --c: var(--teal); left: 38%; top: 74%; } .c3 { --c: var(--sun); left: 46%; top: 16%; }

.game-wrap { position: relative; }
.game-wrap .hand-note { position: absolute; right: 2%; top: -64px; display: flex; align-items: flex-end; gap: 6px; transform: rotate(3deg); }
.game-wrap .hand-note svg { width: 60px; height: 46px; fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round; transform: scaleX(-1); }
.window { border-radius: var(--radius); background: #1b1726; border: 1px solid #ffffff14; box-shadow: 0 50px 100px -40px #3a2a1a88, 0 0 0 8px #241d3808; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.game-wrap:hover .window, .window.playing { transform: none; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #221d31; border-bottom: 1px solid #ffffff10; font: 500 12.5px var(--mono); color: var(--dim); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar .url { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: #ffffff0a; } .window-bar .url b { color: var(--ink); font-weight: 600; }
.online { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.online em { width: 8px; height: 8px; border-radius: 50%; background: #3ac07a; box-shadow: 0 0 0 3px #3ac07a33; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #3ac07a00; } }
.game { position: relative; aspect-ratio: 4 / 3.3; background: #3d7a3a; outline: none; cursor: pointer; overflow: hidden; touch-action: none; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.game.active { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--sun); }
.game-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; background: #0e0c16e0; font: 600 13px var(--display); white-space: nowrap; transition: opacity .3s, transform .3s; animation: bob 2.4s ease-in-out infinite; }
.game.active .game-hint { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.game-hint .keys { display: grid; grid-template-columns: repeat(4, auto); gap: 3px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none !important; } .hint-touch { display: inline; } .game-hint .keys { display: none; } }
@keyframes bob { 50% { margin-bottom: 5px; } }
.game-exit { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 9px; padding: 6px 10px; background: #0e0c16cc; color: var(--muted); font: 600 12px var(--mono); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.game.active .game-exit { opacity: 1; pointer-events: auto; }
.video-strip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; pointer-events: none; }
.vtile { width: 92px; height: 68px; border-radius: 12px; background: linear-gradient(160deg, var(--c, #2a2438), #15121e); border: 2px solid #ffffff22; position: relative; overflow: hidden; box-shadow: 0 10px 24px -8px #000a; }
.vtile .face { position: absolute; left: 50%; top: 4px; width: 64px; height: 64px; transform: translateX(-50%); background-repeat: no-repeat; background-size: 1288px 736px; background-position: -60px -24px; image-rendering: pixelated; }
.vtile .tag { position: absolute; left: 5px; bottom: 5px; display: flex; align-items: center; gap: 4px; padding: 1px 6px 1px 4px; border-radius: 6px; background: #0e0c16cc; font: 700 10.5px var(--display); }
.vtile .bars { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 9px; }
.vtile .bars i { width: 2px; background: #3ac07a; border-radius: 1px; animation: bar .5s ease-in-out infinite alternate; }
.vtile .bars i:nth-child(2) { animation-delay: .15s; } .vtile .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { from { height: 2px; } to { height: 9px; } }
.toast-room { position: absolute; left: 50%; top: 92px; transform: translate(-50%, -10px); padding: 8px 14px; border-radius: 12px; background: #5a4fcf; color: #fff; font: 700 13px var(--display); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; }
.toast-room.show { opacity: 1; transform: translate(-50%, 0); }

/* Marquee ---------------------------------------------------------------------------------------------------- */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--lime); color: #fff; transform: rotate(-2.2deg) scale(1.04); margin: 20px 0 120px; padding: 18px 0; box-shadow: 0 20px 50px -24px #5a4fcf99; }
.marquee-track { display: flex; width: max-content; font: 800 clamp(26px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span { padding-right: .4em; }

/* Team badges ------------------------------------------------------------------------------------------------ */
.team { padding: 40px 0 120px; }
.badges { position: relative; height: 520px; width: min(1180px, calc(100% - 20px)); margin: 0 auto; touch-action: pan-y; }
.straps { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.straps path { fill: none; stroke-width: 12; stroke-linecap: round; }
.straps .rail { fill: #b07a52; }
.straps .rail-shade { fill: #8a5c3b; }
.straps { z-index: 0; } .badge { z-index: 1; }
.badge { position: absolute; left: 0; top: 0; width: 176px; padding: 12px 12px 14px; border-radius: 16px; background: #fff; color: #16131f; border: 1px solid var(--line); box-shadow: 0 30px 40px -22px #3a2a1a88, inset 0 -4px 0 #0000000f; cursor: grab; user-select: none; touch-action: none; transform-origin: 50% 0; will-change: transform; }
.badge:active { cursor: grabbing; }
.badge::before { content: ""; position: absolute; top: 8px; left: 50%; width: 34px; height: 7px; margin-left: -17px; border-radius: 9px; background: #16131f; box-shadow: inset 0 2px 2px #000; }
.badge .head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin: 14px 0 8px; font: 700 10px var(--mono); white-space: nowrap; }
.badge .head b { padding: 2px 6px; border-radius: 5px; background: var(--c); color: #fff; }
.badge .pic { height: 132px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--c) 55%, #fff), color-mix(in srgb, var(--c) 30%, #222)); position: relative; overflow: hidden; }
.badge .pic i { position: absolute; left: 50%; top: -8px; width: 92px; height: 92px; margin-left: -46px; background: var(--sheet) 0 0 / 644px 368px no-repeat; image-rendering: pixelated; transform: scale(1.9); transform-origin: 50% 0; }
.badge .name { margin: 10px 0 0; font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.badge .role { margin: 3px 0 8px; font-size: 13px; color: #5b5568; }
.badge .status { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px var(--display); padding: 3px 8px; border-radius: 99px; background: #16131f10; }
.badge .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--s); }
.badge .barcode { margin-top: 10px; height: 20px; background: repeating-linear-gradient(90deg, #16131f 0 2px, transparent 2px 4px, #16131f 4px 5px, transparent 5px 8px, #16131f 8px 11px, transparent 11px 12px); opacity: .85; }

/* Feature stack ---------------------------------------------------------------------------------------------- */
.features { padding: 60px 0 140px; }
.stack { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.card { position: sticky; top: 110px; margin-bottom: 70px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--card)), var(--card) 40%); border: 1px solid var(--line); border-top: 3px solid var(--c); box-shadow: 0 -10px 50px -24px #3a2a1a66; transform-origin: 50% 0; }
.card:nth-child(2) { top: 140px; } .card:nth-child(3) { top: 170px; } .card:nth-child(4) { top: 200px; }
.tab { position: absolute; top: -36px; left: calc(28px + var(--i, 0) * 210px); height: 34px; padding: 0 16px; display: flex; align-items: center; border-radius: 12px 12px 0 0; background: var(--c); color: var(--on, #fff); font: 700 12.5px var(--pixel); letter-spacing: .06em; }
.card:nth-child(1) .tab { --i: 0; } .card:nth-child(2) .tab { --i: 1; } .card:nth-child(3) .tab { --i: 2; } .card:nth-child(4) .tab { --i: 3; }
.card-body { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; padding: 38px; align-items: center; min-height: 440px; }
.card-art { position: relative; height: 360px; border-radius: 18px; overflow: hidden; background: #3d7a3a; box-shadow: inset 0 0 0 1px #241d3814; }
.kicker { font: 700 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin: 0 0 12px; }
.card h3 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; margin-bottom: 20px; }
.card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 11px; }
.card li { position: relative; padding-left: 32px; color: var(--ink); }
.card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--c); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.rule { margin: 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); font-size: 15px; }
.rule b { display: block; font: 700 10.5px var(--mono); letter-spacing: .12em; color: var(--c); margin-bottom: 4px; }

/* Card art: walking sprites, rooms, desks, decorator */
.sprite { position: absolute; width: 92px; height: 92px; background: var(--sheet) no-repeat; background-size: 644px 368px; image-rendering: pixelated; transform: scale(2.2); transform-origin: 50% 75%; }
.art-talk { background: url(assets/world/studio.webp) -520px -1060px / 1280px 1664px; }
.art-talk .walk-east { left: 12%; top: 34%; background-position-y: -184px; animation: walkcycle .66s steps(6) infinite, toCenterL 6s ease-in-out infinite; }
.art-talk .walk-west { right: 12%; top: 34%; background-position-y: -276px; animation: walkcycle .66s steps(6) infinite, toCenterR 6s ease-in-out infinite; }
@keyframes walkcycle { from { background-position-x: -92px; } to { background-position-x: -644px; } }
@keyframes toCenterL { 0%, 8% { left: 2%; } 45%, 92% { left: calc(50% - 130px); } 100% { left: 2%; } }
@keyframes toCenterR { 0%, 8% { right: 2%; } 45%, 92% { right: calc(50% - 130px); } 100% { right: 2%; } }
.rings { position: absolute; left: 50%; top: 50%; }
.rings i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; opacity: 0; animation: ring 6s infinite; }
.rings i:nth-child(2) { animation-delay: .4s; } .rings i:nth-child(3) { animation-delay: .8s; }
@keyframes ring { 0%, 42% { transform: scale(.4); opacity: 0; } 50% { opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.speech { position: absolute; top: 14%; padding: 8px 12px; border-radius: 14px; background: #fff; color: #16131f; font: 700 15px var(--display); opacity: 0; animation: speech 6s infinite; box-shadow: 0 8px 20px -6px #0008; }
.speech::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.s1 { left: 18%; } .s1::after { left: 22px; } .s2 { right: 18%; animation-delay: .7s; } .s2::after { right: 22px; }
@keyframes speech { 0%, 45% { opacity: 0; transform: translateY(8px) scale(.8); } 52%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
.map-crop { position: absolute; inset: 0; background: url(assets/world/studio.webp) var(--x) var(--y) / 1280px 1664px no-repeat; transform: scale(1.35); transform-origin: 30% 30%; image-rendering: pixelated; }
.sound-bars { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 4px; align-items: flex-end; height: 40px; padding: 10px 12px; border-radius: 12px; background: #0e0c16cc; }
.sound-bars i { width: 5px; background: #8f73ff; border-radius: 3px; animation: bar2 .7s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { animation-delay: .1s; } .sound-bars i:nth-child(3) { animation-delay: .25s; } .sound-bars i:nth-child(4) { animation-delay: .05s; } .sound-bars i:nth-child(5) { animation-delay: .3s; }
@keyframes bar2 { from { height: 4px; } to { height: 22px; } }
.dnd { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #0e0c16dd; color: #fff; font: 700 14px var(--display); }
.dnd i { width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 4px #ff4d5e33; }
.knock { position: absolute; right: 20px; bottom: 24px; font: 700 34px var(--hand); color: var(--pink); transform: rotate(-8deg); animation: knock 1.6s infinite; }
@keyframes knock { 0%, 60%, 100% { transform: rotate(-8deg); } 66% { transform: rotate(-8deg) translateX(-4px); } 72% { transform: rotate(-8deg) translateX(4px); } 78% { transform: rotate(-8deg) translateX(-3px); } }
.art-deco { background: #efe5cf; background-image: linear-gradient(#241d3812 1px, transparent 1px), linear-gradient(90deg, #241d3812 1px, transparent 1px); background-size: 32px 32px; }
.deco-grid { position: absolute; inset: 22px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.deco-grid img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 8px 8px #3a2a1a55); }

/* A day ------------------------------------------------------------------------------------------------------ */
.day { overflow: hidden; background: var(--bg-2); }
.day-pin { height: 100vh; display: grid; grid-template-columns: 340px 1fr; align-items: center; gap: 40px; padding: 0 0 0 max(20px, calc((100vw - 1180px) / 2)); }
.day-head { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: var(--bg-2); box-shadow: 60px 0 50px 10px var(--bg-2); }
.day-head::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 50vw; background: var(--bg-2); }
.day-head h2 { font-size: clamp(40px, 4.6vw, 64px); }
.clock { position: relative; width: 170px; margin: 28px 0 0; }
.clock svg { width: 170px; height: 170px; }
.clock circle:first-child { fill: var(--card); stroke: var(--line); stroke-width: 3; }
.clock .ticks line { stroke: #241d3855; stroke-width: 2; }
.clock .hour { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.clock .minute { stroke: var(--lime); stroke-width: 4; stroke-linecap: round; }
.clock .pin { fill: var(--lime); }
.clock-time { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 3px 10px; border-radius: 8px; background: var(--lime); color: #fff; font: 700 15px var(--pixel); }
.tiny { color: var(--dim); font-size: 14px; margin-top: 30px; }
.day-track { display: flex; gap: 22px; padding-right: 30vw; will-change: transform; }
.moment { flex: 0 0 300px; position: relative; padding: 46px 22px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 30px -24px #3a2a1a66; }
.moment::before { content: ""; position: absolute; top: -40px; left: 0; right: -22px; border-top: 2px dashed #241d3833; }
.moment .time { position: absolute; top: -54px; left: 0; padding: 3px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 700 14px var(--pixel); }
.moment .who { display: flex; align-items: center; gap: 8px; position: absolute; top: 14px; left: 18px; font: 700 13px var(--display); color: var(--muted); }
.moment .who i { width: 30px; height: 30px; border-radius: 50%; background: var(--sheet) -8px -6px / 322px 184px no-repeat, #241d3812; image-rendering: pixelated; }
.moment p { margin: 0; font-size: 18px; line-height: 1.4; }
.moment.note { background: var(--sun); color: #2a2208; transform: rotate(-1.5deg); border: 0; font-family: var(--hand); }
.moment.note p { font: 700 25px/1.15 var(--hand); }
.moment.note .who { color: #5a4a12; }
.moment.note.pink { background: #ffc2dc; color: #3d0f24; transform: rotate(1.5deg); }
.moment.dashed { border: 2px dashed var(--pink); }
.mini-btns { display: flex; gap: 8px; margin-top: 14px; }
.mini-btns > span { padding: 6px 12px; border-radius: 9px; background: var(--lime); color: #fff; font: 700 13px var(--display); }
.mini-btns > span + span { background: #241d3812; color: var(--muted); }

/* Maps ------------------------------------------------------------------------------------------------------- */
.maps { padding: 150px 0 120px; }
.map-cards { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.map-card { position: relative; padding: 14px 14px 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 40px -30px #3a2a1a88; transform-style: preserve-3d; transition: border-color .3s; }
.map-card:hover { border-color: var(--c); }
.map-card .people { position: absolute; z-index: 2; top: 26px; left: 26px; padding: 4px 10px; border-radius: 9px; background: var(--c); color: #fff; font: 700 13px var(--pixel); transform: translateZ(40px); }
.map-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #2b2b2b; }
.map-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.map-card:hover .map-img img { transform: scale(1.12); }
.map-card h3 { font-size: 34px; font-weight: 800; margin: 18px 8px 6px; transform: translateZ(30px); }
.map-card p { margin: 0 8px; color: var(--muted); font-size: 15.5px; }

/* Open source ------------------------------------------------------------------------------------------------ */
.open { padding: 80px 0 120px; }
.stats { width: min(1180px, calc(100% - 32px)); margin: 0 auto 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.04em; color: var(--lime); margin-bottom: 8px; }
.stat:nth-child(2) b { color: var(--violet); } .stat:nth-child(3) b { color: var(--pink); } .stat:nth-child(4) b { color: var(--sun); }
.stat span { color: var(--muted); }
.open-grid { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.terminal { border-radius: 20px; overflow: hidden; background: #1b1726; border: 1px solid #ffffff14; box-shadow: 0 40px 80px -40px #3a2a1a99; }
.term { margin: 0; padding: 22px 24px 28px; min-height: 300px; font: 14.5px/1.75 var(--mono); color: #d8d3e6; white-space: pre-wrap; }
.term .p { color: #b9a9ff; } .term .c { color: var(--dim); } .term .ok { color: var(--teal); }
.caret { display: inline-block; width: 9px; height: 18px; background: #b9a9ff; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; font-size: 19px; }
.checks li { padding-left: 36px; position: relative; }
.checks li::before { content: "✦"; position: absolute; left: 0; color: var(--lime); font-size: 20px; }

/* Support --------------------------------------------------------------------------------------------------- */
.sponsor-pill { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: #db61a218; color: #c2408a; font: 700 13px var(--display); transition: background .2s, transform .2s; }
.sponsor-pill:hover { background: #db61a22e; transform: translateY(-1px); }
.sponsor-pill svg { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.btn-pink { background: #db61a2; color: #fff; box-shadow: 0 6px 0 #a83b78, 0 18px 40px -12px #db61a288; }
.btn-pink:hover { box-shadow: 0 8px 0 #a83b78, 0 24px 50px -12px #db61a2aa; }
.btn-pink:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 #a83b78; }
.btn-kofi { background: #fff; color: var(--ink); border: 2px solid #ff5e5b; box-shadow: 0 6px 0 #e04a47; }
.btn-kofi:hover { background: #fff4f3; }
.btn-kofi:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 #e04a47; }
.support-note { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; }
.support-note a { color: var(--ink); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }
.support { padding: 40px 0 40px; }
.support-card { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 48px; border-radius: 30px; background: linear-gradient(135deg, #fff1f7, var(--card) 55%); border: 1px solid #f1cfe0; box-shadow: 0 30px 60px -40px #a83b7866; overflow: hidden; }
.support h2 em { color: #db61a2; }
.support-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 17px; }
.support-list li { display: flex; gap: 12px; align-items: center; }
.support-art { position: relative; height: 320px; border-radius: 22px; background: #efe5cf; background-image: linear-gradient(#241d3810 1px, transparent 1px), linear-gradient(90deg, #241d3810 1px, transparent 1px); background-size: 32px 32px; }
.support-art .coffee { position: absolute; left: 50%; top: 42%; width: 96px; transform: translate(-50%, -50%); image-rendering: pixelated; filter: drop-shadow(0 10px 10px #3a2a1a44); }
.steam { position: absolute; left: 50%; top: 26%; width: 6px; height: 26px; border-radius: 6px; background: #fff; opacity: 0; animation: steam 2.4s ease-in-out infinite; }
.steam.s1 { margin-left: -14px; } .steam.s2 { animation-delay: .8s; } .steam.s3 { margin-left: 12px; animation-delay: 1.6s; }
@keyframes steam { 0% { transform: translateY(10px) scaleY(.6); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-34px) scaleY(1.2); opacity: 0; } }
.float-heart { position: absolute; color: #db61a2; font-size: 26px; animation: floatheart 3.2s ease-in-out infinite; }
.float-heart.h1 { left: 24%; top: 30%; } .float-heart.h2 { right: 22%; top: 22%; animation-delay: 1.1s; font-size: 20px; } .float-heart.h3 { right: 32%; top: 48%; animation-delay: 2.1s; font-size: 16px; }
@keyframes floatheart { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .5; } 50% { transform: translateY(-16px) rotate(8deg); opacity: 1; } }
.support-art .cheer { left: 14%; bottom: 18px; background-position: 0 0; transform: scale(1.6); transform-origin: 50% 100%; animation: hop 1.4s ease-in-out infinite; }
.support-art .cheer.two { left: auto; right: 14%; animation-delay: .7s; }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Final ------------------------------------------------------------------------------------------------------ */
.final { padding: 120px 20px 220px; text-align: center; overflow: hidden; }
.huge { font-size: clamp(54px, 10vw, 150px); font-weight: 800; letter-spacing: -.055em; line-height: .9; max-width: 11ch; margin: 0 auto 50px; }
.parade { position: absolute; left: 0; right: 0; bottom: 30px; height: 120px; }
.parade .walker { position: absolute; bottom: 0; width: 92px; height: 92px; background: var(--sheet) no-repeat; background-size: 644px 368px; background-position-y: -184px; image-rendering: pixelated; transform: scale(1.4); animation: walkcycle .66s steps(6) infinite, parade var(--d, 18s) linear infinite; animation-delay: 0s, var(--delay, 0s); }
@keyframes parade { from { left: -120px; } to { left: 100%; } }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px max(20px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot a:hover { color: var(--lime); }

/* Responsive ------------------------------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 70px; min-height: 0; }
  .window { transform: none; }
  .card-body { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .card-art { height: 260px; }
  .tab { left: calc(18px + var(--i, 0) * 0px); }
  .card:nth-child(n) { position: relative; top: 0; margin-bottom: 64px; }
  .map-cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .open-grid { grid-template-columns: 1fr; }
  .day-pin { grid-template-columns: 1fr; height: auto; padding: 90px 20px; gap: 30px; }
  .day-track { flex-direction: column; padding-right: 0; gap: 18px; }
  .moment { flex-basis: auto; }
  /* Phones: the time sits inside its own card, next to who it is about. */
  .moment { padding: 16px 18px 18px; }
  .moment::before { display: none; }
  .moment .time { position: static; display: inline-block; margin: 0 8px 10px 0; vertical-align: middle; }
  .moment .who { position: static; display: inline-flex; vertical-align: middle; margin-bottom: 10px; }
  .clock { display: none; }
  .support-card { grid-template-columns: 1fr; padding: 26px; }
  .support-art { height: 240px; order: -1; }
  .tiny { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  /* Clear of the phone's status bar and notch, with room to breathe. */
  .nav { top: calc(env(safe-area-inset-top, 0px) + 16px); width: calc(100% - 28px); gap: 8px; padding: 9px 9px 9px 12px; border-radius: 16px; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 118px); }
  .brand span, .stars, .sponsor-pill span { display: none; }
  .sponsor-pill { padding: 0 11px; }
  .nav .btn.small { white-space: nowrap; padding: 0 11px; font-size: 13px; }
  .nav-right { gap: 6px; }
  .badges { height: 520px; }
  .badge { width: 150px; padding: 10px 10px 12px; }
  .badge .head { font-size: 9px; }
  .badge .pic { height: 104px; }
  .badge .pic i { transform: scale(1.5); }
  .badges { height: 440px; }
  .term { min-height: 0; }
  .card-body { padding: 20px; }
  .card h3 { font-size: 34px; }
  .speech { font-size: 13px; }
  .s1 { left: 6%; } .s2 { right: 6%; }
  .hero-title { font-size: 46px; }
  .stat b { font-size: 40px; }
  .final { padding-bottom: 180px; }
  .vtile { width: 70px; height: 54px; }
  .game-hint { font-size: 11.5px; }
  .online { display: none; }
  .window-bar .url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { width: calc(100% - 32px); }
  .cursors { display: none; }
  .game-hint .keys { display: none; }
}
@media (max-width: 380px) {
  .lang { padding-left: 3px; } .lang .globe { display: none; } .lang-thumb { left: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}
