@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f3eee5;
  --paper-2: #ebe3d5;
  --card: #fffaf2;
  --ink: #1c1915;
  --ink-2: #5a4e40;
  --ink-3: #8b7e6e;
  --accent: #c47a3a;
  --accent-deep: #8a4e22;
  --wood: #7a5234;
  --line: rgba(28, 25, 21, 0.1);
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 28px rgba(60, 40, 20, 0.1);
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -0.01em; margin: 0; }
h1 { font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
h2 { font-weight: 600; font-variation-settings: "SOFT" 60, "WONK" 1; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; max-width: 22ch; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
p { margin: 0; }
b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.sub { color: var(--ink-2); font-size: 1.1rem; margin-top: 16px; max-width: 54ch; }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--sans); padding: 13px 22px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); }
.btn-primary:hover { background: #2e2922; transform: translateY(-1px); }
.btn-primary:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 25, 21, 0.2); }
.btn-ghost:hover { background: rgba(28, 25, 21, 0.05); }
.btn-big { padding: 17px 28px; font-size: 1.06rem; }
.btn-soon { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(28, 25, 21, 0.35); cursor: default; }
.btn-soon:active { transform: none; }
.dl-copy .btn-soon { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-small { padding: 10px 18px; font-size: 0.94rem; }
.win-logo { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 229, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 1.4rem/1 var(--serif); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 640px) 1fr; padding-bottom: 72px; }
.bubble {
  position: relative; background: #fff; border-radius: 26px; padding: 30px 34px 26px;
  box-shadow: 0 1px 0 rgba(40, 25, 10, 0.06), 0 22px 50px -18px rgba(60, 35, 15, 0.3);
}
.bubble::after {
  content: ""; position: absolute; right: 70px; bottom: -36px; width: 64px; height: 38px;
  background: #fff; clip-path: polygon(0 0, 55% 0, 100% 100%);
}
.bubble-line {
  font: 560 clamp(2rem, 4.4vw, 3.5rem)/1.06 var(--serif); letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  min-height: 2.12em; transition: opacity 0.2s ease;
}
.bubble-line.fade { opacity: 0; }
.bubble-actions { display: flex; gap: 10px; margin-top: 22px; max-width: 340px; }
.bubble-actions[hidden] { visibility: hidden; display: flex; }
.bubble-actions .card-btn { padding: 13px 0; font-size: 1rem; border-radius: 10px; }
.bubble.shake { animation: shake 0.45s ease; }
.hero-text h1 { margin-top: 44px; }
.define { color: var(--ink-2); font-size: 1.06rem; max-width: 50ch; margin-top: 12px; padding-left: 16px; border-left: 3px solid #d9c3a6; }
.define b { font: 600 1.06rem/1.6 var(--serif); color: var(--ink); }
.define i { color: var(--ink-3); font-family: var(--serif); margin-left: 6px; }
.define-from { font-family: var(--serif); font-style: italic; color: var(--ink-3); }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.fine { color: var(--ink-3); font-size: 0.86rem; line-height: 1.45; }

.hero-stand { position: absolute; left: 0; right: 0; bottom: 34px; height: 0; }
.hero-char {
  position: absolute; bottom: -8px; left: calc(50% + 190px); border: 0; padding: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%; transition: transform 0.9s linear;
}
.hero-char img { display: block; height: var(--h, 340px); width: auto; filter: drop-shadow(0 10px 8px rgba(50, 30, 10, 0.18)); }
.hero-char.flip img { transform: scaleX(-1); }
.hero-char.hop { animation: hop 0.42s ease; }
.hero-char:focus-visible { outline-offset: -6px; }
.shelf {
  position: relative; height: 34px;
  background:
    repeating-linear-gradient(0deg, rgba(40, 20, 5, 0.08) 0 1px, transparent 1px 5px),
    linear-gradient(#94653f, #7a5132 55%, #5e3c24);
  box-shadow: inset 0 3px 0 rgba(255, 230, 200, 0.22), 0 14px 24px -12px rgba(60, 35, 15, 0.45);
}
.demo-section { padding-top: 96px; }

/* Desk demo */
.stage-wrap { margin-top: 36px; }
.desk {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  box-shadow: 0 2px 4px rgba(40, 25, 10, 0.08), 0 30px 80px -20px rgba(60, 35, 15, 0.35);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.wallpaper {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 10% 0%, #f6d4ae 0%, transparent 55%),
    radial-gradient(100% 80% at 100% 10%, #d7c2e6 0%, transparent 55%),
    radial-gradient(120% 100% at 50% 110%, #b98a6a 0%, transparent 60%),
    linear-gradient(160deg, #efd9c0, #d9b8a4);
}
.win {
  position: absolute; background: #fffdf9; border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 50px -12px rgba(50, 30, 10, 0.4), 0 0 0 1px rgba(40, 25, 10, 0.08);
  overflow: hidden;
}
.win-bar { height: 38px; display: flex; align-items: center; padding: 0 14px; background: #f4efe7; border-bottom: 1px solid #ebe3d6; cursor: grab; touch-action: none; }
.win-bar:active { cursor: grabbing; }
.win-title { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.win-ctl { margin-left: auto; display: flex; gap: 14px; }
.win-ctl i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid #b9ad9c; }
.win-body { padding: 18px 22px; }
.note-h { font: 600 1.2rem/1.2 var(--serif); margin-bottom: 12px; }
.note-l { font-size: 0.92rem; color: var(--ink-2); padding: 5px 0; border-bottom: 1px dashed #ece4d8; }
.note-l::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 1.5px solid #c9bba7; border-radius: 3px; margin-right: 10px; vertical-align: -1px; }

.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 1;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(250, 245, 238, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}
.tb-start { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.tb-start svg { width: 18px; height: 18px; fill: #3a7bd5; }
.tb-search { width: 140px; height: 28px; border-radius: 99px; background: rgba(28, 25, 21, 0.07); }
.tb-app { width: 30px; height: 30px; border-radius: 8px; background: rgba(28, 25, 21, 0.1); position: relative; }
.tb-app.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -5px; height: 3px; border-radius: 3px; background: #3a7bd5; }
.tb-tray { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tb-tray img { width: 18px; height: 18px; border-radius: 4px; }
.desk-hint {
  position: absolute; left: 14px; top: 12px; z-index: 1;
  font-size: 0.8rem; color: rgba(40, 25, 10, 0.62); background: rgba(255, 250, 242, 0.6);
  padding: 5px 10px; border-radius: 99px; transition: opacity 0.4s ease;
}

.actor { position: absolute; left: 0; top: 0; z-index: 3; cursor: grab; touch-action: none; will-change: transform; outline: none; }
.actor:focus-visible .actor-flip { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.actor.dragging { cursor: grabbing; }
.actor-flip { position: relative; height: 100%; transform-origin: 50% 100%; }
.actor-flip img { display: block; height: 100%; width: auto; pointer-events: none; }
.actor.left .actor-flip img { transform: scaleX(-1); }
.actor-shadow {
  position: absolute; left: 18%; right: 18%; bottom: -4px; height: 12px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 16, 12, 0.28), transparent 70%);
  transition: opacity 0.2s ease;
}
.actor.airborne .actor-shadow { opacity: 0; }
.actor.hop .actor-flip { animation: hop 0.42s ease; }
.actor.dizzy .actor-flip { animation: twirl 0.9s ease; }
.actor.glow img { filter: drop-shadow(0 0 14px rgba(255, 196, 120, 0.95)); }
@keyframes hop {
  0% { transform: scale(1.06, 0.92); }
  35% { transform: translateY(-16%) scale(0.96, 1.05); }
  70% { transform: translateY(0) scale(1.05, 0.94); }
  100% { transform: none; }
}
@keyframes twirl {
  0% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(9deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}
.heart { position: absolute; z-index: 4; width: 22px; height: 22px; pointer-events: none; animation: rise 0.9s ease forwards; }
.heart path { fill: #e8627a; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  25% { opacity: 1; transform: translateY(-6px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-46px) scale(0.9); }
}

.say {
  position: absolute; left: 0; top: 0; z-index: 5; max-width: 230px; pointer-events: none;
  background: #fff; color: var(--ink); font-size: 0.9rem; line-height: 1.35;
  padding: 9px 13px; border-radius: 14px; box-shadow: 0 6px 20px rgba(50, 30, 10, 0.18);
  opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease;
}
.say.show { opacity: 1; transform: none; }

/* Matches the app's card: #fffdf8, warmer when urgent, tinted by tone. */
.card {
  position: absolute; left: 0; top: 0; z-index: 6; width: 260px;
  background: #fffdf8; border-radius: 14px; padding: 12px 14px 12px;
  box-shadow: 0 10px 24px rgba(40, 30, 16, 0.2);
  transform-origin: var(--origin, 100% 60%);
  animation: pop 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.card[hidden] { display: none; }
.card.shake { animation: shake 0.45s ease; }
.card.tone-plain { background: #f4f4f2; }
.card.tone-playful { background: #fff4dc; }
.card.urgent { background: #fff1e4; }
.card.tone-playful.urgent { background: #ffe3c4; }
.card-tag { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; font: 700 15.5px/1.3 var(--sans); color: var(--ink); }
.card-mood { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); }
.card-mood[hidden] { display: none; }
.card-line { font: 650 15.5px/1.38 var(--sans); color: var(--ink); }
.card-actions { display: flex; gap: 6px; margin-top: 10px; }
.card-actions[hidden] { display: none; }
.card-btn {
  flex: 1; border: 0; border-radius: 8px; padding: 9px 0; cursor: pointer;
  font: 650 0.95rem/1 var(--sans); background: #efe8dc; color: var(--ink);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.card-btn:hover { filter: brightness(0.97); transform: translateY(-1px); }
.card-done { background: var(--accent); color: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px) rotate(-1deg); }
  40% { transform: translateX(5px) rotate(1deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Panel under the desk */
.panel {
  margin: 18px auto 0; padding: 18px 20px; display: grid; gap: 16px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; }
.panel-group { display: grid; gap: 8px; }
.panel-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent-deep); }
.panel-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 99px; padding: 9px 15px; cursor: pointer;
  font: 500 0.94rem/1 var(--sans); color: var(--ink); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); transition: background 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: #fff; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(196, 122, 58, 0.5); }
.chip:disabled { opacity: 0.5; cursor: default; transform: none; }
.who { display: flex; gap: 6px; }
.who button {
  width: 48px; height: 48px; border-radius: 14px; border: 0; padding: 4px; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s ease;
}
.who button img { width: 100%; height: 100%; object-fit: contain; }
.who button:hover { transform: translateY(-2px); }
.who button[aria-checked="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.seg { display: inline-flex; background: var(--paper); border-radius: 99px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 99px; cursor: pointer; font: 500 0.92rem/1 var(--sans); color: var(--ink-2); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(40, 25, 10, 0.15); }
.name-input {
  width: 150px; border: 0; border-radius: 99px; padding: 10px 14px; font: 500 0.94rem/1 var(--sans);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}
.name-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); background: #fff; }

/* Sections */
.section { padding: 110px 0 0; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.step-art { height: 150px; display: grid; place-items: end center; margin-bottom: 16px; border-radius: 12px; background: linear-gradient(#f7efe3, #efe3d2); padding-top: 12px; overflow: hidden; }
.step-art img { height: 130px; width: auto; transition: transform 0.3s ease; }
.step:hover .step-art img { transform: translateY(-4px) rotate(-2deg); }
.step-n { position: absolute; top: 30px; left: 30px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 0.85rem/1 var(--sans); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 0.97rem; }

.cast { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.cast-card {
  position: relative; display: flex; flex-direction: column; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 18px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cast-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(60, 40, 20, 0.06), 0 18px 40px rgba(60, 40, 20, 0.16); }
.cast-art { height: 190px; display: flex; align-items: flex-end; justify-content: center; padding: 18px 12px 0; background: var(--tint, #f3e7d8); }
.cast-art img { max-height: 150px; max-width: 100%; width: auto; object-fit: contain; }
.cast-card h3 { margin: 16px 18px 2px; }
.cast-kind { margin: 0 18px; font-size: 0.9rem; color: var(--ink-3); }
.cast-says { margin: 12px 18px 0; font-size: 0.92rem; color: var(--ink-2); }
.cast-says b { color: var(--ink); }
.cast-pick { margin: auto 18px 0; padding-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--accent-deep); }
.cast-card[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--accent), var(--shadow); }
.cast-card[aria-pressed="true"] .cast-pick::after { content: " ✓"; }

/* Drop demo */
.drop-stage {
  position: relative; height: 560px; margin-top: 36px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 10% 0%, #f6d4ae 0%, transparent 55%), radial-gradient(100% 80% at 100% 10%, #d7c2e6 0%, transparent 55%), linear-gradient(160deg, #efd9c0, #d9b8a4);
  box-shadow: 0 2px 4px rgba(40, 25, 10, 0.08), 0 30px 80px -20px rgba(60, 35, 15, 0.35);
  user-select: none; -webkit-user-select: none;
}
.fwin {
  position: absolute; left: 28px; top: 28px; width: min(560px, 54%); height: 330px; display: flex; flex-direction: column;
  background: #fffdf9; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(50, 30, 10, 0.4), 0 0 0 1px rgba(40, 25, 10, 0.08);
}
.fwin-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #f4efe7; border-bottom: 1px solid #ebe3d6; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.fwin-bar svg { width: 16px; height: 16px; fill: #f2c66d; stroke: #b8892e; stroke-width: 1; }
.fwin-reset { margin-left: auto; border: 0; background: none; color: var(--accent-deep); font: 600 0.82rem/1 var(--sans); cursor: pointer; }
.fwin-reset[hidden] { display: none; }
.fwin-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); align-content: start; gap: 6px; padding: 12px; }
.fwin-status { padding: 7px 14px; border-top: 1px solid #ebe3d6; font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 8px; cursor: grab; touch-action: none; text-align: center; }
.tile:hover { background: rgba(58, 123, 213, 0.06); }
.tile.picked { background: rgba(58, 123, 213, 0.12); box-shadow: inset 0 0 0 1px rgba(58, 123, 213, 0.35); }
.tile.fresh { animation: fresh 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); background: rgba(196, 122, 58, 0.12); box-shadow: inset 0 0 0 1.5px rgba(196, 122, 58, 0.55); }
.tile.flash { animation: flash 1.2s ease; }
.tile.ghosted, .drag-src.ghosted { opacity: 0.35; }
.t-thumb { position: relative; width: 58px; height: 46px; border-radius: 5px; box-shadow: 0 1px 3px rgba(40, 25, 10, 0.2); }
.t-name { font-size: 0.78rem; line-height: 1.25; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.t-size { font-size: 0.7rem; color: var(--ink-3); }
.t-badge { position: absolute; right: -6px; bottom: -6px; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 9px/1.2 var(--sans); letter-spacing: 0.04em; }
.t-beach { background: linear-gradient(180deg, #8fc6e8 0 55%, #f1d79b 55%); }
.t-beach::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ffd65a; top: 6px; right: 8px; }
.t-a { background: linear-gradient(160deg, #9fc59a, #4e7d55); }
.t-b { background: linear-gradient(160deg, #f3b38a, #c4624a); }
.t-c { background: linear-gradient(160deg, #b8a6dc, #6b5aa3); }
.t-pdf { width: 40px; height: 50px; background: #fff; box-shadow: inset 0 0 0 1.5px #d6c6b2, 0 1px 3px rgba(40, 25, 10, 0.15); }
.t-pdf::after { content: "PDF"; position: absolute; inset: auto 0 6px; text-align: center; font: 700 9px/1 var(--sans); color: #c2483a; }
.t-zip { width: 46px; height: 46px; display: grid; place-items: center; background: #f2e3c9; }
.t-zip svg { width: 26px; height: 26px; fill: none; stroke: #8a4e22; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.t-link { background: #e3eefb; }
@keyframes fresh { from { transform: scale(0.6); opacity: 0; } }
@keyframes flash { 0%, 100% { background: transparent; } 20%, 60% { background: rgba(196, 122, 58, 0.3); } 40%, 80% { background: rgba(196, 122, 58, 0.08); } }

.loose { position: absolute; left: 28px; bottom: 84px; display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; max-width: 54%; }
.loose-link, .loose-note { cursor: grab; touch-action: none; transition: transform 0.15s ease; }
.loose-link:hover, .loose-note:hover { transform: translateY(-2px); }
.loose-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: #fff; border-radius: 10px; box-shadow: 0 8px 20px -6px rgba(50, 30, 10, 0.35); font-size: 0.86rem; }
.loose-link b { display: block; font-weight: 600; }
.loose-link i { display: block; font-style: normal; color: #3a7bd5; font-size: 0.78rem; }
.loose-link.saved::after { content: "Read later"; margin-left: 6px; padding: 3px 7px; border-radius: 99px; background: #fbe6d2; color: var(--accent-deep); font-size: 0.72rem; font-weight: 600; }
.ll-fav { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f0794f, #e04b3c); flex: none; }
.loose-note { padding: 14px 16px; width: 150px; background: #fff3a8; transform: rotate(-2deg); box-shadow: 0 8px 18px -6px rgba(80, 60, 10, 0.4); font: 500 0.95rem/1.3 var(--serif); }
.loose-note:hover { transform: rotate(-2deg) translateY(-2px); }

.drop-target { position: absolute; right: 16%; bottom: 46px; height: 170px; z-index: 2; }
.drop-target img { height: 100%; width: auto; display: block; transition: transform 0.25s ease; }
.drop-target.near img { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 0 18px rgba(255, 196, 110, 0.95)); }
.drop-target.hop img { animation: hop 0.42s ease; }
.drop-floor { display: contents; }
.drop-shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: repeating-linear-gradient(0deg, rgba(40, 20, 5, 0.08) 0 1px, transparent 1px 5px), linear-gradient(#94653f, #7a5132 55%, #5e3c24); box-shadow: inset 0 3px 0 rgba(255, 230, 200, 0.22); }
.drop-hint { position: absolute; right: 16px; top: 16px; font-size: 0.8rem; color: rgba(40, 25, 10, 0.62); background: rgba(255, 250, 242, 0.6); padding: 5px 10px; border-radius: 99px; transition: opacity 0.4s ease; }
.drop-hint.gone { opacity: 0; }
.drop-choices { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.drop-choices.stacked { inset: auto 12px 230px 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-end; gap: 8px; }
.drop-choices.stacked .choice { position: static; }
/* The app's choice pill: icon, label, 650 weight. */
.choice {
  position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; padding: 8px 14px 8px 11px; cursor: pointer; white-space: nowrap;
  font: 650 0.92rem/1 var(--sans); color: var(--ink); background: #fffdf8; box-shadow: 0 4px 12px rgba(40, 30, 16, 0.2);
  opacity: 0; transform: translate(var(--fx, 0), 10px) scale(0.8);
  animation: choiceIn 0.28s cubic-bezier(0.2, 1.3, 0.4, 1) forwards; animation-delay: calc(var(--i) * 30ms);
}
.choice svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.choice:hover, .choice:focus-visible { background: var(--accent); color: #fff; outline: none; }
@keyframes choiceIn { to { opacity: 1; transform: none; } }
.drop-say { left: auto; right: 6%; top: auto; bottom: 236px; max-width: 280px; text-align: center; z-index: 6; font-weight: 650; background: #fffdf8; }
.drag-src.flying { position: fixed; z-index: 90; pointer-events: none; margin: 0; transform: rotate(-4deg) scale(1.04); box-shadow: 0 18px 40px rgba(50, 30, 10, 0.3); background: #fffdf8; border-radius: 10px; }
.ghost-count { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e04b3c; color: #fff; font: 700 0.75rem/1 var(--sans); }
.ask {
  position: absolute; z-index: 6; right: calc(16% + 190px); bottom: 70px; width: 250px; padding: 14px;
  background: #fffdf8; border-radius: 14px; box-shadow: 0 10px 24px rgba(40, 30, 16, 0.22); animation: pop 0.25s ease;
}
.ask[hidden] { display: none; }
.ask-title { font-weight: 700; margin-bottom: 8px; }
.ask-field { padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.ask-times { display: flex; gap: 6px; margin-top: 10px; }
.ask-times button { flex: 1; border: 0; border-radius: 8px; padding: 8px 0; background: #efe8dc; font: 650 0.85rem/1 var(--sans); cursor: pointer; }
.ask-times button:hover { background: var(--accent); color: #fff; }
.held {
  position: absolute; z-index: 4; width: 170px; padding: 10px 10px 8px; cursor: grab; touch-action: none;
  background: #fffdf8; border-radius: 12px; box-shadow: 0 10px 28px rgba(50, 30, 10, 0.25); font-size: 0.86rem; animation: pop 0.25s ease;
}
.held .t-thumb { display: block; width: 100%; height: 80px; margin-bottom: 8px; }
.held .t-pdf { height: 80px; }
.held-text { display: block; font-weight: 600; overflow-wrap: anywhere; }
.held-btns { display: flex; gap: 6px; margin-top: 8px; }
.held-btns b { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: #efe8dc; font-size: 0.8rem; }
.held-x {
  position: absolute; top: -9px; right: -9px; z-index: 1; width: 26px; height: 26px; border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: #fffdf8; color: var(--ink); font: 600 1.05rem/1 var(--sans); cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 30, 16, 0.3);
}
.held-x:hover { background: var(--accent); color: #fff; }

/* Teams */
.teams-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.bim-card {
  display: flex; align-items: flex-end; gap: 22px; padding: 26px 28px 0; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #2a231c, #1c1915); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.bim-card:hover { transform: translateY(-3px); }
.bim-card img { height: 170px; width: auto; flex: none; margin-bottom: -6px; }
.bim-card-text { display: grid; gap: 8px; padding-bottom: 26px; }
.bim-card-text b { font: 600 1.35rem/1.2 var(--serif); }
.bim-card-text span { color: rgba(255, 255, 255, 0.72); }
.bim-card-text .bim-more { color: #f0b27a; font-weight: 600; }

/* BIM page */
.bim-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.bim-row.flip > :first-child { order: 2; }
code { font: 0.88em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(28, 25, 21, 0.06); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.bim-list { margin: 26px 0 0; display: grid; grid-template-columns: 7.5rem 1fr; }
.bim-list dt, .bim-list dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.bim-list dt { font: 600 1.06rem/1.5 var(--serif); }
.bim-list dd { color: var(--ink-2); }
.bim-ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.bim-ticks li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--ink-2); position: relative; }
.bim-ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.bim-note { margin-top: 18px; font-size: 0.93rem; color: var(--ink-3); }
.mock-card, .mock-viewer, .mini-card { background: #fffdf8; border-radius: 18px; box-shadow: 0 1px 0 rgba(40, 25, 10, 0.06), 0 22px 50px -18px rgba(60, 35, 15, 0.3); }
.mock-card { padding: 22px 24px; max-width: 380px; justify-self: center; width: 100%; }
.mock-title { font: 600 1.15rem/1.3 var(--serif); margin-bottom: 10px; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.mock-table th, .mock-table td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; }
.mock-table th { font-weight: 500; color: var(--ink-3); }
.mock-table td { text-align: right; font-variant-numeric: tabular-nums; }
.mock-viewer { overflow: hidden; }
.mv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4efe7; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.mv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8cbb8; }
.mv-bar span { margin-left: 8px; }
.mv-body { display: grid; grid-template-columns: 9rem 1fr; min-height: 280px; }
.mv-side { padding: 12px 14px; border-right: 1px solid var(--line); font-size: 0.82rem; display: grid; align-content: start; gap: 6px; }
.mv-side p { font-weight: 600; color: var(--ink-3); margin-top: 6px; }
.mv-side span { color: var(--ink-3); padding-left: 18px; position: relative; }
.mv-side span::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #c9bba7; }
.mv-side span.on { color: var(--ink); }
.mv-side span.on::before { background: var(--accent); border-color: var(--accent); }
.mv-scene { position: relative; background: linear-gradient(#eef2f6, #dfe5ec); overflow: hidden; }
.mv-box { position: absolute; left: 50%; width: 46%; height: 22%; transform: translateX(-50%) skewX(-18deg); border-radius: 3px; }
.mv-box.b1 { bottom: 14%; background: #b9c4cf; box-shadow: inset 0 -6px 0 #a3afbb; }
.mv-box.b2 { bottom: 36%; background: #c7d0d9; box-shadow: inset 0 -6px 0 #b0bbc6; }
.mv-box.b3 { bottom: 58%; background: #d4dbe2; box-shadow: inset 0 -6px 0 #bdc6cf; }
.mv-cut { position: absolute; left: 12%; right: 12%; bottom: 52%; height: 2px; background: var(--accent); box-shadow: 0 0 0 4px rgba(196, 122, 58, 0.18); }
.mock-stack { display: grid; gap: 16px; justify-items: center; }
.mock-stack img { height: 150px; width: auto; }
.mini-card { padding: 16px 18px 14px; max-width: 380px; width: 100%; }
.mini-card p { font-size: 0.98rem; }
.mini-card.warn { box-shadow: 0 0 0 2px rgba(196, 90, 58, 0.45), 0 22px 50px -18px rgba(60, 35, 15, 0.3); }
.mc-btns { display: flex; gap: 8px; margin-top: 12px; }
.mc-btns b, .mc-btns i { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font: 600 0.88rem/1 var(--sans); }
.mc-btns b { background: var(--accent); color: #fff; }
.mc-btns i { color: var(--ink); background: #efe8dc; }
.pack-table-wrap { margin-top: 32px; overflow-x: auto; }
.pack-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.pack-table th { text-align: left; font-size: 0.85rem; color: var(--ink-3); font-weight: 600; padding: 0 0 10px; }
.pack-table td { padding: 14px 0; border-top: 1px solid var(--line); }
.pack-table td:first-child { font: 600 1.05rem/1.4 var(--serif); }
.who-cell { display: inline-flex; align-items: center; gap: 10px; }
.section-last { padding-bottom: 110px; }
.pack-table td img { height: 34px; width: 34px; object-fit: contain; }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: 13rem 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); font-size: 0.98rem; }

/* Download */
.dl-card {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px;
  background: linear-gradient(135deg, #2a231c, #1c1915); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; position: relative;
}
.dl-card::before { content: ""; position: absolute; inset: auto -10% -60% 20%; height: 120%; background: radial-gradient(closest-side, rgba(196, 122, 58, 0.45), transparent); }
.dl-art { position: relative; height: 300px; }
.dl-c { position: absolute; bottom: 0; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); }
.dl-wick { height: 230px; left: 6%; animation: bob 4s ease-in-out infinite; }
.dl-mote { height: 150px; left: 44%; bottom: 120px; animation: bob 3.2s ease-in-out infinite 0.6s; }
.dl-bell { height: 120px; left: 46%; animation: bob 4.6s ease-in-out infinite 1.1s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.dl-copy { position: relative; }
.dl-copy h2 { color: #fff; }
.dl-copy .sub { color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; }
.dl-copy .btn-primary { background: #fff; color: var(--ink); }
.dl-copy .btn-primary:hover { background: #f6eee2; }
.dl-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.dl-facts li::before { content: "✓"; color: #f0b27a; margin-right: 8px; }
.dl-soon { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.soon-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); color: #fff; padding: 5px 10px; border-radius: 99px; }

/* FAQ */
.faq-section { padding-bottom: 110px; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq-side { position: sticky; top: 110px; align-self: start; }
.faq-friend { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin-top: 40px; width: max-content; max-width: 100%; }
.faq-bubble { position: relative; margin: 0 0 12px 40px; padding: 10px 16px; border-radius: 16px; background: #fffdf8; box-shadow: 0 8px 22px -8px rgba(60, 35, 15, 0.3); font-weight: 650; }
.faq-bubble::after { content: ""; position: absolute; left: 26px; bottom: -12px; width: 22px; height: 14px; background: #fffdf8; clip-path: polygon(0 0, 100% 0, 30% 100%); }
.faq-friend img { height: 200px; width: auto; margin-left: 24px; position: relative; z-index: 1; filter: drop-shadow(0 10px 8px rgba(50, 30, 10, 0.18)); }
.faq-shelf { display: block; width: 280px; max-width: 100%; height: 18px; margin-top: -6px; border-radius: 4px; background: repeating-linear-gradient(0deg, rgba(40, 20, 5, 0.08) 0 1px, transparent 1px 5px), linear-gradient(#94653f, #7a5132 55%, #5e3c24); box-shadow: 0 10px 18px -8px rgba(60, 35, 15, 0.45); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.08rem/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0; }
.foot-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--ink-2); font-size: 0.94rem; }
.foot-small { margin-left: auto; color: var(--ink-3); }
.foot-define { font-family: var(--serif); font-style: italic; color: var(--ink-3); }

/* Peeking character */
.peeker {
  position: fixed; bottom: 0; right: 7vw; z-index: 60; height: 120px; width: auto; cursor: pointer;
  transform: translateY(105%); transition: transform 0.7s cubic-bezier(0.3, 1.2, 0.5, 1);
  filter: drop-shadow(0 6px 14px rgba(40, 25, 10, 0.25));
}
.peeker.up { transform: translateY(42%); }
.peeker.out { transform: translateY(8%); }

/* Thanks dialog */
.thanks { border: 0; border-radius: 24px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(30, 20, 10, 0.35); background: var(--card); color: var(--ink); }
.thanks::backdrop { background: rgba(28, 25, 21, 0.45); backdrop-filter: blur(3px); }
.thanks[open] { animation: pop 0.3s cubic-bezier(0.2, 1.3, 0.4, 1); }
.thanks-inner { padding: 30px 30px 26px; text-align: left; }
.thanks-art { height: 110px; display: block; margin: 0 auto 14px; }
.thanks h2 { font-size: 1.6rem; text-align: center; margin: 0 auto 18px; }
.thanks ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }
.thanks-retry { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 20px; }
.thanks .btn { width: 100%; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 560px) 1fr; }
  .hero-char { left: auto; right: 6%; }
}
/* Tablets, open foldables and phones: the character stands above the card. */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .hero { display: flex; flex-direction: column; padding-top: 8px; }
  .hero-stand { position: relative; order: -2; bottom: auto; height: calc(var(--h, 340px) * 0.62); }
  .hero-char { left: auto; right: 10%; bottom: -6px; }
  .hero-char img { height: calc(var(--h, 340px) * 0.62); }
  .shelf { order: -1; height: 24px; }
  .hero-grid { grid-template-columns: 1fr; padding: 28px 0 0; }
  .bubble::after { right: calc(10% + 30px); top: -26px; bottom: auto; width: 44px; height: 28px; clip-path: polygon(45% 100%, 100% 100%, 85% 0); }
  .hero-text h1 { margin-top: 40px; }
  /* Hand them things: folder, then the loose things, then the character, top to bottom. */
  .drop-stage { height: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
  .fwin { position: relative; left: auto; right: auto; top: auto; width: auto; height: 210px; }
  .loose { position: static; max-width: none; flex-wrap: nowrap; gap: 10px; align-items: stretch; }
  .loose-link { flex: 1; min-width: 0; max-width: 420px; }
  .loose-link > span:last-child { min-width: 0; }
  .loose-link i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .loose-note { width: 112px; flex: none; padding: 12px; font-size: 0.88rem; }
  .drop-floor { display: block; position: relative; height: 370px; margin: 0 -16px -16px; }
  .drop-target { right: 28px; bottom: 40px; height: 150px; }
  .drop-shelf { height: 44px; }
  .drop-choices, .drop-choices.stacked { inset: auto; top: 8px; left: 16px; right: 16px; justify-content: flex-start; }
  .drop-say { top: 8px; bottom: auto; left: 16px; right: 16px; max-width: none; }
  .ask { top: 8px; bottom: auto; left: 16px; right: auto; width: min(360px, calc(100% - 32px)); }
  .drop-hint { display: block; top: 8px; left: 16px; right: auto; }
  .bubble-line { min-height: 0; }
}
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; }
  .teams-grid { grid-template-columns: 1fr; gap: 28px; }
  .bim-row { grid-template-columns: 1fr; gap: 36px; }
  .bim-row.flip > :first-child { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .dl-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .dl-art { height: 220px; order: 2; }
  .dl-wick { height: 180px; }
  .dl-mote { height: 110px; bottom: 90px; }
  .dl-bell { height: 90px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 16px; }
  .faq-side { position: static; }
  .faq-friend { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-stand { height: calc(var(--h, 340px) * 0.5); }
  .hero-char img { height: calc(var(--h, 340px) * 0.5); }
  .bubble { padding: 22px 22px 20px; border-radius: 22px; }
  .bubble-line { font-size: 1.85rem; }
  .hero-text h1 { margin-top: 32px; }
  .feature { grid-template-columns: 1fr; gap: 4px; }
  .bim-card { padding: 22px 20px 0; gap: 14px; }
  .bim-card img { height: 120px; }
  .bim-list { grid-template-columns: 1fr; }
  .bim-list dd { border-top: 0; padding-top: 0; }
  .mv-body { grid-template-columns: 7rem 1fr; min-height: 220px; }
  .stage-wrap { margin-top: 40px; }
  .desk { aspect-ratio: auto; height: 480px; min-height: 0; border-radius: 18px; }
  .tb-search, .tb-app:nth-of-type(n+4) { display: none; }
  .section { padding-top: 80px; }
  .steps { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .cast-art { height: 150px; }
  .cast-art img { max-height: 120px; }
  .card { width: 220px; }
  .panel { padding: 16px; }
  .panel-row { gap: 16px; }
  .name-input { width: 100%; }
  .peeker { height: 96px; }
  .faq-section { padding-bottom: 80px; }

  /* Hand them things: folder, then the loose things, then the character, all on one screen. */
  .drop-stage { padding: 12px; margin-top: 28px; border-radius: 18px; }
  .fwin { height: 236px; }
  .fwin-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 8px; }
  .tile { padding: 6px 2px; }
  .t-thumb { width: 48px; height: 38px; }
  .t-pdf { width: 32px; height: 40px; }
  .t-zip { width: 38px; height: 38px; }
  .t-name { font-size: 0.74rem; }
  .drop-floor { height: 370px; margin: 0 -12px -12px; }
  .drop-target { height: 120px; }
  .held { width: 150px; }
  .held .t-thumb, .held .t-pdf { height: 60px; }

  /* Long runs of cards become a row you swipe through. */
  .steps, .cast {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 18px; scroll-padding-inline: 16px;
  }
  .steps::-webkit-scrollbar, .cast::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 78%; scroll-snap-align: start; }
  .cast-card { flex: 0 0 62%; scroll-snap-align: start; }
  .js .steps .reveal, .js .cast .reveal { opacity: 1; transform: none; }
  .steps { margin-top: 32px; }
  .cast { margin-top: 32px; }

  /* The BIM pack table becomes one row per reminder. */
  .pack-table { min-width: 0; }
  .pack-table thead { display: none; }
  .pack-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  .pack-table td { display: block; padding: 0; border: 0; }
  .pack-table td:nth-child(2) { grid-row: 2; color: var(--ink-2); font-size: 0.94rem; }
  .pack-table td:last-child { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}
/* Folded phones and other very narrow screens. */
@media (max-width: 340px) {
  .brand span { display: none; }
  .wrap { width: calc(100% - 24px); }
  .bubble-line { font-size: 1.6rem; }
  .btn-big { white-space: normal; padding: 15px 18px; }
  .loose { flex-wrap: wrap; }
  .loose-link, .loose-note { flex: 1 1 100%; max-width: none; }
  .loose-note { width: auto; transform: none; }
  .loose-note:hover { transform: none; }
  .drop-floor { height: 360px; }
  .step, .cast-card { flex-basis: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
