/* Luume Labs — home prototype. One dark surface; colour comes only from the LEDs. */

/* Mona Sans (SIL OFL, mona-sans-OFL.txt), served from this site: widths 100-125%, weights 400-800, optical size 0-100,
   Latin, as woff2. Loading it from Google Fonts would send every visitor's IP address to Google. */
@font-face {
  font-family: "Mona Sans";
  src: url("mona-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #08090c;
  --surface: #0e1015;
  --surface-2: #13151b;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --text-2: #9aa0ab;
  --text-3: #7c828d;
  --live: #4cc38a;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --wrap: 1120px;
  --gutter: 20px;
  --r: 8px;
  --r-lg: 14px;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); }

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(8, 9, 12, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 60px; }
.nav__links { display: flex; gap: var(--s-6); font-size: 14px; }
.nav__links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav__links a { color: var(--text-2); text-decoration: none; transition: color 150ms ease-out; }
.nav__links a:hover { color: var(--text); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 var(--s-5); border-radius: var(--r);
  font: 550 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn--sm { height: 36px; padding: 0 var(--s-4); font-size: 14px; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { color: var(--text); border: 1px solid var(--hair-2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.03); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* ---- hero --------------------------------------------------------------- */
.hero { padding-block: var(--s-8) var(--s-9); }
.hero__grid { display: grid; gap: var(--s-7); }
.hero__panel {
  width: min(232px, 64vw); justify-self: center; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  cursor: pointer; border-radius: var(--r-lg); touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.hero__panel:focus-visible { outline-offset: 8px; }

/* The board is the logo. Its LED button makes it spell the name: on a desktop it slides open
   sideways; on a phone it reshapes into a full-width LED sign (site.js draws that on a canvas). */
.hero__brand { position: relative; display: grid; justify-items: center; gap: 14px; }
.namepanel { position: absolute; left: 0; display: none; pointer-events: none; z-index: 2; }
.hero__spell {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--hair); -webkit-tap-highlight-color: transparent;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.hero__spell i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); transition: transform 160ms ease-out; }
.hero__spell:hover { border-color: var(--hair-2); background: var(--surface-2); }
.hero__spell:hover i { transform: scale(1.25); }
/* Until it has been used this visit, the button's LEDs breathe one after another: an invitation. */
.hero__spell:not(.is-used):not([aria-pressed="true"]) i { animation: spell-hint 2400ms ease-in-out infinite; }
.hero__spell:not(.is-used):not([aria-pressed="true"]) i:nth-child(2) { animation-delay: 180ms; }
.hero__spell:not(.is-used):not([aria-pressed="true"]) i:nth-child(3) { animation-delay: 360ms; }
.hero__spell:not(.is-used):not([aria-pressed="true"]) i:nth-child(4) { animation-delay: 540ms; }
@keyframes spell-hint {
  0%, 55%, 100% { transform: scale(1); box-shadow: 0 0 6px var(--c); opacity: 0.8; }
  25% { transform: scale(1.4); box-shadow: 0 0 12px 2px var(--c); opacity: 1; }
}
.hero__spell[aria-pressed="true"] i { animation: spell-blink 900ms ease-in-out infinite; }
.hero__spell[aria-pressed="true"] i:nth-child(2) { animation-delay: 120ms; }
.hero__spell[aria-pressed="true"] i:nth-child(3) { animation-delay: 240ms; }
.hero__spell[aria-pressed="true"] i:nth-child(4) { animation-delay: 360ms; }
@keyframes spell-blink { 50% { opacity: 0.35; } }
.hero__panel { position: relative; isolation: isolate; }
.hero__panel .panel { position: relative; z-index: 1; transform-origin: 50% 50%; will-change: transform; }
/* The white glow a fully wound board throws. Behind the board, blurred wide, and at 0 until the
   script heats it; a plain box so no browser clips it at the SVG's edge. */
.halo {
  position: absolute; inset: 3%; z-index: 0; border-radius: 16%;
  background: #ffffff; filter: blur(34px); opacity: 0; transform: scale(0.9);
  pointer-events: none; will-change: opacity, transform;
}
.panel { display: block; width: 100%; height: auto; overflow: visible; }
h1 {
  margin: 0; max-width: 15ch;
  font-size: clamp(2.5rem, 1.55rem + 4.4vw, 4.75rem); line-height: 1.02;
  font-weight: 640; font-stretch: 108%; letter-spacing: -0.038em; text-wrap: balance;
}
h1 span { color: var(--text-3); }
.lede { margin: var(--s-5) 0 var(--s-6); max-width: 34ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.5; color: var(--text-2); }

/* The L lights along its own path, once; then the script takes the board over. With no
   script, or reduced motion, it is simply lit. */
html.js-motion .panel:not(.is-live) .on { opacity: 0; animation: led-on 260ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; animation-delay: calc(var(--t) * 24ms + 240ms); }
@keyframes led-on { from { opacity: 0; } to { opacity: 1; } }

/* ---- products ----------------------------------------------------------- */
.products { padding-block: 0 var(--s-9); }
h2 {
  margin: 0 0 var(--s-6);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.1;
  font-weight: 620; font-stretch: 105%; letter-spacing: -0.03em; text-wrap: balance;
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.cards > li { display: grid; }
.card {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-2);
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none; color: var(--text);
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}
.card:hover { border-color: var(--hair-2); background: var(--surface-2); }
.card:focus-visible { outline-offset: 2px; border-radius: var(--r-lg); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.glyph { width: 30px; height: auto; display: block; overflow: visible; transition: filter 180ms ease-out; }
.card:hover .glyph { filter: brightness(1.18); }
.card__icon { width: 44px; height: 44px; display: block; border-radius: 22%; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); }
.card__name { font-size: 1.1875rem; font-weight: 620; font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.25; }
.card__line { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 40ch; }
.card__more { margin-top: var(--s-4); font-size: 14px; font-weight: 550; color: var(--hue); }
.card__more span { display: inline-block; transition: transform 180ms ease-out; }
.card:hover .card__more span { transform: translateX(3px); }

/* Status by shape, not colour: a solid dot is live, a ringed dot is live but quiet, a hollow ring is coming. */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; line-height: 1; padding-top: 2px; }
.status i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status[data-s="live"] i { background: var(--live); box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.16); }
.status[data-s="quiet"] i { background: var(--text-3); box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--text-3); }
.status[data-s="soon"] i { border: 1.5px solid var(--text-3); }

/* ---- close -------------------------------------------------------------- */
.close { border-top: 1px solid var(--hair); padding-block: var(--s-9); }
.close__inner { display: grid; gap: var(--s-5); justify-items: start; }
.close h2 { margin: 0; max-width: 18ch; }
.mail { color: var(--text-2); font-size: 15px; user-select: all; padding-inline: var(--s-2); }

/* ---- footer ------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hair); padding-block: var(--s-6) calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); }
.foot__row { display: grid; gap: var(--s-4); font-size: 13px; color: var(--text-3); }
.legal { margin: 0; line-height: 1.6; }
.foot nav { display: flex; gap: var(--s-5); }
.foot nav a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--text); }

/* ---- product pages ------------------------------------------------------ */
.product { --hue: var(--text); }
.phero { padding-block: var(--s-8) var(--s-8); }
.phero__grid { display: grid; gap: var(--s-6); }
.phero__glyph { width: 76px; }
.phero__glyph .glyph { width: 100%; }
.phero__copy { display: grid; justify-items: start; gap: var(--s-4); }
.phero h1 {
  max-width: none; font-size: clamp(2.75rem, 1.8rem + 4.6vw, 5rem);
}
.phero .lede { margin: 0; max-width: 30ch; color: var(--text); }
.for { margin: 0; max-width: 46ch; color: var(--text-2); font-size: 15px; }
.phero .actions { margin-top: var(--s-3); }

.pblock { border-top: 1px solid var(--hair); padding-block: var(--s-8); }
.pblock__grid { display: grid; gap: var(--s-5); }
.pblock__body { display: grid; gap: var(--s-6); }
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; font-stretch: 100%;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--hue); line-height: 1.4;
}
.problem {
  margin: 0; max-width: 24ch; text-wrap: balance;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); line-height: 1.2;
  font-weight: 560; font-stretch: 104%; letter-spacing: -0.025em;
}

/* Each point is marked by one lit LED in the product's colour. */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); max-width: 56ch; }
.points li { display: grid; grid-template-columns: 18px 1fr; column-gap: var(--s-3); row-gap: 2px; }
.points li::before {
  content: ""; grid-row: 1 / span 3; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%;
  background: var(--hue); box-shadow: 0 0 8px var(--hue);
}
.points b { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.points span { color: var(--text-2); font-size: 15px; }
.points small { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.note { margin: 0; max-width: 56ch; padding: var(--s-4) var(--s-5); border: 1px solid var(--hair); border-radius: var(--r); color: var(--text-2); font-size: 14.5px; }
.note--here { border-color: color-mix(in srgb, var(--hue) 40%, transparent); }
.note--here b { color: var(--text); font-weight: 600; }

/* Examples: one real moment of the product with made-up data, always labelled. */
.ex { margin: 0; max-width: 460px; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); display: grid; gap: var(--s-3); }
.ex__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.ex__title { font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ex__body { margin: 0; color: var(--text-2); font-size: 14.5px; }
.ex__foot { margin: 0; font-size: 13px; color: var(--hue); }
.ex__timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ex__timeline li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--hair); font-size: 14.5px; }
.ex__timeline span { color: var(--text-2); }
.ex__timeline b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ex__timeline em { grid-column: 1 / -1; font-style: normal; font-size: 12.5px; color: var(--text-3); }
.ex__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ex__table td { padding: var(--s-3) 0; border-top: 1px solid var(--hair); color: var(--text-2); }
.ex__table td:first-child { color: var(--text); }
.ex__table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.ex__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: 14.5px; color: var(--text-2); }
.ex__rows li { display: flex; gap: var(--s-3); align-items: baseline; }
.ex__pill { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--bg); background: var(--hue); }
.ex__pill--open { background: none; color: var(--text-2); border: 1px dashed var(--text-3); }

/* ---- wider screens ------------------------------------------------------ */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > li:last-child { grid-column: 1 / -1; }
  .nav__links { display: flex; }
}
@media (min-width: 1000px) {
  .hero { padding-block: var(--s-10) var(--s-10); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .hero__brand { justify-items: start; }
  .hero__panel { width: 200px; justify-self: start; }
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-4); }
  .cards > li { grid-column: span 2; }
  .cards > li:nth-child(-n+2) { grid-column: span 3; }
  .cards > li:last-child { grid-column: span 2; }
  .card { padding: var(--s-6); min-height: 248px; }
  .close__inner { grid-template-columns: 1fr auto; align-items: end; }
  .foot__row { grid-template-columns: 1fr auto; align-items: center; }
  .phero { padding-block: var(--s-10) var(--s-9); }
  .phero__grid { grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .phero__glyph { width: 120px; padding-top: 10px; }
  .pblock { padding-block: var(--s-9); }
  .pblock__grid { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); }
  .pblock__body { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; gap: var(--s-8); }
  .pblock__body > :only-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .panel .on { opacity: 1 !important; }
}

/* ---- contact and legal pages -------------------------------------------------------------- */
.page { padding-block: var(--s-8) var(--s-9); }
.page__grid { display: grid; gap: var(--s-7); }
.page h1 { font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem); max-width: none; }
.page .lede { margin: var(--s-4) 0 0; max-width: 40ch; }
.aside { margin: var(--s-4) 0 0; color: var(--text-3); font-size: 15px; }
.aside .mail { padding: 0; color: var(--text-2); }

.contact { display: grid; gap: var(--s-5); max-width: 560px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: 14px; font-weight: 550; color: var(--text); }
.req { color: var(--text-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--hair-2);
  font: 400 16px/1.4 var(--font); /* 16 px: iOS zooms into anything smaller */
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: none; padding-right: 36px; }
.field:has(select) { position: relative; }
.field:has(select)::after { content: ""; position: absolute; right: 16px; bottom: 21px; width: 7px; height: 7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.field [aria-invalid="true"] { border-color: #ff7a7a; }
.field__error { margin: 0; font-size: 13.5px; color: #ff9a9a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__foot { display: grid; gap: var(--s-3); justify-items: start; }
.fine { margin: 0; font-size: 13px; color: var(--text-3); max-width: 46ch; }
.fine a { color: var(--text-2); }
.contact__status { margin: 0; padding: var(--s-4) var(--s-5); border-radius: 10px; border: 1px solid var(--hair); background: var(--surface); font-size: 15px; }
.contact__status.is-ok { border-color: rgba(76, 195, 138, 0.5); color: #b7f0d2; }
.contact__status.is-error { border-color: rgba(255, 122, 122, 0.45); color: #ffc2c2; }
button.btn { border: 0; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.prose .wrap { max-width: 720px; }
.prose h2 { margin: var(--s-7) 0 var(--s-3); font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; }
.prose p { margin: 0 0 var(--s-4); color: var(--text-2); max-width: 64ch; }
.prose .lede { color: var(--text); }
.prose .mail { padding: 0; color: var(--text); }
.updated { margin-top: var(--s-7) !important; font-size: 13px; color: var(--text-3) !important; }

@media (min-width: 1000px) {
  .page__grid { grid-template-columns: minmax(0, 360px) minmax(0, 560px); gap: var(--s-9); align-items: start; }
}

/* Roster's page: the app's own icon where the other products show their LED glyph, and the
   shelf of games, one row each, the lead game marked. */
.phero__icon { width: 96px; }
.phero__icon img { display: block; width: 100%; height: auto; border-radius: 22%; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); }
.shelf { display: grid; gap: var(--s-5); max-width: 56ch; }
.shelf__intro { margin: 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; max-width: 48ch; }
.games { list-style: none; margin: 0; padding: 0; display: grid; }
.games li { display: grid; gap: 2px; padding: var(--s-3) 0; border-top: 1px solid var(--hair); }
.games li:first-child { border-top: 0; padding-top: 0; }
.games b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.games em { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hue); white-space: nowrap; }
.games span { color: var(--text-2); font-size: 15px; }
.prose a { color: var(--text); text-decoration-color: var(--text-3); text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .phero__icon { width: 120px; padding-top: 10px; }
}
