/* Fonts are served from this site (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #061a20;
  --ink: #eaf7f8;
  --ink-soft: #a9cbd0;
  --accent: #2fd3b6;
  --amber: #ffbf47;
  --wall-hi: #12434d;
  --wall-lo: #04141a;
  --tile: rgba(160, 220, 230, .07);
  --floor: #03100f;
  --drape-hi: #1aa48f;
  --drape-lo: #0b6b5e;
  --metal: #7d97a0;
  --metal-dark: #3a4f57;
  --panel: rgba(4, 20, 26, .55);
  --panel-edge: rgba(160, 230, 235, .18);
}

/* Light scheme: the room with the lights up */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #dff1f2;
    --ink: #062026;
    --ink-soft: #2c5960;
    --accent: #0b8f7a;
    --amber: #8a5600;
    --wall-hi: #f4fbfb;
    --wall-lo: #b9dadd;
    --tile: rgba(20, 80, 90, .08);
    --floor: #9cc3c6;
    --drape-hi: #43c1ad;
    --drape-lo: #16907e;
    --metal: #8aa3aa;
    --metal-dark: #5d7880;
    --panel: rgba(255, 255, 255, .62);
    --panel-edge: rgba(10, 80, 90, .18);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- the room ---------- */
.room { position: fixed; inset: 0; width: 100%; height: 100%; }
.wall-hi { stop-color: var(--wall-hi); }
.wall-lo { stop-color: var(--wall-lo); }
.drape-hi { stop-color: var(--drape-hi); }
.drape-lo { stop-color: var(--drape-lo); }
.tile-line { fill: none; stroke: var(--tile); stroke-width: 2; }
.floor { fill: var(--floor); }
.floor-edge { stroke: var(--panel-edge); stroke-width: 2; }
.boom { fill: var(--metal-dark); }
.arm { fill: none; stroke: var(--metal-dark); stroke-width: 18; stroke-linecap: round; }
.lamp-shell { fill: var(--metal); }
.leds circle { fill: #fff; opacity: .9; }
.beams { mix-blend-mode: screen; }
.pool { mix-blend-mode: screen; }
.table-post, .table-base { fill: var(--metal-dark); }
.drape-edge { fill: var(--drape-lo); }
.pole { fill: var(--metal-dark); }
.pole-foot { stroke: var(--metal-dark); stroke-width: 10; stroke-linecap: round; }
.bag { fill: rgba(200, 240, 245, .35); stroke: var(--metal); stroke-width: 3; }
.line { fill: none; stroke: rgba(200, 240, 245, .5); stroke-width: 3; }
.bezel { fill: #1b2a30; }
.screen { fill: #020a0c; }
.ecg {
  fill: none;
  stroke: #39ff9c;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: trace 2.4s linear infinite;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; fill: #7fe7c4; }
.label { font-size: 14px; letter-spacing: .08em; }
.small { font-size: 13px; letter-spacing: .06em; fill: #5fb9a0; }
.end { text-anchor: end; }
.amber { fill: #ffbf47; }

@keyframes trace {
  0%   { stroke-dashoffset: 420; opacity: 1; }
  80%  { stroke-dashoffset: 0;   opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: 0; }
}

/* ---------- the sign ---------- */
.sign {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px 0 clamp(16px, 8vw, 140px);
  max-width: 820px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  align-self: flex-start;
  margin: 0 0 1.1rem;
  padding: .45em 1em;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dot {
  width: .6em; height: .6em; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  100% { box-shadow: 0 0 0 .9em transparent; }
}
.wordmark {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.tld { color: var(--accent); font-weight: 600; }
.lede {
  margin: 1.2rem 0 .3rem;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  max-width: 46ch;
}
.sub { margin: 0; color: var(--amber); font-size: clamp(1rem, 2vw, 1.2rem); }
.foot {
  position: fixed;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 1;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
}

/* Phone: the sign sits higher so the table and lights show below */
@media (max-width: 640px) {
  .sign { justify-content: flex-start; padding-top: 31vh; }
  .tld { display: block; }
}
/* Short phones: lift the sign so it clears the table */
@media (max-width: 640px) and (max-height: 720px) {
  .sign { padding-top: 21vh; }
}

@media (prefers-reduced-motion: reduce) {
  .ecg { animation: none; stroke-dashoffset: 0; }
  .dot { animation: none; }
}
