/* Homepage (2026-11 redesign). Loaded only by index.html; everything is scoped
   under .home so nothing here reaches another page. The floating nav lives in
   styles.css because every page shares it. */

.home { --lime: #c8ff00; --ink: #111; --line: #ececf0; --muted: #5f5f66; color: var(--ink); }
.home a { color: inherit; text-decoration: none; }
.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.home-section { padding: 112px 0 0; }
.home-h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home .home-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 600; border: 2px solid var(--lime); white-space: nowrap; }
.home .home-link { transition: background .15s ease, transform .1s ease; }
.home .home-link::after { content: '\2192'; display: inline-block; transition: transform .15s ease; }
.home .home-link:hover { background: var(--lime); }
.home .home-link:hover::after { transform: translateX(3px); }
.home .home-link:active { transform: scale(.97); }
.home .home-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid var(--ink); cursor: pointer;
  font-family: inherit; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.home-btn:hover { transform: translateY(-1px); }
.home .home-btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.home .home-btn-outline { background: #fff; color: var(--ink); }
.home .home-btn-outline:hover { background: var(--lime); color: var(--ink); }   /* Share your vibe: lime on hover, ink text (17:1) */
.home .home-btn-dark { background: var(--ink); color: #fff; }
.home-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Full-screen hero ---------- */
/* The nav is sticky and keeps its own space, so the stage is pulled up under it
   and fills the whole first screen. */
.home-stage { position: relative; margin-top: -66px; height: 100vh; height: 100svh; min-height: 700px; max-height: 1100px;
  overflow: hidden; display: grid; place-items: center; background: #fbfbf8; isolation: isolate; }
.home-dots { position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(#d9d9d2 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%); }
.home-orbit { position: absolute; inset: 0; z-index: 1; }
.home-orb { position: absolute; left: 50%; top: 50%; width: 168px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  background: #eee; border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 10px 28px rgba(17,17,17,.10);
  opacity: 0; will-change: transform; transition: opacity .45s ease, box-shadow .25s ease, filter .25s ease;
  filter: saturate(calc(var(--fade, 1) * 1.05)) brightness(calc(.88 + var(--fade, 1) * .12)); }
.home-orbit.is-in .home-orb.is-ready { opacity: var(--fade, 1); }
.home-orb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.home-orb.is-hot { opacity: 1 !important; filter: none; outline: 3px solid var(--lime);
  box-shadow: 0 2px 4px rgba(17,17,17,.08), 0 22px 48px rgba(17,17,17,.18); }
.home-orb:focus-visible { outline: 3px solid var(--ink); }
.home-orb-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; border-radius: 10px; background: #fff;
  font-size: 12px; line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.home-orb-cap b, .home-orb-cap span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-orb-cap b { font-weight: 700; }
.home-orb-cap span { color: #555; }
.home-orb.is-hot .home-orb-cap { opacity: 1; transform: none; }

/* The copy sits on a soft halo so passing cards never hurt readability. */
.home-stage-copy { position: relative; z-index: 30; text-align: center; padding: 40px 44px; max-width: 820px;
  background: radial-gradient(closest-side, rgba(251,251,248,.97) 64%, rgba(251,251,248,0)); }
.home-title { margin: 0; font-weight: 800; }
.home-title-big { display: block; font-size: clamp(40px, 7vw, 92px); line-height: .98; letter-spacing: -.045em; }
.home-nowrap { white-space: nowrap; }
/* The second line of the H1: smaller, but still part of the heading. */
.home-title-sub { display: block; margin: 22px auto 0; max-width: 560px; font-size: 19px; line-height: 1.55; font-weight: 400;
  letter-spacing: 0; color: #3a3a3f; }
.home-cycle { display: inline-grid; vertical-align: bottom; position: relative; height: 1.1em; overflow: hidden;
  /* room for g, p and y below the line, without moving the line */
  padding-bottom: .22em !important; margin-bottom: -.22em; text-align: left;
  /* No highlight box: the cycling word is the brand lime with an ink outline. Lime alone on a
     light page is 1.15:1 and unreadable; the ink outline (17:1) draws the letter shapes. */
  color: var(--lime); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; padding: 0 .03em; margin-left: .06em; box-sizing: content-box;
  }
.home-cycle-word { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; gap: .16em; white-space: nowrap;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.home-cycle-word svg { width: .62em; height: .62em; flex-shrink: 0; }
.home-cycle-word.is-enter { transform: translateY(100%); opacity: 0; }
.home-cycle-word.is-leave { transform: translateY(-100%); opacity: 0; }

.home-search { display: flex; align-items: center; gap: 10px; width: min(560px, 100%); margin: 32px auto 0; padding: 6px 6px 6px 20px;
  background: #fff; border: 1px solid #dcdce2; border-radius: 999px; color: #555;
  box-shadow: 0 8px 30px rgba(17,17,17,.08); transition: border-color .2s ease, box-shadow .2s ease; }
.home-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200,255,0,.55), 0 8px 30px rgba(17,17,17,.08); }
.home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); height: 44px; }
.home-search input::placeholder { color: #6b6b70; }
.home-search .home-btn { height: 46px; padding: 0 24px; }
.home-stage-actions { margin-top: 16px; }
.home-stage-actions .home-btn { height: 46px; padding: 0 22px; font-size: 15px; }
.home-scroll-cue { position: absolute; bottom: 26px; left: 50%; margin-left: -22px; width: 44px; height: 44px; border-radius: 50%; z-index: 30;
  display: grid; place-items: center; background: #fff; border: 1px solid #e4e4e8; color: var(--ink); animation: home-bob 2.4s ease-in-out infinite; }
@keyframes home-bob { 50% { transform: translateY(6px); } }

/* ---------- Fresh vibes ---------- */
.home-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 28px; }
.home-chip { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 500; color: #333; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s; }
.home-chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.home-chip:hover { border-color: var(--ink); }
.home-chip:active { transform: scale(.96); }
.home-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.home-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-empty { padding: 48px 0; color: var(--muted); }

.home-identity { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (min-width: 1100px) { .home-identity { white-space: nowrap; } }
.home .home-identity a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.home .home-identity a:hover { text-decoration-thickness: 2px; text-decoration-color: var(--lime); }

/* ---------- Vibe of the Week ---------- */
.home-section-votw { padding: 136px 0 64px; }
.home-votw { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 56px; align-items: center; }
.home-votw-img { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; background: #f4f4f6; display: block; transition: transform .3s ease; }
.home-votw-img:hover { transform: translateY(-4px); }
.home-votw-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 700; }
.home-votw-title { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
.home-votw p { font-size: 17px; line-height: 1.6; color: #444; margin: 0 0 24px; }
.home-by { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 15px; }
.home-by small { display: block; color: var(--muted); font-size: 13px; }
.home-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex: none; }
.home-av img { width: 100%; height: 100%; object-fit: cover; }
.home-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.home-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #f4f4f6; color: #333; }
.home-tag svg { width: 14px; height: 14px; }

/* ---------- Event + challenge ---------- */
.home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-panel { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; background: #fff; transition: border-color .15s, transform .2s; }
.home-panel:hover { border-color: var(--ink); transform: translateY(-2px); }
.home-panel:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-panel-img { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f4f4f6; }
.home-panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-panel h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin: 12px 0 10px; }
.home-facts { list-style: none; margin: 0 0 22px; padding: 0; color: #444; font-size: 15px; line-height: 1.7; }
.home-facts b { color: var(--ink); font-weight: 600; }
.home-state { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #f4f4f6; color: #333; }
.home-state.is-live { background: var(--lime); color: var(--ink); }
.home-panel .home-btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Closing band ---------- */
.home-close { margin: 112px 0; padding: 72px 64px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.home-close h2 { font-size: 40px; letter-spacing: -.025em; line-height: 1.1; margin: 0; font-weight: 700; max-width: 640px; }
.home-close h2 em { font-style: normal; color: var(--lime); }

.home-skel { background: linear-gradient(90deg, #f4f4f6, #ececf0, #f4f4f6); background-size: 200% 100%; animation: home-sk 1.4s infinite; }
@keyframes home-sk { to { background-position: -200% 0; } }

@media (max-width: 960px) {
  .home-votw, .home-pair { grid-template-columns: 1fr; gap: 32px; }
        .home-close { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
}
@media (max-width: 760px) {
  .home-stage { margin-top: -60px; }
  .home-orb { width: 112px; border-radius: 12px; }
  .home-stage-copy { padding: 28px 12px; }
  .home-title-sub { font-size: 17px; }
  .home-search .home-btn { padding: 0 18px; }
}
@media (max-width: 560px) {
  .home-wrap { padding: 0 20px; }
  .home-section { padding-top: 80px; }
  .home-section-votw { padding: 120px 0 40px; }
  .home-panel { grid-template-columns: 1fr; }
    .home-h2, .home-votw-title, .home-close h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-scroll-cue { animation: none; }
  .home-orb, .home-cycle, .home-cycle-word, .home-votw-img, .home-panel { transition: none; }
}

/* Button hovers (same rule as the rest of the site, see styles.css):
   lime button -> ink with lime text and a lime ring; ink button -> lime with ink text;
   outlined button -> ink with white text. Hovering a whole card lights its button too. */
.home .home-btn-lime:hover, .home .home-panel:hover .home-btn-lime { background: #111; color: var(--lime); border-color: var(--lime); }
.home .home-btn-dark:hover, .home .home-panel:hover .home-btn-dark { background: var(--lime); color: #111; border-color: var(--lime); }

/* Hero search: Explore is the secondary button (white, ink outline); it fills ink on hover */
.home .home-btn-explore { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.home .home-btn-explore:hover { background: var(--ink); color: #fff; }
