/* =====================================================================
   home.css - the Atlas home page ("living lens", 2026-11-21)
   =====================================================================
   Loaded only by index.html, after style.css (which keeps the shared
   colors, the labels and the brand). Phone first; wider screens add
   columns. Every animation is turned off for people who ask for less
   motion (prefers-reduced-motion), and the scroll-in animations only run
   in browsers that support scroll-driven animations.
   ===================================================================== */

body.home { --gold-2: #f6dc7a; --glass: rgba(21, 26, 32, 0.62); }

/* a whisper of film grain over everything (a tiny SVG noise, no file) */
.h-grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* a soft gold glow behind the top of the page */
body.home { background:
  radial-gradient(900px 520px at 78% -8%, rgba(232, 197, 71, 0.10), transparent 60%),
  radial-gradient(700px 480px at -10% 30%, rgba(89, 195, 168, 0.06), transparent 60%),
  var(--bg); }

/* ---------- the top bar ---------- */
.h-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 16px;
  background: rgba(13, 15, 18, 0.72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.h-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.h-nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 999px; }
.h-nav a:hover { color: var(--text); }
.h-nav .h-nav-play { color: #16130a; background: var(--gold); font-weight: 700; padding: 8px 16px; }
.h-nav .h-nav-play:hover { color: #16130a; filter: brightness(1.06); }
@media (max-width: 520px) { .h-nav a:not(.h-nav-play):not(.h-nav-lens) { display: none; } }
.h-nav .h-nav-lens { color: var(--gold); }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- 1. the hero ---------- */
.h-hero { display: grid; gap: 28px; padding: 36px 0 30px; align-items: center; }
@media (max-width: 899px) {
  .h-hero-text { display: contents; }
  .h-kicker { order: 1; } .h-hero h1 { order: 2; margin-bottom: 4px; } .h-lens-card { order: 3; } .h-lede { order: 4; margin-bottom: 4px; } .h-ctas { order: 5; }
  .h-hero { gap: 18px; padding-top: 26px; }
  .h-lens { max-height: 62vh; }
}
@media (min-width: 900px) { .h-hero { grid-template-columns: 1.05fr 0.95fr; gap: 56px; padding: 72px 0 56px; }
  .h-hero h1 { font-size: clamp(48px, 5.6vw, 80px); } }
.h-kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px var(--mono); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.h-kicker img { width: 26px; height: auto; }
.h-hero h1 { font-size: clamp(40px, 8.4vw, 84px); text-wrap: balance; line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
.h-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold) 10%, var(--gold-2) 45%, #fff3c4 55%, var(--gold) 80%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: h-shine 6s ease-in-out infinite; }
.h-hero h1 span { display: block; margin-top: 10px; font-size: 0.5em; letter-spacing: -0.02em; line-height: 1.1; color: var(--muted); font-weight: 650; }
@keyframes h-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.h-lede { font-size: clamp(16.5px, 2vw, 19px); line-height: 1.55; color: #cfd3d8; max-width: 560px; margin: 0 0 26px; }
.h-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.h-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease; }
.h-btn:hover { transform: translateY(-1px); }
.h-btn-gold { background: var(--gold); color: #16130a; box-shadow: 0 8px 30px rgba(232, 197, 71, 0.25); }
.h-btn-gold:hover { filter: brightness(1.06); }
.h-btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); }
.h-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* the lens */
.h-lens-card { margin: 0; }
.h-lens { --x: 62%; --y: 34%; --r: 23%; position: relative; aspect-ratio: 488 / 520; max-height: 620px; margin: 0 auto;
  border-radius: 26px; overflow: hidden; background: #000; cursor: grab; touch-action: pan-y; outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(232, 197, 71, 0.08); }
.h-lens:active { cursor: grabbing; }
.h-lens:focus-visible { box-shadow: 0 0 0 3px var(--gold), 0 30px 80px rgba(0, 0, 0, 0.55); }
.h-lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.h-lens-bee { clip-path: circle(var(--r) at var(--x) var(--y)); transition: clip-path 0.5s cubic-bezier(.2, .8, .2, 1); }
.h-lens.dragging .h-lens-bee, .h-lens.drifting .h-lens-bee { transition: none; }
.h-lens-ring { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2 * 1.0638); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 246, 207, 0.9), 0 0 0 7px rgba(232, 197, 71, 0.28), 0 0 40px rgba(232, 197, 71, 0.45); }
.h-lens-handle { position: absolute; left: var(--x); top: var(--y); width: calc(var(--r) * 2.4 * 1.0638); aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; touch-action: none; cursor: grab; }
.h-lens.low .h-pill-bee { top: auto; bottom: calc(100% - var(--y) + var(--r) * 1.12); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-pill { position: absolute; font: 700 11px var(--mono); letter-spacing: 0.12em; padding: 6px 10px; border-radius: 999px;
  background: rgba(8, 10, 13, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.h-pill-you { left: 14px; top: 14px; color: var(--text); }
.h-pill-bee { left: var(--x); top: calc(var(--y) + var(--r) * 1.12); translate: -50% 0; color: var(--gold); white-space: nowrap; pointer-events: none; }
.h-lens-hint { position: absolute; right: 14px; top: 14px; font: 600 12px var(--sans); color: var(--text); padding: 7px 12px;
  border-radius: 999px; background: rgba(8, 10, 13, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.4s; }
.h-lens.touched .h-lens-hint { opacity: 0; }
.h-lens-card figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 560px; }
.h-lens-card figcaption b { color: var(--text); }
.h-src { display: block; margin-top: 6px; font: 12px var(--mono); }
.h-src a { color: var(--gold); }

/* ---------- 2. myths we checked ---------- */
.h-myths { position: relative; overflow: hidden; margin: 8px -16px 0; padding: 14px 84px 14px 0; border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-myths-track { display: flex; gap: 14px; width: max-content; animation: h-marquee 70s linear infinite; }
.h-myths:hover .h-myths-track, .h-myths:focus-within .h-myths-track { animation-play-state: paused; }
@keyframes h-marquee { to { transform: translateX(-50%); } }
.h-myth { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  color: var(--text); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; font-size: 14px; }
.h-myth:hover { border-color: var(--gold); }
.h-myth s { color: var(--muted); text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.h-myth b { color: var(--gold); font-weight: 700; }
.h-myth i { font-style: normal; font: 700 10.5px var(--mono); letter-spacing: 0.1em; color: var(--muted); }
.h-myths-track.paused { animation-play-state: paused; }
.h-myths-pause { position: absolute; right: 16px; top: 50%; translate: 0 -50%; z-index: 2; font: 600 12px var(--sans); color: var(--text);
  background: rgba(13, 15, 18, 0.9); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.h-myths-pause:hover { border-color: var(--gold); }

/* ---------- 3. the numbers ---------- */
.h-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px 0; border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, 0.07); }
@media (min-width: 760px) { .h-stats { grid-template-columns: repeat(4, 1fr); } }
.h-stat { background: var(--bg); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.h-stat b { font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(180deg, #fff, #c9ccd1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-stat span { color: var(--muted); font-size: 14px; line-height: 1.35; }

/* ---------- section heads ---------- */
.h-section-head { margin: 0 0 20px; }
.h-section-head h2 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1; letter-spacing: -0.03em; margin: 0; font-weight: 800; }

/* ---------- 4. the ten, as a bento grid ---------- */
.h-animals { padding: 26px 0 10px; }
.h-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .h-bento { grid-template-columns: repeat(6, 1fr); gap: 14px; grid-auto-rows: 200px; } }
.h-tile { position: relative; display: block; min-height: 220px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none;
  background: #000; isolation: isolate; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07); grid-column: span 1; }
.h-tile.big, .h-tile.wide, .h-tile.full, .h-tile.m-wide { grid-column: span 2; }
.h-tile.big { min-height: 300px; }
@media (min-width: 760px) {
  .h-tile { min-height: 0; grid-column: span 2; }
  .h-tile.big { grid-column: span 3; grid-row: span 2; }
  .h-tile.wide { grid-column: span 3; }
  .h-tile.m-wide { grid-column: span 2; }
  .h-tile.full { grid-column: span 6; grid-row: span 2; }
}
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.5s; filter: saturate(0.95); }
.h-tile::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.05) 30%, rgba(8, 10, 13, 0.55) 62%, rgba(8, 10, 13, 0.92) 100%); }
.h-tile:hover img, .h-tile:focus-visible img { transform: scale(1.05); filter: saturate(1.1); }
.h-tile:hover, .h-tile:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 18px 50px rgba(232, 197, 71, 0.12); outline: none; }
.h-tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 15px; display: flex; flex-direction: column; gap: 5px; }
.h-tile-num { font: 700 11.5px var(--mono); letter-spacing: 0.12em; color: var(--gold); }
.h-tile-num i { font-style: normal; color: var(--measured); }
.h-tile-name { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.h-tile.big .h-tile-name { font-size: clamp(24px, 3vw, 34px); }
.h-tile-twist { color: rgba(236, 233, 226, 0.86); font-size: 14px; line-height: 1.4; }
.h-tile:not(.big):not(.wide) .h-tile-twist { display: none; }
@media (min-width: 760px) { .h-tile:not(.big):not(.wide) .h-tile-twist { display: block; font-size: 13px; } }
.h-tile-go { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 10, 13, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--gold); font-weight: 800;
  transition: background 0.2s, color 0.2s, transform 0.2s; }
.h-tile:hover .h-tile-go { background: var(--gold); color: #16130a; transform: rotate(-45deg); }

/* ---------- 5. how it works ---------- */
.h-how { padding: 56px 0 30px; }
.h-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
@media (min-width: 760px) { .h-steps { grid-template-columns: repeat(3, 1fr); } }
.h-steps li { counter-increment: s; position: relative; padding: 52px 20px 22px; border-radius: 20px; background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07); color: var(--muted); line-height: 1.5; }
.h-steps li::before { content: "0" counter(s); position: absolute; top: 16px; left: 20px; font: 800 14px var(--mono); color: var(--gold); letter-spacing: 0.1em; }
.h-steps b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.h-labels { padding: 22px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.06), rgba(255, 255, 255, 0.01)); }
.h-labels > p { margin: 0 0 12px; color: var(--text); }
.h-labels ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
@media (min-width: 760px) { .h-labels ul { grid-template-columns: repeat(2, 1fr); } }
.h-labels li { color: var(--muted); line-height: 1.4; }
.h-labels .tag { margin-right: 8px; }
.h-quiet { color: var(--muted) !important; margin: 0 !important; line-height: 1.55; }

/* ---------- footer ---------- */
.h-foot { max-width: 1180px; margin: 30px auto 0; padding: 28px 16px 40px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.h-foot p { max-width: 640px; }
.h-credits { font-size: 12.5px; opacity: 0.85; }
.h-cite { font: 12.5px var(--mono); }
.h-foot a { color: var(--gold); }
.h-foot a.brand { color: var(--text); text-decoration: none; }

/* ---------- scroll-in motion (only where the browser supports it) ---------- */
@supports (animation-timeline: view()) {
  .h-rise { animation: h-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  @keyframes h-rise { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
}

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .h-hero h1 em, .h-myths-track, .h-rise { animation: none !important; }
  .h-myths { overflow-x: auto; mask-image: none; }
  .h-myth-copy, .h-myths-pause { display: none; }
  .h-tile img, .h-lens-bee, .h-btn { transition: none; }
}

/* lens mode callout, under the ten (2026-11-21: he couldn't find lens mode) */
.h-lens-cta { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--gold); background: var(--gold-dim); color: var(--text); text-decoration: none; line-height: 1.45; }
.h-lens-cta img { flex: none; width: 52px; height: auto; }
.h-lens-cta b { display: block; font-size: 20px; color: var(--gold); margin-bottom: 2px; }
.h-lens-go { flex: none; margin-left: auto; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #16130a; font-weight: 700; white-space: nowrap; }
.h-lens-cta:hover .h-lens-go { filter: brightness(1.06); }
@media (max-width: 560px) { .h-lens-cta { flex-wrap: wrap; } .h-lens-go { margin-left: 0; } }

/* the link under the myths ticker to the full page (myths.html) */
.h-myths-all { margin: 10px 0 0; text-align: right; font-size: 14px; }
.h-myths-all a { color: var(--gold); }
