/* ITZA Friend - the front door's stylesheet (owner, 2026-11-12: "cool and fun looking ... highlights the best of the
 * app and how fun it is to use").
 *
 * The app's own room carried out to the street: the same deep neutrals, the same gold for the person and the product
 * word, the same faces (shipped from this origin, never a font service), the same 8px button corners. On top of that
 * the site gets to play: drifting colour, a phone that runs a real-looking chat, handwriting in the margins.
 * Motion is transform and opacity only, and all of it stops for reduced motion. No scroll bars anywhere (owner,
 * 2026-11-05). Logical properties, so a right-to-left reading never breaks the layout. */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../app/fonts/instrument-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../app/fonts/roboto-latin.woff2') format('woff2'); }
@font-face { font-family: 'Patrick Hand'; font-style: normal; font-weight: 400; font-display: swap; src: url('../app/fonts/patrick-hand-latin.woff2') format('woff2'); }

/* TWO ROOMS. Dark is the room everyone walks into (owner, 2026-11-12: "change it to default being dark mode", the
 * same day he first asked for light unless the browser asked for dark). Light is the switch's choice only: the
 * switch in the header writes data-theme="light" on <html> and door.js puts it back before anything draws. The
 * browser's own preference is not read: every browser states light or dark, so following it would have put most
 * visitors in light. The phone and the small app screens in the tiles stay dark in both rooms. */
:root {
  color-scheme: dark;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
  --paper: #0b1016;
  --surface: #121923;
  --surface-2: #18212d;
  --ink: #eef1f5;
  --ink-2: #b5bfcc;
  --muted: #9aa5b4;
  --dim: #7f8a9a;
  --line: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .035);
  --ghost: rgba(255, 255, 255, .04);
  --ghost-hover: rgba(255, 255, 255, .09);
  --ghost-line: rgba(255, 255, 255, .16);
  --header: rgba(11, 16, 22, .62);
  --nav: #c6ceda;
  --her: rgba(255, 255, 255, .1);
  --panel: rgba(0, 0, 0, .28);
  --gold-text: #f5c711;
  --coral-text: #ff6f61;
  --teal-text: #2fd3b5;
  --violet-text: #9b7bff;
  --hl: linear-gradient(100deg, #f5c711 0%, #ffe27a 40%, #ff6f61 100%);
  --marquee: rgba(238, 241, 245, .18);
  --marquee-gold: rgba(245, 199, 17, .75);
  --marquee-violet: rgba(155, 123, 255, .7);
  --more-bg: linear-gradient(135deg, #1a1530, #121923 60%);
  --xp-bg: rgba(18, 25, 35, .8);
  --lift: 0 30px 60px -28px rgba(0, 0, 0, .9);
  --pic-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9);
  --blob-1: .32; --blob-2: .26; --blob-3: .18; --grain: .05;
  --wm-gold: linear-gradient(105deg, #8a6206 0%, #c99a10 22%, #f9df6d 40%, #f5c711 52%, #a67c08 72%, #e0b312 88%, #b98a0a 100%);
  --gold: #f5c711;
  --gold-ink: #1d1600;
  --blue: #4d9bff;
  --coral: #ff6f61;
  --violet: #9b7bff;
  --teal: #2fd3b5;
  --r-btn: 8px;
  --r-card: 22px;
  --shell: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f4ef; --surface: #ffffff; --surface-2: #ffffff;
  --ink: #141a23; --ink-2: #465163; --muted: #667183;
  --dim: #98a1ae; --line: rgba(20, 26, 35, .1); --glass: rgba(255, 255, 255, .72);
  --ghost: rgba(20, 26, 35, .04); --ghost-hover: rgba(20, 26, 35, .08); --ghost-line: rgba(20, 26, 35, .18);
  --header: rgba(246, 244, 239, .78); --nav: #3a4453; --her: rgba(20, 26, 35, .07);
  --panel: #161d29; --gold-text: #a87a00; --coral-text: #d4473a;
  --teal-text: #0b8a73; --violet-text: #6a4ee0; --hl: linear-gradient(100deg, #d39a00 0%, #ee9f1c 45%, #e5533f 100%);
  --marquee: rgba(20, 26, 35, .16); --marquee-gold: #c99400; --marquee-violet: #7c5cf0;
  --more-bg: linear-gradient(135deg, #ece6ff, #ffffff 62%); --xp-bg: #ffffff; --lift: 0 30px 60px -30px rgba(20, 26, 35, .4);
  --pic-shadow: 0 40px 80px -36px rgba(20, 26, 35, .5); --blob-1: .26; --blob-2: .2;
  --blob-3: .16; --grain: .025;
  --wm-gold: linear-gradient(105deg, #6e4a02 0%, #a67a06 30%, #d4a20a 50%, #946a05 75%, #b98c08 100%);
}
/* The app's screens (the phone, the tiles' little panels) are dark in both rooms. */
.screen, .tile-art, .xp-art:not(.wb) { --wm-gold: linear-gradient(105deg, #8a6206 0%, #c99a10 22%, #f9df6d 40%, #f5c711 52%, #a67c08 72%, #e0b312 88%, #b98a0a 100%); --ink: #eef1f5; --muted: #9aa5b4; --her: rgba(255, 255, 255, .1); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; -webkit-text-size-adjust: 100%; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
b { font-weight: 700; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 8px 12px; border-radius: var(--r-btn); }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- The wordmark, as the app draws it ---------- */
.wm { white-space: nowrap; font-family: 'Roboto', var(--sans); letter-spacing: -0.01em; }
.wm-itza { color: var(--blue); font-weight: 600; }
.wm-prod {
  color: var(--gold); font-weight: 800;
  background: var(--wm-gold);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- The sky: slow colour behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: var(--blob-1); will-change: transform; }
.b1 { background: radial-gradient(circle, #f5c711 0%, transparent 62%); inset-block-start: -22vmax; inset-inline-end: -18vmax; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, #9b7bff 0%, transparent 62%); inset-block-start: 30vh; inset-inline-start: -26vmax; animation: drift2 32s ease-in-out infinite alternate; opacity: var(--blob-2); }
.b3 { background: radial-gradient(circle, #ff6f61 0%, transparent 60%); inset-block-end: -30vmax; inset-inline-end: 0; animation: drift3 38s ease-in-out infinite alternate; opacity: var(--blob-3); }
.grain { position: absolute; inset: 0; opacity: var(--grain); background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 3px 3px; }
@keyframes drift1 { to { transform: translate(-12vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(16vmax, -10vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-20vmax, -8vmax) scale(1.2); } }

/* ---------- Buttons: 8px corners, never a pill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgba(245,199,17,.6); }
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(245,199,17,.75); }
.btn-ghost { background: var(--ghost); color: var(--ink); border-color: var(--ghost-line); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-xl { min-height: 64px; padding: 0 40px; font-size: 1.2rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); background: var(--header); border-block-end: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { text-decoration: none; font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--nav); text-decoration: none; font-weight: 600; font-size: .98rem; transition: color .15s; }
.nav a:not(.btn):hover { color: var(--gold-text); }

/* The light/dark switch: sun, a sliding switch, moon. The frame is a button, so 8px corners like every other. */

/* One icon, the room you can go to (owner, 2026-11-13): the sun in the dark room, the moon in the light one. */
.theme { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--r-btn); border: 1px solid var(--ghost-line); background: var(--ghost); color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.theme:hover { background: var(--ghost-hover); color: var(--ink); }
.theme svg { grid-area: 1 / 1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, transform .45s var(--ease); }
.theme .moon { opacity: 0; transform: rotate(-70deg) scale(.6); }
:root[data-theme="light"] .theme .sun { opacity: 0; transform: rotate(70deg) scale(.6); }
:root[data-theme="light"] .theme .moon { opacity: 1; transform: none; }

/* ---------- Shared bits ---------- */
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-text); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-block-end: 18px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.hl { background: var(--hl); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dim { color: var(--dim); }
.band { padding-block: 110px; position: relative; }
.head { max-width: 760px; margin-block-end: 54px; }
.head h2, .real-copy h2, .last h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.sub { color: var(--ink-2); font-size: 1.12rem; margin-block-start: 18px; max-width: 620px; }
/* Only hidden once the door script has said scripts run (html.js), so a page with no script still shows everything.
 * The hero never waits on scrolling: it rises on load by itself. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; } .js .hero .reveal:nth-child(3) { animation-delay: .16s; } .js .hero .reveal:nth-child(4) { animation-delay: .24s; } .js .hero .reveal:nth-child(5) { animation-delay: .32s; } .js .hero .reveal:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* Chat bubbles everywhere: the person right in gold, the character left - as in the app. */
.b { display: block; width: fit-content; max-width: 86%; padding: 9px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.35; }
.b.me { margin-inline-start: auto; background: var(--gold); color: var(--gold-ink); border-end-end-radius: 6px; font-weight: 500; }
.b.her { background: var(--her); color: var(--ink); border-end-start-radius: 6px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 90px; }
.hero-in { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 4.7rem); line-height: .98; letter-spacing: -0.035em; }
.hero h1 .hl { display: inline-block; }
.scrawl { position: relative; rotate: -3deg; font-family: var(--hand); color: var(--gold-text); font-size: 1.6rem; margin-block: 14px 22px; margin-inline-start: 6px; width: fit-content; }
.scrawl-arrow { position: absolute; inset-inline-end: -86px; top: -14px; width: 80px; height: 40px; fill: none; stroke: var(--gold-text); stroke-width: 2.4; stroke-linecap: round; }
.lede { color: var(--ink-2); font-size: 1.18rem; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 32px; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .98rem; }
.hero-facts b { color: var(--ink); font-size: 1.15rem; margin-inline-end: 4px; }
.reveal:nth-child(2) { transition-delay: .06s; } .reveal:nth-child(3) { transition-delay: .12s; } .reveal:nth-child(4) { transition-delay: .18s; } .reveal:nth-child(5) { transition-delay: .24s; } .reveal:nth-child(6) { transition-delay: .3s; }

.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a3442, #0d1219 40%, #1e2733);
  box-shadow: var(--pic-shadow), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.04), 0 0 120px -30px rgba(245,199,17,.35);
  transform: rotate(2deg); animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(2deg) translateY(-10px); } }
.phone-notch { position: absolute; z-index: 5; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #05080c; border-radius: 16px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: breathe 6s ease-in-out infinite; transition: opacity .5s; }
.stage.swap { opacity: 0; }
@keyframes breathe { 50% { transform: scale(1.045) translateY(-4px); } }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 18%, transparent 42%, rgba(5,8,12,.82) 74%, rgba(5,8,12,.96) 100%); }
.bar { position: absolute; top: 54px; inset-inline: 16px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.bar-name { color: #fff; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.bar-tag { color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bar-tag.expert { background: rgba(47,211,181,.28); }
.scene { position: absolute; top: 86px; inset-inline-start: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; color: #e8edf3; padding: 5px 10px 5px 8px; border-radius: 8px; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); }
.scene.on { opacity: 1; transform: none; }
.scene-play { width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 8px solid var(--gold); }
/* Claire's whiteboard, as a card in the chat so it never covers her face: the words write themselves on. */
.chat .wbcard { align-self: flex-start; padding: 10px 16px; border-radius: 8px; background: #f7f8f4; color: #1b4fb3; font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; box-shadow: inset 0 0 0 4px #d9dde3; rotate: -1.5deg; animation: pop .32s var(--ease) both; }
.chat .wbcard span { display: inline-block; animation: write 1.5s steps(16) .3s both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.chat { position: absolute; inset-inline: 12px; bottom: 66px; z-index: 3; display: flex; flex-direction: column; gap: 6px; max-height: 52%; overflow: hidden; justify-content: flex-end; }
.chat .b { font-size: .86rem; padding: 8px 12px; animation: pop .32s var(--ease) both; transform-origin: bottom left; }
.chat .b.me { transform-origin: bottom right; }
.chat .b.voice { display: inline-flex; align-items: center; gap: 8px; }
.chat .b.voice::before { content: ''; width: 34px; height: 12px; background: repeating-linear-gradient(90deg, var(--gold-ink) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(0deg, #000 30%, transparent 30%, transparent 70%, #000 70%), linear-gradient(#000, #000); opacity: .7; }
.chat .heard { align-self: flex-end; font-size: .7rem; color: #9be7c3; margin-block-start: -2px; animation: pop .32s var(--ease) both; }
.chat .later { align-self: center; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #8d98a8; padding-block: 4px; animation: pop .32s var(--ease) both; }
.chat .typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: #dfe5ee; opacity: .5; animation: dot 1.1s infinite ease-in-out; }
.chat .typing i:nth-child(2) { animation-delay: .15s; } .chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.chat.fade { opacity: 0; transition: opacity .4s; }
.inbar { position: absolute; z-index: 3; inset-inline: 12px; bottom: 16px; display: flex; gap: 8px; }
.inbar-field { flex: 1; height: 40px; border-radius: 8px; background: rgba(255,255,255,.1); color: #8893a3; font-size: .85rem; padding-inline: 14px; display: flex; align-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.inbar-send { width: 40px; height: 40px; border-radius: 8px; background: var(--gold); position: relative; }
.inbar-send::after { content: ''; position: absolute; left: 14px; top: 13px; border-block: 7px solid transparent; border-inline-start: 13px solid var(--gold-ink); }
.ping { position: absolute; z-index: 6; top: 12px; inset-inline: 10px; padding: 11px 13px; border-radius: 16px; background: rgba(28,34,44,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 40px -12px rgba(0,0,0,.8); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: .8rem; transform: translateY(-140%); transition: transform .55s var(--ease); }
.ping.on { transform: none; }
.ping-app { font-size: .72rem; }
.ping-when { color: var(--muted); font-size: .7rem; }
.ping b { grid-column: 1 / -1; font-size: .86rem; }
.ping span:last-child { grid-column: 1 / -1; color: #d4dae3; line-height: 1.3; }

.picker { display: flex; gap: 10px; margin-block-start: 30px; padding: 6px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.pick { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 8px 6px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); font: 600 .78rem/1 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pick img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s var(--ease); }
.pick:hover { color: var(--ink); transform: translateY(-2px); }
.pick.on { color: var(--ink); background: var(--ghost-hover); }
.pick.on img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--gold); }

.stickers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sticker { position: absolute; font-family: var(--hand); font-size: 1.25rem; padding: 6px 14px; border-radius: 14px; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite; }
.s1 { top: 9%; inset-inline-start: -2%; background: var(--coral); color: #2a0703; transform: rotate(-8deg); }
.s2 { top: 44%; inset-inline-end: -6%; background: var(--violet); color: #140a33; transform: rotate(6deg); animation-delay: -2s; }
.s3 { top: 70%; inset-inline-start: -4%; background: var(--teal); color: #032a22; transform: rotate(-4deg); animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Hellos ---------- */
.hellos { padding-block: 26px 10px; border-block: 1px solid var(--line); background: var(--ghost); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 46px; animation: slide 46s linear infinite; }
.marquee-track span { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--marquee); white-space: nowrap; transition: color .3s; }
.marquee-track span:nth-child(4n+1) { color: var(--marquee-gold); }
.marquee-track span:nth-child(7n+3) { color: var(--marquee-violet); }
@keyframes slide { to { transform: translateX(-50%); } }
.hellos-note { text-align: center; color: var(--muted); padding: 14px 20px 10px; font-size: .98rem; }

/* ---------- The cast ---------- */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; transform-style: preserve-3d;
  text-decoration: none;
}
.card:hover { box-shadow: var(--lift), 0 0 0 1px rgba(245,199,17,.35); }
.card-pic { overflow: hidden; aspect-ratio: 1; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-pic img { transform: scale(1.07); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-size: 1.32rem; }
.card-body p { color: var(--ink-2); font-size: .95rem; }
.card-tag { font-size: .74rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-tag.friend { color: var(--coral-text) !important; }
.card-tag.expert { color: var(--teal-text) !important; }
.card-tag.real { color: var(--violet-text) !important; }
.quote { margin-block-start: auto !important; padding-block-start: 8px; font-family: var(--hand); font-size: 1.22rem !important; color: var(--gold-text) !important; line-height: 1.2; }
/* The two wide cards (Darnell, Thais) lie on their side; the others stand. */
.cast .card:nth-child(1), .cast .card:nth-child(6) { grid-column: span 2; flex-direction: row; }
.cast .card:nth-child(6) { flex-direction: row-reverse; }
.cast .card:nth-child(1) .card-pic, .cast .card:nth-child(6) .card-pic { flex: 1.05; aspect-ratio: auto; min-height: 100%; }
.cast .card:nth-child(1) .card-body, .cast .card:nth-child(6) .card-body { flex: 1; padding: 30px; justify-content: center; }
.cast .card:nth-child(1) h3, .cast .card:nth-child(6) h3 { font-size: 2rem; }
.cast .card:nth-child(1) .quote, .cast .card:nth-child(6) .quote { margin-block-start: 10px !important; font-size: 1.5rem !important; }
.more { grid-column: 1 / -1; flex-direction: row; background: var(--more-bg); }
.more-grid { flex: 1.3; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; min-height: 280px; overflow: hidden; }
.more-grid img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) saturate(1.2) brightness(.7); transform: scale(1.15); transition: filter .6s var(--ease); }
.more:hover .more-grid img { filter: blur(6px) saturate(1.3) brightness(.8); }
.more-copy { flex: 1; padding: 36px; display: flex; flex-direction: column; gap: 12px; justify-content: center; align-items: flex-start; }
.more-copy h3 { font-size: 1.8rem; }
.more-copy p { color: var(--ink-2); font-size: .98rem; }
.more-copy .more-q { font-family: var(--hand); font-size: 3.4rem; line-height: .8; color: var(--violet-text); transform: rotate(-8deg); }

/* ---------- The bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; border-radius: var(--r-card); padding: 22px 24px 26px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tile h3 { font-size: 1.4rem; margin-block-start: 6px; }
.tile p { color: var(--ink-2); font-size: .98rem; }
.t-act { grid-column: span 3; } .t-mem { grid-column: span 3; }
.tile-art { position: relative; height: 210px; border-radius: 16px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; }
.act-art { padding: 0; }
.act-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .75; }
.act-chip { position: absolute; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; padding: 6px 11px 6px 9px; border-radius: 8px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: chip 6s infinite; opacity: 0; }
.act-chip i { width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 8px solid var(--gold); }
.a1 { top: 18px; inset-inline-start: 18px; } .a2 { top: 46%; inset-inline-end: 18px; animation-delay: 2s; } .a3 { bottom: 18px; inset-inline-start: 30%; animation-delay: 4s; }
@keyframes chip { 0%, 100% { opacity: 0; transform: translateY(8px); } 6%, 30% { opacity: 1; transform: none; } 36% { opacity: 0; } }
.mem-art .when { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.style-art { gap: 12px; }
.swap { transition: opacity .35s; }
.swap.out { opacity: 0; }
.ping-art { background: linear-gradient(160deg, #3b2a6b, #13202f 70%); align-items: center; }
.lock-time { font-size: 3rem; font-weight: 600; letter-spacing: -0.03em; color: rgba(255,255,255,.88); line-height: 1; }
.lock-note { width: 100%; display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .82rem; line-height: 1.3; animation: slidein 5s var(--ease) infinite; }
.lock-note b { font-size: .86rem; }
@keyframes slidein { 0% { opacity: 0; transform: translateY(-16px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.talk-art { flex-direction: row; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 30% 50%, rgba(255,111,97,.22), transparent 60%), var(--panel); }
.lips { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,111,97,.6); animation: lip 2.4s infinite; }
.lips svg { width: 44px; height: 30px; fill: #2a0703; stroke: #ffd5cf; stroke-width: 1.6; }
@keyframes lip { 0% { box-shadow: 0 0 0 0 rgba(255,111,97,.5); } 70% { box-shadow: 0 0 0 18px rgba(255,111,97,0); } }
.wave { display: flex; align-items: center; gap: 5px; height: 60px; }
.wave i { width: 6px; height: 100%; border-radius: 3px; background: var(--coral); transform-origin: center; animation: eq 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s; } .wave i:nth-child(3) { animation-delay: -.5s; } .wave i:nth-child(4) { animation-delay: -.1s; } .wave i:nth-child(5) { animation-delay: -.7s; } .wave i:nth-child(6) { animation-delay: -.35s; } .wave i:nth-child(7) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
/* The last tile runs the full width: three languages on one side, the words on the other. */
.t-lang { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr; column-gap: 34px; align-items: start; }
.t-lang .tile-art { grid-row: 1 / 3; height: auto; min-height: 190px; }
.t-lang h3 { align-self: end; margin-block-start: 30px; }
.lang-art .b { font-size: .92rem; }
.lang-art .b:nth-child(2) { margin-inline-start: 14px; opacity: .8; } .lang-art .b:nth-child(3) { margin-inline-start: 28px; opacity: .6; }

/* ---------- Experts ---------- */
.band-experts::before { content: ''; position: absolute; inset: 40px 0; background: linear-gradient(180deg, transparent, rgba(47,211,181,.05) 30%, rgba(47,211,181,.05) 70%, transparent); pointer-events: none; }
.experts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.xp { position: relative; padding: 26px; border-radius: var(--r-card); background: var(--xp-bg); border: 1px solid rgba(47,211,181,.3); display: flex; flex-direction: column; gap: 12px; }
.xp-face { position: absolute; top: -24px; inset-inline-end: 22px; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--teal); }
.xp h3 { font-size: 1.35rem; margin-block-start: 6px; }
.xp p { color: var(--ink-2); font-size: .98rem; }
.xp-art { height: 190px; border-radius: 14px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cal-head { font-weight: 700; font-size: .85rem; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.cal-grid i { border-radius: 6px; background: rgba(255,255,255,.07); }
.cal-grid i.p { background: var(--coral); } .cal-grid i.f { background: rgba(47,211,181,.6); } .cal-grid i.m { background: rgba(155,123,255,.55); }
.cal-grid i.t { box-shadow: inset 0 0 0 2px var(--gold); }
.steps { justify-content: center; gap: 8px; }
.step { position: relative; padding-inline-start: 28px; font-size: .92rem; color: var(--muted); }
.step::before { content: ''; position: absolute; inset-inline-start: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3a4656; }
.step.done { color: #7d8898; text-decoration: line-through; }
.step.done::before { background: var(--teal); border-color: var(--teal); }
.step.now { color: var(--ink); font-weight: 700; }
.step.now::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,199,17,.2); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 8px rgba(245,199,17,0); } }
.wb { background: #f4f5f1; box-shadow: inset 0 0 0 6px #d4d8de; justify-content: center; align-items: center; gap: 16px; }
.wb-line { font-family: var(--hand); font-size: 2.1rem; color: #1b4fb3; transform: rotate(-2deg); }
.wb-heard { display: flex; gap: 6px; }
.wb-heard i { font-style: normal; font-size: .85rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.wb-heard i.ok { background: #d6f5e6; color: #0d6b45; }

/* ---------- Sometimes it's really her ---------- */
.real { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.real-pic { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--pic-shadow), 0 0 0 1px rgba(155,123,255,.35), 0 0 90px -30px rgba(155,123,255,.6); }
.real-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.live-pill { color: #fff; position: absolute; top: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; background: rgba(0,0,0,.6); font-weight: 800; font-size: .8rem; letter-spacing: .12em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.live-pill .live-dot { background: #ff4d5e; animation-name: pulsered; }
@keyframes pulsered { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
.real-chat { margin-block-start: 30px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.gift { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(155,123,255,.16); border: 1px solid rgba(155,123,255,.35); width: fit-content; color: inherit; font: inherit; text-align: start; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.gift:hover { background: rgba(155,123,255,.24); transform: translateY(-1px); }
/* Playing: the box gives way to four bars that move with the song. */
.gift-eq { display: none; align-items: flex-end; gap: 3px; width: 34px; height: 30px; flex: none; padding-inline: 4px; }
.gift-eq i { flex: 1; height: 30%; border-radius: 2px; background: var(--violet); animation: eq .9s ease-in-out infinite alternate; }
.gift-eq i:nth-child(2) { animation-delay: -.3s; } .gift-eq i:nth-child(3) { animation-delay: -.6s; } .gift-eq i:nth-child(4) { animation-delay: -.15s; }
.gift.playing .gift-box { display: none; }
.gift.playing .gift-eq { display: flex; }
@keyframes eq { to { height: 100%; } }
.gift b { display: block; font-size: .95rem; }
.gift small { color: var(--muted); font-size: .82rem; }
.gift-box { position: relative; width: 34px; height: 30px; border-radius: 6px; background: var(--violet); flex: none; }
.gift-box::before { content: ''; position: absolute; inset-block: 0; left: 14px; width: 6px; background: #f5c711; }
.gift-box::after { content: ''; position: absolute; right: 2px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 2px var(--paper); }

/* ---------- How ---------- */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps3 li { padding: 28px; border-radius: var(--r-card); background: var(--glass); border: 1px solid var(--line); }
.steps3 .n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-family: var(--hand); font-size: 1.9rem; color: var(--gold-ink); background: var(--gold); margin-block-end: 18px; transform: rotate(-6deg); }
.steps3 li:nth-child(2) .n { background: var(--coral); transform: rotate(4deg); }
.steps3 li:nth-child(3) .n { background: var(--teal); transform: rotate(-3deg); }
.steps3 h3 { font-size: 1.35rem; margin-block-end: 8px; }
.steps3 p { color: var(--ink-2); }

/* ---------- Last call ---------- */
.last { text-align: center; padding-block: 120px 130px; }
.last-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.last .sub { margin-inline: auto; margin-block: 0 10px; }
.faces { display: flex; margin-block-end: 8px; }
.faces img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--paper); margin-inline-start: -14px; animation: hop 3.2s var(--ease) infinite; }
.faces img:first-child { margin-inline-start: 0; }
.faces img:nth-child(2) { animation-delay: .25s; } .faces img:nth-child(3) { animation-delay: .5s; } .faces img:nth-child(4) { animation-delay: .75s; } .faces img:nth-child(5) { animation-delay: 1s; }
@keyframes hop { 0%, 30%, 100% { transform: none; } 12% { transform: translateY(-12px); } }

/* ---------- Footer ---------- */
.foot { border-block-start: 1px solid var(--line); padding-block: 34px 44px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot .wm { font-size: 1.25rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--gold-text); }
.foot-yr { color: var(--dim); font-size: .9rem; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .cta-row, .hero-facts { justify-content: center; }
  .scrawl { margin-inline: auto; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .cast .card:nth-child(6) { flex-direction: row; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .t-act, .t-mem { grid-column: span 1; }
  .t-lang { grid-column: span 1; display: flex; }
  .t-lang .tile-art { height: 210px; }
  .t-lang h3 { margin-block-start: 6px; }
  .experts { grid-template-columns: 1fr; gap: 44px; max-width: 560px; margin-inline: auto; }
  .real { grid-template-columns: 1fr; gap: 40px; }
  .real-pic { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 8px; }
  .band { padding-block: 80px; }
  .hero { padding-block: 40px 70px; }
  .scrawl-arrow { display: none; }
  .cast { grid-template-columns: 1fr; }
  .cast .card:nth-child(1), .cast .card:nth-child(6), .more { grid-column: span 1; flex-direction: column; }
  .cast .card:nth-child(1) .card-pic, .cast .card:nth-child(6) .card-pic { aspect-ratio: 1; flex: none; min-height: 0; }
  .more-grid { flex: none; }
  .more-grid { min-height: 200px; }
  .cast .card:nth-child(1) .card-body, .cast .card:nth-child(6) .card-body { padding: 20px 20px 24px; }
  .bento { grid-template-columns: 1fr; }
  .t-lang { display: flex; }
  .t-lang h3 { margin-block-start: 6px; }
  .steps3 { grid-template-columns: 1fr; }
  .sticker { font-size: 1.05rem; }
  .s1, .s3 { display: none; }
  .s2 { top: 40%; inset-inline-end: 0; }
  .foot-in { flex-direction: column; text-align: center; }
  .foot nav { justify-content: center; }
}

/* A phone: the wordmark, the icon and the main button share one row. */
@media (max-width: 420px) {
  .brand { font-size: 1.3rem; }
  .theme { width: 36px; height: 36px; }
  .btn-sm { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .chat .wbcard span { clip-path: none; }
  .act-chip, .lock-note { opacity: 1; }
}

/* THE LANGUAGE (owner, 2026-11-15: the site in the reader's language; site/lang.js). While another language's one
 * pack loads the page waits unseen (never English first, then a jump), at most 2.5 s. */
html.lang-wait body { visibility: hidden; }
.langbtn { width: auto; min-width: 40px; padding: 0 10px; grid-auto-flow: column; gap: 6px; }
.langbtn svg { grid-area: auto; }
.langbtn-code { font: 700 .78rem/1 var(--sans); letter-spacing: .04em; }
.langsheet { width: min(440px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 48px)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: hidden; }
.langsheet[open] { display: flex; flex-direction: column; }
.langsheet::backdrop { background: rgba(4, 7, 11, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.langsheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 20px; border-block-end: 1px solid var(--line); }
.langsheet-head h2 { margin: 0; font-size: 1.15rem; }
.langsheet-head svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.langlist { list-style: none; margin: 0; padding: 8px; overflow-y: auto; scrollbar-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.langlist::-webkit-scrollbar { display: none; }
.langrow { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 600 .95rem/1.2 var(--sans); text-align: start; cursor: pointer; transition: background-color .15s; }
.langrow:hover, .langrow:focus-visible { background: var(--ghost-hover); outline: none; }
.langrow.on { border-color: var(--gold); background: var(--ghost); }
.langflag { flex: none; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.langflag svg { display: block; width: 100%; height: 100%; }
@media (max-width: 420px) { .langlist { grid-template-columns: 1fr; } }
/* A phone's header (the language button made it overflow at 375 px; translations are longer still): the language
 * shows as its globe alone, the app button tightens and gives a long translation an ellipsis, and below 360 px it
 * leaves the header to the hero's own button just under it. */
@media (max-width: 480px) {
  .nav { gap: 8px; }
  .langbtn { width: 40px; padding: 0; }
  .langbtn-code { display: none; }
  .nav .btn-sm { padding: 0 12px; font-size: .88rem; max-width: 9.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 40px; }
}
@media (max-width: 359px) { .nav .btn-sm { display: none; } }
/* Japanese headings break between phrases, not mid-word ("auto-phrase"; browsers without it break as before). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
