/* The front page. Builds on style.css for the colors, buttons and the town drawing. */
.landing { --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px); overflow-x: hidden; }
.landing a { color: inherit; }
.landing a.btn { text-decoration: none; }
.btn.big { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }

.l-top, .l-hero, .l-section, .l-end, .l-foot { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- top bar ---------- */
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.l-top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.l-top .brand-name { font-weight: 600; letter-spacing: -0.01em; }
.l-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.l-nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.l-nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero ---------- */
.l-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px);
  align-items: center; min-height: min(760px, calc(100dvh - 68px)); padding-block: 24px 72px;
}
.l-hero-text { display: grid; gap: 22px; justify-items: start; }
.live { display: inline-flex; align-items: center; gap: 10px; min-height: 22px; font: 500 12.5px var(--mono); color: var(--muted); }
.live-skel { display: block; width: 230px; height: 18px; border-radius: 6px; border: 1px solid var(--line); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.live .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.4s var(--ease) infinite; }
.live.paused .dot { background: var(--faint); }
.live.paused .dot::after { display: none; }
.live b { color: var(--text); font-weight: 500; }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.l-hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; max-width: 15ch; text-wrap: balance; }
.h1-quiet { color: var(--muted); }
.l-lede { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }
.l-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.l-hero .hint-text { margin-top: -8px; }

.l-hero-art { position: relative; }
.l-hero-art::before {
  content: ""; position: absolute; inset: 8% -6% -10% 6%; border-radius: 28px; z-index: -1;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent-soft), transparent 70%);
}
#hero-scene { border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
#hero-scene .scene-art { animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* Little people wandering about. Positions are in the drawing's units: 1000 across. */
.walkers { position: absolute; inset: 0; pointer-events: none; }
.walker {
  position: absolute; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
  transform: translate(calc(var(--x) * 0.1cqw), calc(var(--y) * 0.1cqw));
}
.walkers.ready .walker { transition: transform var(--walk, 3s) cubic-bezier(0.45, 0, 0.25, 1); }
.walker::before {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: var(--c); border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 3px 6px -2px rgba(0, 0, 0, 0.55);
  animation: bob 1.8s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes bob { 50% { transform: translateY(-2px); } }

/* ---------- sections ---------- */
.l-section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.l-h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: var(--text); max-width: 20ch; text-wrap: balance; }
.l-body { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 58ch; margin-top: 18px; }
.l-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.l-sticky { position: sticky; top: 32px; }

.steps { display: grid; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.step-n { font: 500 13px var(--mono); color: var(--faint); padding-top: 3px; }
.steps h3, .sees h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.steps p, .sees p { color: var(--muted); margin-top: 8px; line-height: 1.6; max-width: 56ch; }

/* ---------- making a living ---------- */
.l-living { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.receipt {
  margin: 0; justify-self: center; width: min(100%, 360px); padding: 28px 26px 30px; transform: rotate(1.6deg);
  background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 13px;
  border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
}
.receipt figcaption { text-align: center; font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px dashed rgba(38, 35, 30, 0.35); }
.receipt figcaption span { font-weight: 400; font-size: 11.5px; letter-spacing: 0.12em; opacity: 0.6; }
.receipt dl { margin: 14px 0 0; display: grid; gap: 9px; }
.receipt dl div { display: flex; align-items: baseline; gap: 8px; }
.receipt dt { flex: none; }
.receipt dl div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(38, 35, 30, 0.4); transform: translateY(-3px); }
.receipt dd { order: 2; margin: 0; font-weight: 500; }
.receipt dd::after { content: " c"; opacity: 0.55; font-weight: 400; }
.receipt-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(38, 35, 30, 0.35); font-size: 11.5px; line-height: 1.5; opacity: 0.75; }

/* ---------- what they don't know ---------- */
.l-paper { background: var(--paper); color: var(--ink); }
.l-paper-inner { width: min(100%, var(--wrap)); margin-inline: auto; padding: clamp(72px, 10vw, 128px) var(--gutter); padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter) + 8%)); }
.l-paper .eyebrow { color: #a8452a; }
.l-big { font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.06; max-width: 18ch; text-wrap: balance; }
.l-paper .l-body { color: rgba(38, 35, 30, 0.72); }

/* ---------- who lives there ---------- */
.l-who { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.personas { display: grid; gap: 10px; }
.personas li {
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  color: var(--text); font-size: 15px; width: fit-content; max-width: 100%;
}
.personas li:nth-child(even) { margin-left: clamp(16px, 5vw, 64px); }
.personas li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 12px; vertical-align: 1px; background: var(--c, var(--accent)); }
.personas li:nth-child(1) { --c: #d9a35f; }
.personas li:nth-child(2) { --c: #c7798e; }
.personas li:nth-child(3) { --c: #8fa7c9; }
.personas li:nth-child(4) { --c: #8fb996; }
.personas li:nth-child(5) { --c: #b5c48a; }
.personas li:nth-child(6) { --c: #a8a3cf; }

/* ---------- what you can see ---------- */
.sees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sees li { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); }
.sees li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.sees svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }

/* ---------- end ---------- */
.l-end { display: grid; justify-items: start; gap: 18px; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.latest { font: 400 12.5px var(--mono); color: var(--faint); margin-top: 18px; }
.latest b { color: var(--muted); font-weight: 500; }
.l-foot { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.l-foot a { text-decoration: none; transition: color 0.2s; }
.l-foot a:hover { color: var(--text); }

/* ---------- arriving on screen ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .receipt.reveal { transform: translateY(18px) rotate(0deg); }
.js .receipt.reveal.in { transform: rotate(1.6deg); }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .l-hero { grid-template-columns: 1fr; min-height: 0; padding-block: 16px 56px; gap: 36px; }
  .l-hero h1 { max-width: 18ch; }
  .l-split, .l-living, .l-who { grid-template-columns: 1fr; }
  .l-sticky { position: static; }
  .l-paper-inner { padding-left: var(--gutter); }
  .l-hero-art::before { inset: 4% 0 -8% 0; }
}
@media (max-width: 640px) {
  .l-nav a:not(.btn) { display: none; }
  .l-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .l-lede { font-size: 15.5px; }
  .l-cta .btn { flex: 1 1 auto; }
  #hero-scene { border-radius: 16px; }
  .walker { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .walker::before { border-width: 1.5px; }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); }
  .sees { grid-template-columns: 1fr; }
  .sees li, .sees li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .personas li:nth-child(even) { margin-left: 16px; }
  .receipt { transform: none; }
  .js .receipt.reveal.in { transform: none; }
}
