/* ============================================================
   Alyssa Caridi — alyssacaridi.com
   World 1: Y2K liquid-chrome cloud dream
   World 2: realistic Nokia brick
   ============================================================ */

:root {
  --lcd-bg:   #9aa888;
  --lcd-bg-2: #b7c39d;
  --lcd-ink:  #20281c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; min-height: 100%;
  overflow-x: hidden; overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #b9d4ee;
  -webkit-font-smoothing: antialiased;
}
body.lock-scroll { overflow: hidden; }

.world { position: fixed; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; }
/* landing is a normal scrolling document; clouds sit fixed behind it */
.world--landing { position: relative; inset: auto; height: auto; min-height: 100vh; display: block; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   WORLD 1 — SKY + CLOUDS
   ============================================================ */
.world--landing {
  background: linear-gradient(180deg, #4f93dc 0%, #74acea 32%, #9cc7f4 64%, #c2e0fb 100%);
}
/* clouds fixed behind the scrolling content — the dream stays put */
.sky { position: fixed; inset: 0; overflow: hidden; z-index: 0; }

.cloud-layer {
  position: absolute; inset: 0; will-change: transform;
}
/* inner element carries the drift so the layer's transform is free for parallax */
.cloud-layer__bg {
  position: absolute; top: -10%; left: -25%; width: 150%; height: 120%;
  background-repeat: repeat-x; will-change: transform;
}
.cloud-layer--back .cloud-layer__bg {
  background-image:
    radial-gradient(42% 32% at 18% 58%, rgba(255,255,255,.85), rgba(255,255,255,0) 66%),
    radial-gradient(48% 34% at 54% 38%, rgba(255,255,255,.78), rgba(255,255,255,0) 68%),
    radial-gradient(40% 28% at 86% 66%, rgba(255,255,255,.82), rgba(255,255,255,0) 66%);
  filter: blur(7px); opacity: .95; animation: drift 90s linear infinite;
}
.cloud-layer--mid .cloud-layer__bg {
  background-image:
    radial-gradient(32% 28% at 14% 34%, rgba(255,255,255,.98), rgba(255,255,255,0) 64%),
    radial-gradient(36% 32% at 47% 72%, rgba(255,255,255,.95), rgba(255,255,255,0) 66%),
    radial-gradient(30% 26% at 77% 28%, rgba(255,255,255,.98), rgba(255,255,255,0) 64%),
    radial-gradient(34% 30% at 96% 80%, rgba(255,255,255,.92), rgba(255,255,255,0) 66%);
  filter: blur(4px); opacity: 1; animation: drift 60s linear infinite reverse;
}
.cloud-layer--front .cloud-layer__bg {
  background-image:
    radial-gradient(28% 24% at 28% 82%, rgba(255,255,255,1), rgba(255,255,255,0) 62%),
    radial-gradient(24% 22% at 64% 20%, rgba(255,255,255,1), rgba(255,255,255,0) 62%),
    radial-gradient(32% 26% at 89% 90%, rgba(255,255,255,.98), rgba(255,255,255,0) 64%),
    radial-gradient(20% 18% at 8% 14%, rgba(255,255,255,.96), rgba(255,255,255,0) 64%);
  filter: blur(2px); opacity: 1; animation: drift 42s linear infinite;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(16%); } }

.sky-glow { position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
  mix-blend-mode: screen; pointer-events: none; }

/* iridescent sheen — pale lavender + aqua, hi-fi cool wash */
.sky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, rgba(190,170,255,.12) 0%, rgba(255,255,255,0) 32%,
    rgba(150,235,240,.12) 70%, rgba(255,255,255,0) 100%);
  mix-blend-mode: screen; }

/* fine film grain for a crisp, filmic finish */
.sky::after { content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 170px 170px; opacity: .055; mix-blend-mode: overlay; }

/* vignette — fixed so it frames the viewport as you scroll */
.world--landing::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(128% 112% at 50% 30%, transparent 52%, rgba(14,36,68,.30) 100%); }

.lens-flare { position: absolute; top: 12%; left: 70%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(206,231,255,.35) 35%, rgba(255,255,255,0) 70%);
  border-radius: 50%; filter: blur(4px); mix-blend-mode: screen;
  animation: flare-pulse 7s ease-in-out infinite; pointer-events: none; }
@keyframes flare-pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }

.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkle { position: absolute; width: 6px; height: 6px;
  background: radial-gradient(circle, #fff, rgba(255,255,255,0) 70%); border-radius: 50%;
  animation: twinkle 3.5s ease-in-out infinite; }
.sparkle::before, .sparkle::after { content: ""; position: absolute; inset: 0; margin: auto; background: #fff; }
.sparkle::before { width: 1px; height: 14px; left: 2.5px; top: -4px; box-shadow: 0 0 4px #fff; }
.sparkle::after  { width: 14px; height: 1px; top: 2.5px; left: -4px; box-shadow: 0 0 4px #fff; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: scale(1); } }

/* ----- liquid chrome name ----- */
.landing-content {
  position: relative; z-index: 3;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(20px, 5vh, 56px);
  text-align: center; padding: 24px;
}

/* scroll cue at the bottom of the hero */
.scroll-cue {
  position: absolute; bottom: clamp(16px, 4vh, 36px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: #2c4a72;
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  opacity: .85; transition: opacity .2s ease, transform .2s ease;
  animation: cue-bob 2.4s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue__chev { font-size: 22px; line-height: .6; letter-spacing: 0; }
@keyframes cue-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.chrome-name { position: relative; }
.chrome-name::before {
  content: ""; position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
  width: 88%; height: 64%; z-index: -1;
  background: radial-gradient(58% 52% at 50% 50%, rgba(18,38,64,.55), rgba(18,38,64,0) 72%);
  filter: blur(14px); pointer-events: none;
}
.chrome-svg {
  position: relative;
  width: min(86vw, 680px); height: auto; overflow: visible;
  filter:
    drop-shadow(0 4px 6px rgba(12,28,50,.55))
    drop-shadow(0 12px 22px rgba(12,28,50,.5))
    drop-shadow(0 2px 0 rgba(255,255,255,.5));
}
.tagline {
  margin: 6px 0 0; font-size: clamp(11px, 1.6vw, 15px); font-weight: 600;
  letter-spacing: .42em; color: #4f6f97; text-shadow: 0 1px 0 rgba(255,255,255,.85);
}

/* ----- chrome button ----- */
.chrome-btn {
  position: relative; border: none; cursor: pointer; padding: 0;
  width: clamp(232px, 42vw, 322px); height: clamp(70px, 11vh, 92px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ffffff 0%, #eaf4ff 16%, #b7d2ee 40%,
      #5d7fa8 50%, #4f7099 52%, #9cc0e3 64%, #e8f4ff 84%, #b9d6f1 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.95),
    inset 0 -7px 14px rgba(58,92,140,.6),
    inset 0 0 0 2px rgba(255,255,255,.3),
    0 16px 32px rgba(64,104,158,.45), 0 3px 5px rgba(64,104,158,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow: hidden; isolation: isolate; animation: float 5.5s ease-in-out infinite;
}
.chrome-btn:hover { transform: translateY(-2px) scale(1.02); filter: saturate(1.08) brightness(1.03);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.95), inset 0 -7px 14px rgba(58,92,140,.6),
    0 22px 42px rgba(64,104,158,.5), 0 0 28px rgba(173,210,245,.85); }
.chrome-btn:active { transform: translateY(1px) scale(.99); }
.chrome-btn__gloss { position: absolute; top: 4px; left: 6px; right: 6px; height: 44%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.12) 85%, transparent);
  pointer-events: none; }
.chrome-btn__label { position: relative; z-index: 2; display: block;
  font-size: clamp(19px, 3.4vw, 26px); font-weight: 800; letter-spacing: .02em;
  color: #1f3a5e; text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 1px rgba(40,72,112,.45); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ============================================================
   BELOW THE FOLD — frosted-glass story panels (SEO + human)
   ============================================================ */
.below-fold {
  position: relative; z-index: 3;
  max-width: 880px; margin: 0 auto;
  padding: clamp(20px, 6vh, 60px) clamp(18px, 5vw, 32px) clamp(40px, 8vh, 90px);
  display: flex; flex-direction: column; align-items: stretch;
  gap: clamp(10px, 2vh, 20px);
}

.panel {
  position: relative;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 4vw, 44px);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.62), rgba(225,240,255,.46));
  backdrop-filter: blur(20px) saturate(1.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.18);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -14px 30px rgba(120,160,205,.18),
    0 18px 38px rgba(56,96,150,.22);
}
.panel + .panel { margin-top: 0; }

/* scroll-reveal — graphics drift into frame as you fall past them.
   Scoped under .js-reveal so content stays visible if JS is off. */
.js-reveal .panel,
.js-reveal .section-break {
  opacity: 0; transform: translateY(54px) scale(.97);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.js-reveal .panel.in-view,
.js-reveal .section-break.in-view {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .panel, .js-reveal .section-break { opacity: 1 !important; transform: none !important; transition: none; }
}

.panel__title {
  margin: 0 0 clamp(12px, 1.6vh, 18px);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800; letter-spacing: .01em; line-height: 1.15;
  /* solid deep navy for clean, high-contrast readability */
  color: #15314f;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.panel p {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.72;
  color: #28405c;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}

/* soft chrome section break */
.section-break { display: flex; justify-content: center; padding: clamp(6px,1.4vh,14px) 0; }
.section-break span {
  width: clamp(120px, 36%, 280px); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #bcd6ee 18%, #7fa6cf 50%, #bcd6ee 82%, rgba(255,255,255,0));
  box-shadow: 0 1px 1px rgba(255,255,255,.7);
  position: relative;
}
.section-break span::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px;
  transform: translate(-50%,-50%) rotate(45deg);
  background: linear-gradient(135deg, #ffffff, #8fb1d6);
  box-shadow: 0 0 8px rgba(173,210,245,.9), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: 2px;
}

/* CTA panel */
.panel--cta { text-align: center; }
.panel--cta p { max-width: 60ch; margin: 0 auto clamp(18px,2.6vh,28px); }
.chrome-btn--sm {
  width: clamp(210px, 40vw, 280px); height: clamp(58px, 8vh, 76px);
  margin: 0 auto; animation: none;
}

.below-fold__footer {
  text-align: center; margin-top: clamp(20px, 4vh, 40px);
  color: #34507a; font-size: 13px; letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* in-text link (Results -> case studies) */
.text-link { color: #1f5fa6; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid rgba(31,95,166,.35); padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease; }
.text-link:hover { color: #0f4885; border-color: #1f5fa6; }
.panel__link { margin: 14px 0 0; }
a.chrome-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ============================================================
   CASE STUDIES PAGE
   ============================================================ */
.below-fold--page { padding-top: clamp(20px, 6vh, 70px); }
.page-nav { align-self: flex-start; text-decoration: none; color: #2c4a72;
  font-weight: 700; font-size: 13px; letter-spacing: .03em;
  background: rgba(255,255,255,.42); padding: 8px 16px; border-radius: 999px;
  backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(60,96,142,.25), inset 0 1px 0 rgba(255,255,255,.7);
  margin-bottom: clamp(10px, 2vh, 22px); transition: background .2s ease, transform .15s ease; }
.page-nav:hover { background: rgba(255,255,255,.62); transform: translateY(-1px); }

.cs-hero { text-align: center; padding: clamp(8px, 3vh, 28px) 0 clamp(2px, 1vh, 10px); }
.cs-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .42em;
  color: #4f6f97; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.cs-title { margin: 0 0 14px; font-family: "Racing Sans One", system-ui, sans-serif;
  font-size: clamp(34px, 7vw, 64px); line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #cfe2f4 28%, #5d7fa8 52%, #9cc0e3 70%, #eaf6ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 6px rgba(40,80,130,.35)); }
.cs-intro { max-width: 60ch; margin: 0 auto; font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6; color: #28405c; text-shadow: 0 1px 0 rgba(255,255,255,.45); }

.panel__eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: #355684; text-shadow: 0 1px 0 rgba(255,255,255,.5); }

.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(10px, 2vw, 18px); margin: clamp(14px, 2vh, 20px) 0 clamp(16px, 2.4vh, 24px); }
.cs-stat { background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  padding: clamp(12px, 2vw, 18px); text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 6px 16px rgba(56,96,150,.14); }
.cs-stat__num { display: block; font-family: "Racing Sans One", system-ui, sans-serif;
  font-size: clamp(24px, 3.6vw, 38px); color: #1f3a5e; line-height: 1; margin-bottom: 6px; }
.cs-stat__label { display: block; font-size: 13px; line-height: 1.35; color: #3a5474; }

.js-reveal .cs-hero { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .cs-hero.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .cs-hero { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   TRANSITION
   ============================================================ */
.transition-veil { position: fixed; inset: 0; z-index: 50;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #dcebff 40%, #bcd6ef 100%);
  opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.transition-veil.is-active { opacity: 1; }
.world--landing.is-zooming .landing-content { animation: zoom-out-content .9s ease forwards; }
.world--landing.is-zooming .cloud-layer { animation-play-state: paused; }
@keyframes zoom-out-content { to { transform: translateY(-2vh) scale(2.4); opacity: 0; filter: blur(6px); } }
.world--nokia.is-entering .screen,
.world--nokia.is-entering .keys { animation: phone-materialize 1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes phone-materialize {
  0% { opacity: 0; transform: translateY(40px) scale(.55); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   WORLD 2 — full-screen LCD + buttons
   ============================================================ */
.world--nokia {
  background: #0c0e12;
  flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 0; padding: 0;
}

/* the LCD fills the whole window above the button bar */
.screen {
  flex: 1 1 auto; width: 100%; min-height: 0; max-height: none;
  display: flex; border-radius: 0;
  padding: clamp(6px, 1.4vmin, 12px);
  background: linear-gradient(160deg, #20242a 0%, #0e1013 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.5);
}
.screen__inner {
  flex: 1; display: flex; min-height: 0;
  border-radius: 6px; padding: 5px;
  background: linear-gradient(#3a4038, #2a2f28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.5);
}
.lcd {
  position: relative; flex: 1; width: 100%; min-height: 0;
  border-radius: 5px; padding: clamp(12px, 2.4vmin, 26px);
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--lcd-bg-2), var(--lcd-bg));
  color: var(--lcd-ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), inset 0 0 36px rgba(40,55,30,.45);
  font-family: "VT323", monospace; overflow: hidden; image-rendering: pixelated;
  display: flex; flex-direction: column;
}
.lcd::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none; }

.lcd__statusbar { display: flex; justify-content: space-between;
  font-size: clamp(15px, 2.6vmin, 28px); line-height: 1; letter-spacing: 1px;
  padding-bottom: 7px; margin-bottom: 9px; border-bottom: 2px solid rgba(32,40,28,.5); }
.lcd__view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lcd__title { font-family: "Press Start 2P", monospace;
  font-size: clamp(11px, 2.2vmin, 22px); text-align: center;
  margin: 4px 0 clamp(12px, 2.6vmin, 26px); letter-spacing: 1px; }
.lcd__hint { font-size: clamp(15px, 2.6vmin, 26px); text-align: center; opacity: .6; margin-top: 8px; }

/* chat, scope builder, and scheduling share the thread layout */
.lcd__view--chat,
.lcd__view--scope,
.lcd__view--schedule { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.4vmin, 14px); }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column;
  gap: clamp(8px, 1.6vmin, 16px); padding-right: 6px; scrollbar-width: thin;
  scrollbar-color: rgba(32,40,28,.5) transparent; }
.chat::-webkit-scrollbar { width: 7px; }
.chat::-webkit-scrollbar-thumb { background: rgba(32,40,28,.45); border-radius: 4px; }
/* SMS-thread bubbles, monochrome LCD style */
.chat__msg { position: relative; font-size: clamp(18px, 2.9vmin, 30px); line-height: 1.22;
  max-width: 82%; padding: clamp(5px,1.1vmin,9px) clamp(8px,1.6vmin,13px);
  border: 2px solid var(--lcd-ink); border-radius: 4px;
  white-space: pre-wrap; overflow-wrap: anywhere; }
/* incoming (Alyssa): left, outlined */
.chat__msg--bot { align-self: flex-start; border-bottom-left-radius: 0; background: transparent; }
/* outgoing (you): right, inverted fill like a selected Nokia row */
.chat__msg--user { align-self: flex-end; border-bottom-right-radius: 0;
  background: var(--lcd-ink); color: var(--lcd-bg-2); }

/* typing indicator */
.chat__msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: clamp(8px,1.6vmin,12px) clamp(10px,1.8vmin,14px); }
.chat__msg--typing .dot { width: 6px; height: 6px; background: var(--lcd-ink); display: inline-block;
  animation: typing-dot 1.1s infinite ease-in-out; }
.chat__msg--typing .dot:nth-child(2) { animation-delay: .18s; }
.chat__msg--typing .dot:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); } }

/* scope export buttons (PDF / Word) inside the LCD thread */
.scope-export { display: flex; gap: 8px; align-self: flex-start; flex-wrap: wrap; }
.scope-export__btn { font-family: "VT323", monospace; font-size: clamp(15px, 2.4vmin, 24px);
  background: var(--lcd-ink); color: var(--lcd-bg-2); border: 2px solid var(--lcd-ink);
  border-radius: 4px; padding: 1px 12px; cursor: pointer; letter-spacing: 1px; }
.scope-export__btn:hover { filter: brightness(1.15); }
.scope-export__btn:active { transform: translateY(1px); }

/* scheduling slot buttons (stacked, full width) */
.sched-slots { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.sched-slot { font-family: "VT323", monospace; font-size: clamp(17px, 2.7vmin, 28px);
  text-align: left; background: transparent; color: var(--lcd-ink);
  border: 2px solid var(--lcd-ink); border-radius: 4px; padding: clamp(4px,1vmin,8px) clamp(8px,1.6vmin,12px);
  cursor: pointer; letter-spacing: .5px; }
.sched-slot:hover { background: var(--lcd-ink); color: var(--lcd-bg-2); }
.sched-slot:active { transform: translateY(1px); }
.chat__form { display: flex; align-items: center; gap: 8px;
  border-top: 2px solid rgba(32,40,28,.5); padding-top: clamp(8px, 1.4vmin, 14px); }
.chat__prompt { font-size: clamp(18px, 3vmin, 32px); animation: blink 1.1s step-end infinite; }
.chat__input { flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--lcd-ink); font-family: "VT323", monospace; font-size: clamp(18px, 3vmin, 32px);
  caret-color: var(--lcd-ink); padding: 2px 0; }
.chat__input::placeholder { color: rgba(32,40,28,.42); }

.lcd__view--soon { align-items: center; justify-content: center; text-align: center;
  gap: clamp(8px, 2vmin, 18px); cursor: pointer; }
.lcd__soon-art { font-family: "Press Start 2P", monospace; font-size: clamp(20px, 4.4vmin, 40px); }
.lcd__soon-title { font-family: "Press Start 2P", monospace; font-size: clamp(12px, 2.8vmin, 26px);
  line-height: 1.6; animation: blink 1.1s step-end infinite; }
.lcd__soon-sub { font-size: clamp(17px, 3.2vmin, 30px); opacity: .8; }
@keyframes blink { 50% { opacity: .25; } }

.lcd__view--snake { align-items: center; justify-content: center; gap: clamp(6px, 1.4vmin, 14px); }
#snakeCanvas { width: auto; height: 100%; max-width: 100%; max-height: calc(100% - 2.4em);
  image-rendering: pixelated; background: transparent; }
.lcd__snake-hud { display: flex; justify-content: space-between; width: 100%;
  font-size: clamp(16px, 2.8vmin, 28px); letter-spacing: 1px; }

/* bottom button bar — ~1 inch tall, four keys in a row */
.keys {
  width: 100%; flex: 0 0 auto;
  height: clamp(78px, 12vh, 104px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1.4vw, 11px);
  padding: clamp(8px, 1.5vh, 13px) clamp(8px, 2vw, 16px);
  align-items: stretch;
  background: linear-gradient(180deg, #2a3140 0%, #181d27 100%);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.5);
}
.key {
  position: relative; border: none; cursor: pointer; height: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 16px; color: #1c222a;
  background: linear-gradient(180deg, #f5f8fb 0%, #d4d9df 40%, #aeb5be 70%, #909aa4 100%);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.98),
    inset 0 -5px 9px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(255,255,255,.3),
    0 4px 9px rgba(0,0,0,.5);
  transition: transform .07s ease, filter .07s ease, box-shadow .07s ease;
}
.key::before { content: ""; position: absolute; top: 4px; left: 10px; right: 10px; height: 40%;
  border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  pointer-events: none; }
.key span { position: relative; z-index: 1; display: block; padding: 0 4px;
  font-size: clamp(11px, 1.5vw, 16px); font-weight: 700; line-height: 1.1; letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.key:hover { filter: brightness(1.04); transform: translateY(-1px); }
.key:active { transform: translateY(2px);
  box-shadow: inset 0 3px 7px rgba(0,0,0,.45), inset 0 1px 1px rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.4);
  filter: brightness(.95); }
.key--snake { color: #163d1a;
  background: linear-gradient(180deg, #eaf5e0 0%, #c7ddb3 42%, #a9c791 72%, #8db077 100%); }

.back-to-clouds { position: absolute; top: 12px; right: 14px; z-index: 6;
  border: none; cursor: pointer; background: rgba(20,30,24,.5); color: #cfe0c8;
  font-weight: 700; font-size: 12px; padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
  transition: background .2s ease, transform .15s ease; }
.back-to-clouds:hover { background: rgba(20,30,24,.72); transform: translateY(-1px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* World 2 screen + button bar always span the full window width */
.world--nokia .screen, .world--nokia .keys { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .cloud-layer, .chrome-btn, .lens-flare, .sparkle { animation: none !important; }
}
