/* ==========================================================================
   Y2K — the hero, rebuilt from the founder's artifact (2026-09-30).
   Loaded after x-y2k.css on a/y2k.html only. Scope: .y2k-hero.

   One render with the name lettered into it (the h1 is real text for
   readers), full width of the page column and rising behind the empty top
   bar. The reading text sits on a near-solid pearl panel pulled up onto the
   render's floor; the other names follow as pearl pills, then one glossy
   button. Ranked by gloss: the button is the glossiest thing here.

   Wide: the mock nav floats over the empty sky of the render, left-aligned
   so the site's action cluster keeps the top-right corner.
   Narrow (hero under 760px): the nav in flow (under the cluster beside the
   rail); the render cropped square around the lettering.

   Face is the page's own ("Nunito X", x-y2k.css). Tokens are scoped here.
   ========================================================================== */
.y2k-hero {
  --y2k-pearl: #F4F5FB;
  --y2k-ink: #1D2340;
  --y2k-chrome: #4F56A0;          /* the page's kind colour: 6.1:1 on pearl */
  --y2k-link: #3B3FD8;
  --y2k-floor: #D6CFF6;           /* sampled from the render's floor */
  --y2k-face: "Nunito X", "Arial Rounded MT Bold", system-ui, sans-serif;
  --y2k-floor-line: .715;         /* where the lettering ends and the floor begins */

  container-type: inline-size;
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  color: var(--y2k-ink);
  font-family: var(--y2k-face);
  font-synthesis: none;
  background: linear-gradient(180deg, #E4E1F8 0%, var(--y2k-floor) 100%);
  /* Full width of the page column, rising behind the empty top bar. */
  margin: calc(-3rem - var(--s2, 0.5rem)) calc(-1 * var(--s6, 2rem)) 0;
}
@media (max-width: 60rem) {
  .y2k-hero { margin-inline: calc(-1 * var(--s4, 1rem)); }
}
.y2k-hero * { box-sizing: border-box; }
.y2k-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.y2k-hero :focus-visible { outline: 3px solid var(--y2k-link); outline-offset: 3px; }

/* ---- the render ---------------------------------------------------------- */
.y2k-art { position: relative; z-index: 0; aspect-ratio: 1672 / 941; margin: 0; }
.y2k-art img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

/* ---- glass surface ------------------------------------------------------- */
.y2k-glass {
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(244,245,251,.32));
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: inset 0 2px 1px rgba(255,255,255,.95), inset 0 -8px 16px rgba(108,121,163,.16), 0 10px 26px rgba(79,86,160,.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 999px;
}

/* ---- the mock nav: over the empty sky, left-aligned ---------------------- */
.y2k-nav {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px clamp(10px, 1.6cqi, 22px);
  padding: clamp(16px, 1.9cqi, 28px) clamp(18px, 3cqi, 44px) 0;
}
.y2k-mark {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 clamp(20px, 2.6cqi, 36px);
  color: var(--y2k-ink); text-decoration: none;
  font: 800 16px/1 var(--y2k-face); letter-spacing: .3em; text-transform: uppercase;
}
.y2k-toc { display: flex; gap: 2px; margin: 0; padding: 5px; list-style: none; }
.y2k-toc a {
  display: flex; align-items: center; min-height: 38px;
  padding: 0 clamp(11px, 1.3cqi, 18px); border-radius: 999px;
  color: var(--y2k-ink); text-decoration: none;
  font: 800 13px/1 var(--y2k-face); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.y2k-toc a:hover { background: rgba(255,255,255,.5); }
/* the lead link takes the gloss: rank by gloss, not by colour */
.y2k-toc a.y2k-toc__lead {
  background: linear-gradient(180deg, #fff 0%, #F4F5FB 45%, #C8D0E6 52%, #E8EBF6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(108,121,163,.35), 0 3px 8px rgba(79,86,160,.28);
}

/* A full-width nav bar (founder, 2026-10-01): the wordmark at the left, the
   sections at the right, on one row. With the rail showing, the fixed action
   cluster holds the top-right, so the bar runs just below it. */
.y2k-nav { flex-wrap: nowrap; justify-content: space-between; }
@media (min-width: 60.0625rem) {
  .y2k-nav { /* nav on top, the action bar in the room under its row (founder, 2026-10-01) */ padding-top: 10px; padding-bottom: calc(3rem + var(--s2, 0.5rem)); }
}

/* ---- copy: pulled up onto the render's floor ----------------------------- */
.y2k-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: calc(-1 * (1 - var(--y2k-floor-line)) * 100cqi * 941 / 1672 + 8px);
  padding: 0 20px clamp(40px, 4cqi, 64px);
}
.y2k-panel {
  padding: 14px clamp(22px, 3cqi, 40px) 16px; max-width: min(94%, 700px);
  background: rgba(244,245,251,.92); border: 1.5px solid #fff; border-radius: 30px;
  box-shadow: inset 0 2px 1px #fff, 0 8px 22px rgba(79,86,160,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.y2k-kind { margin: 0 0 6px; font: 700 13px/1.3 var(--y2k-face); color: var(--y2k-chrome); letter-spacing: .02em; }
.y2k-lede { margin: 0; font: 700 clamp(18px, 1.9cqi, 25px)/1.35 var(--y2k-face); text-wrap: balance; }
.y2k-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.y2k-tags li {
  padding: 9px 18px; background: rgba(244,245,251,.92); border: 1.5px solid #fff; border-radius: 999px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(79,86,160,.12);
  font: 700 15px/1 var(--y2k-face);
}
.y2k-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 22px; margin-top: 22px;
  padding: 22px clamp(34px, 4.2cqi, 60px); border-radius: 999px;
  text-decoration: none; color: var(--y2k-ink); white-space: nowrap;
  font: 900 clamp(16px, 1.5cqi, 20px)/1 var(--y2k-face); letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EBF6 46%, #B9C6F2 54%, #DCE3FB 100%);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: inset 0 2px 0 #fff, inset 0 -6px 14px rgba(59,63,216,.22), 0 0 0 5px rgba(166,200,255,.45), 0 14px 28px rgba(59,63,216,.25);
}
/* a highlight travels across the button; the words stay still */
.y2k-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  pointer-events: none;
}
.y2k-cta svg { width: 22px; height: 22px; flex: none; }
.y2k-cta:active { box-shadow: inset 0 3px 8px rgba(59,63,216,.3), 0 0 0 5px rgba(166,200,255,.45), 0 6px 14px rgba(59,63,216,.2); }
@media (prefers-reduced-motion: no-preference) {
  .y2k-cta::after { animation: y2k-sheen 5.5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .y2k-cta::after { display: none; } }
@keyframes y2k-sheen { 0%, 55% { left: -40%; } 100% { left: 120%; } }
@media (forced-colors: active) {
  .y2k-glass, .y2k-panel, .y2k-tags li, .y2k-cta { border: 1px solid CanvasText; }
}

/* ---- narrow: nav in flow below the cluster, art square around the lettering */
@container (max-width: 760px) {
  .y2k-nav { position: relative; flex-direction: column; align-items: flex-start; row-gap: 12px; padding: 18px 16px 4px; }
  .y2k-mark { min-height: 44px; padding: 0 20px; font-size: 14px; }
  .y2k-toc { max-width: 100%; flex-wrap: wrap; }
  .y2k-toc a { min-height: 36px; font-size: 12px; letter-spacing: .04em; padding: 0 clamp(8px, 2.4cqi, 12px); }
  .y2k-art { aspect-ratio: 1 / 1; margin-top: -40px; }
  .y2k-art img {
    object-position: 52% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  }
  .y2k-center { margin-top: -26cqi; }
  .y2k-kind { text-wrap: balance; }
  .y2k-cta { letter-spacing: .08em; gap: 14px; padding: 20px 30px; }
}
/* Smallest phones: the five links still fit on one row. */
@container (max-width: 350px) {
  .y2k-toc { padding: 4px; border-radius: 24px; }
  .y2k-toc a { padding: 0 6px; font-size: 11px; letter-spacing: .02em; }
}
/* Narrow hero beside the rail (about 960-1008px): the action cluster holds
   the top, so the nav starts under it. Below 60rem the cluster sits at the
   foot of the screen and the nav starts at the top. */
@media (min-width: 60.0625rem) {
  @container (max-width: 760px) {
    .y2k-nav { /* nav on top, the action bar in the room under its row (founder, 2026-10-01) */ padding-top: 10px; padding-bottom: calc(3rem + var(--s2, 0.5rem)); }
  }
}

/* The render was generated (founder, 2026-10-01); it says so on the hero. */
.y2k-hero { position: relative; }
.y2k-gen { position: absolute; z-index: 3; right: 16px; bottom: 10px; margin: 0; font: 600 11px/1.3 "Nunito X", system-ui, sans-serif; letter-spacing: .02em; color: rgba(40, 44, 90, .88); }
@media (max-width: 760px) { .y2k-gen { position: static; padding: 8px 16px 0; text-align: right; } }
