/* Landing page. Layout: one 1160px column; every block starts on the same left
   edge. Spacing scale 8/16/24/40/64 only. Everything is scoped to .esp-home. */
@font-face { font-family: "ESP Unbounded"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/assets/Unbounded-latin-9c83474d.woff2") format("woff2"); }
@font-face { font-family: "ESP Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/Figtree-latin-f7c28c58.woff2") format("woff2"); }
@font-face { font-family: "ESP DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/DMMono-400-latin-bf792450.woff2") format("woff2"); }
@font-face { font-family: "ESP DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/DMMono-500-latin-e06c27ef.woff2") format("woff2"); }

body:has(.esp-home) { background: #F2EEE8; }
.esp-home {
  --bg: #F2EEE8; --card: #FFFFFF; --ink: #2A2A33; --muted: #5F5D66; --line: #DDD6CC;
  --peri: #4E5DC4; --peri-dark: #4250B0; --peri-soft: #E1E4F8; --peach: #C26E59; --peach-soft: #F7DCD2;
  --display: "ESP Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: "ESP Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "ESP DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
  container-type: inline-size;
  display: block; overflow: hidden; margin: 0;
  background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.esp-home * { box-sizing: border-box; }
.esp-home [hidden] { display: none !important; }
.esp-home a { color: inherit; }
.esp-home :is(button, textarea) { font: inherit; }
.esp-home :where(p, h1, h2, ul, figure, blockquote) { margin: 0; }
.esp-home :focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; }
.esp-home :is(p, li, small, label) { text-wrap: pretty; }
.esp-home :is(h1, h2) { text-wrap: balance; }
.home-in { max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5cqi, 48px); }

/* Navigation */
.home-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 72px; }
.home-brand { display: flex; align-items: center; gap: var(--s1); min-height: 44px; text-decoration: none; white-space: nowrap; }
.home-brand b { font: 700 1.375rem/1 var(--display); letter-spacing: -.02em; }
.home-brand small { font-size: .8125rem; color: var(--muted); }
.home-links { display: flex; align-items: center; gap: var(--s3); font-size: .9375rem; }
.home-links > a:not(.home-btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.home-links > a:not(.home-btn):hover { text-decoration: underline; text-underline-offset: .25em; }
@container (max-width: 600px) { .home-links > a:not(.home-btn) { display: none; } }

.home-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s3); border: 0; border-radius: 999px; background: var(--peri); color: #fff !important; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.home-btn:hover { background: var(--peri-dark); }
.home-btn.sm { min-height: 44px; padding: 0 var(--s2); background: transparent; color: var(--ink) !important; font-size: .9375rem; box-shadow: inset 0 0 0 1.5px var(--ink); }
.home-btn.sm:hover { background: var(--ink); color: var(--bg) !important; }
.home-text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

.home-label { color: var(--muted); font: 500 .875rem/1.3 var(--mono); letter-spacing: .01em; }
.esp-home h1 { font: 600 clamp(2.25rem, 5.4cqi, 3.75rem)/1.05 var(--display); letter-spacing: -.035em; }
.esp-home h2 { margin-top: var(--s2); font: 600 clamp(1.625rem, 3.4cqi, 2.25rem)/1.15 var(--display); letter-spacing: -.03em; }
.esp-home .home-sub { max-width: 40em; color: var(--muted); font-size: 1.1875rem; }

.home-sec { padding-block: var(--s5); border-top: 1px solid var(--line); scroll-margin-top: var(--s2); }
@container (max-width: 700px) { .home-sec { padding-block: var(--s4); } }

/* Hero */
.home-hero { display: grid; gap: var(--s3); align-items: center; padding-block: var(--s3) var(--s4); }
@container (min-width: 760px) { .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); } }
.esp-home .home-hero .home-sub { margin-top: var(--s2); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.home-facts { display: grid; gap: var(--s1); margin-top: var(--s3); padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.home-facts li { display: flex; align-items: center; gap: var(--s1); }
.home-facts i { width: 1em; color: var(--peri); font-size: .9em; font-style: normal; line-height: 1; text-align: center; }
.home-stage { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; }
.home-stage .fuzz-stage { width: min(100%, 540px); }
@container (max-width: 759px) { .home-stage .fuzz-stage { width: min(100%, 340px); } }

/* Fuzz and the orbit */
.fuzz-stage { position: relative; width: 100%; aspect-ratio: 1; }
.fuzz-stage > * { position: absolute; }
.fuzz-ring { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fuzz-ring path { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: .35; stroke-dasharray: 1.2 1.2; }
.fuzz-ring.back { z-index: 1; }
.fuzz-ring.front { z-index: 3; }
.fuzz-body { z-index: 2; left: 12%; top: 6%; width: 76%; aspect-ratio: 760 / 800; transform-origin: 50% 70%; filter: drop-shadow(0 18px 18px rgb(20 40 90 / 16%)); animation: fuzz-bob 5s ease-in-out infinite; }
.fuzz-body .fuzz-img, .fuzz-body .fuzz-rig { display: block; width: 100%; height: auto; }
.fuzz-rig { position: relative; aspect-ratio: 760 / 800; }
.fuzz-volume { position: relative; width: 100%; height: 100%; }
.fuzz-rig .fuzz-source { display: block; width: 100%; height: auto; }
.fuzz-rig .fuzz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fuzz-rig.gaze-active .fuzz-source { opacity: 0; }
.fuzz-toy { left: 0; top: 0; width: 15%; aspect-ratio: 1; background: center / contain no-repeat; will-change: transform; }
.fuzz-toy.star { background-image: url("/assets/toy-star-f88f372b.webp"); }
.fuzz-toy.ball { width: 13%; background-image: url("/assets/toy-ball-bf926a7a.webp"); }
.fuzz-toy.cube { width: 16%; background-image: url("/assets/toy-cube-e880872d.webp"); }
.fuzz-toy.tri { background-image: url("/assets/toy-tri-c0d4d235.webp"); }
.fuzz-dust { left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; }
.fuzz-body.cheer { animation: fuzz-hop .9s cubic-bezier(.3, 1.4, .5, 1) 1; }
@keyframes fuzz-bob { 0%, 100% { transform: translateY(1.5%) rotate(-1deg); } 50% { transform: translateY(-2.5%) rotate(1deg); } }
@keyframes fuzz-hop { 0% { transform: translateY(1.5%) rotate(-1deg); } 30% { transform: translateY(-11%) rotate(-5deg) scale(1.04); } 55% { transform: translateY(2%) scale(1.05, .95); } 75% { transform: translateY(-3%) rotate(2deg); } 100% { transform: translateY(1.5%) rotate(-1deg); } }

/* Cards */
.home-card { position: relative; padding: var(--s4); border: 1.5px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 8px 8px 0 -1.5px var(--card), 8px 8px 0 0 var(--ink); }
@container (max-width: 520px) { .home-card { padding: var(--s3); } }
.home-card[data-sym]::after { content: attr(data-sym); position: absolute; top: var(--s3); right: var(--s3); color: var(--peri); font-size: 1.25rem; line-height: 1; }
.home-card.partner[data-sym]::after { color: var(--peach); }

/* Practice: header row above one split card (email | guess) */
.home-phead { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
@container (min-width: 760px) { .home-phead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: end; } }
.esp-home .home-phead .home-sub { margin: 0; }
.home-card.home-play { display: grid; padding: 0; overflow: hidden; }
@container (min-width: 760px) { .home-card.home-play { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.home-mail { padding: var(--s4); border-bottom: 1.5px solid var(--ink); background: var(--bg); }
@container (min-width: 760px) { .home-mail { border-right: 1.5px solid var(--ink); border-bottom: 0; } }
.esp-home .home-clue { display: grid; gap: .6em; margin-top: var(--s2); font: 400 1.0625rem/1.55 var(--body); }
.home-guesspane { display: flex; flex-direction: column; padding: var(--s4); }
@container (max-width: 520px) { .home-mail, .home-guesspane { padding: var(--s3); } }
.home-guesspane form { display: flex; flex: 1; flex-direction: column; }
.home-guesspane label { display: block; margin-bottom: var(--s1); font-weight: 600; }
.home-guesspane textarea { display: block; flex: 1; width: 100%; min-height: 140px; padding: 12px var(--s2); border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 1rem; line-height: 1.5; resize: vertical; }
.home-guesspane textarea::placeholder { color: #8A8790; }
.home-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.home-row small { flex: 1 1 14em; color: var(--muted); font-size: .875rem; }
.esp-home .home-reveal > p + p { margin-top: var(--s1); }
.esp-home .home-answer { font-size: 1.125rem; }
.home-answer:focus { outline: none; }
.esp-home .home-hint { color: var(--muted); font-size: .9375rem; }

/* How it works: [you] + [partner] = [team] */
.esp-home .home-how .home-sub { margin-top: var(--s2); }
.home-eq { display: grid; gap: var(--s1); align-items: stretch; margin-top: var(--s3); }
@container (min-width: 820px) { .home-eq { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); gap: 0; } }
.home-op { display: grid; place-items: center; min-height: var(--s4); color: var(--muted); font: 600 1.5rem/1 var(--display); }
.home-eq .home-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s2) 20px 20px; box-shadow: none; }
.home-eq .home-card .home-label { padding-right: var(--s4); }
.home-guess { font: 500 1.125rem/1.5 var(--body); }
.home-guess mark { padding: .05em .2em; border-radius: 4px; background: var(--peri-soft); color: inherit; white-space: nowrap; }
.home-card.partner .home-guess mark { background: var(--peach-soft); }
.home-card.team { border-style: dashed; background: transparent; }
.home-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.home-chips li { padding: 3px 9px; border-radius: 999px; background: var(--peri-soft); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.home-chips li.p { background: var(--peach-soft); }

/* After the round and privacy */
.home-pair { display: grid; gap: var(--s4); }
@container (min-width: 760px) { .home-pair { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.home-list { display: grid; gap: var(--s2); margin-top: var(--s3); padding: 0; list-style: none; font-size: 1.125rem; }
.home-list li { display: grid; grid-template-columns: var(--s3) 1fr; align-items: baseline; }
.home-list li::before { content: "\2713"; color: var(--peri); font-weight: 700; }
.home-after li::before { content: "\2605"; font-weight: 400; }
.home-after li:nth-child(2)::before { content: "\25CF"; }
.home-after li:nth-child(3)::before { content: "\25A0"; }
.esp-home .home-list + p { margin-top: var(--s3); }

/* Footer */
.home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); padding-block: var(--s2) var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.home-foot nav { display: flex; flex-wrap: wrap; column-gap: var(--s3); }
.home-foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.home-foot nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
@container (max-width: 520px) {
  .home-foot { flex-direction: column; align-items: flex-start; }
  .home-foot nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: var(--s4); }
}

/* Motion */
.esp-home.motion-paused :is(.fuzz-body, .fuzz-body.cheer) { animation-play-state: paused; }
.esp-home.motion-paused .fuzz-body.cheer { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .esp-home .fuzz-body { animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.esp-home) { scroll-behavior: smooth; } }
