@font-face { font-family: "Panchang"; src: url("/fonts/Panchang-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #f6f6f4;
  --ink: #111111;
  --muted: #6b6b6b;
  --border: #d4d4d0;
  --track: #dcdcd8;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --highlight: #1e3fff;
  --on-highlight: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -12px rgba(17, 17, 17, 0.12);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --display: "Panchang", "Geist", system-ui, sans-serif; /* whatweseek.studio headline face; very wide, so sizes run ~0.7x */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --ink: #fafafa;
    --muted: #9b9b98;
    --border: #2a2a28;
    --track: #2a2a28;
    --glass: rgba(24, 24, 24, 0.6);
    --glass-edge: rgba(255, 255, 255, 0.07);
    --highlight: #4a64ff;
    --shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  }
  .logo { filter: invert(1) hue-rotate(180deg); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* Drifting highlight blobs, same idea as the proposals */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--highlight) 0%, transparent 62%);
  opacity: 0.1; filter: blur(40px);
  animation: drift 28s ease-in-out infinite alternate;
}
.ambient span:first-child { top: -30vmax; right: -20vmax; }
.ambient span:last-child { bottom: -35vmax; left: -25vmax; animation-duration: 36s; opacity: 0.07; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.top, main, .foot { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .top, main, .foot { padding: 0 32px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.logo { height: auto; width: min(240px, 52vw); color: var(--ink); }
.live {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 12px/1 var(--mono); color: var(--muted);
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #18b85f; box-shadow: 0 0 0 0 rgba(24, 184, 95, 0.5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(24, 184, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 184, 95, 0); } }
@media (max-width: 520px) { #live-text { font-size: 0; } #live-text::before { content: "Live"; font-size: 12px; } }

main { flex: 1; padding-bottom: 64px; }

.state { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 12px; color: var(--muted); }
.state h1 { color: var(--ink); font-size: clamp(20px, 3vw, 26px); }
.state p { max-width: 44ch; margin: 0 auto; }
.spinner { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--highlight); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
#job-name { font-size: clamp(24px, 4.2vw, 42px); line-height: 1.1; margin: 12px 0 10px; overflow-wrap: anywhere; }
.lede { margin: 0 0 32px; color: var(--muted); font-size: 18px; max-width: 52ch; }

.status { padding: 28px; }
@media (min-width: 720px) { .status { padding: 36px 40px 40px; } }
.status.bump { animation: bump 1.2s ease; }
@keyframes bump { 20% { box-shadow: 0 0 0 4px var(--highlight), var(--shadow); } }
.status-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
#stage-label { font-size: clamp(20px, 2.8vw, 28px); color: var(--highlight); }
#stage-detail { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.step-count { font-size: clamp(40px, 7vw, 72px); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; }
.step-count .of { color: var(--muted); font-size: 0.4em; letter-spacing: 0; margin-left: 2px; }

/* Six-stage track. --progress is 0..1 for the filled bar */
.track {
  --progress: 0;
  position: relative; list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.track::before, .track::after {
  content: ""; position: absolute; top: 8px; height: 2px; left: calc(100% / 12); border-radius: 2px;
}
.track::before { right: calc(100% / 12); background: var(--track); }
.track::after {
  width: calc((100% - 100% / 6) * var(--progress)); background: var(--highlight);
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.node { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--track); transition: all 0.4s; }
.done .node { background: var(--highlight); border-color: var(--highlight); }
.current .node {
  background: var(--highlight); border-color: var(--highlight);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--highlight) 22%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--highlight) 8%, transparent); } }
.lbl { font: 500 12px/1.2 var(--mono); color: var(--muted); }
.done .lbl { color: var(--ink); }
.current .lbl { color: var(--highlight); font-weight: 600; }
@media (max-width: 560px) {
  /* Vertical timeline on phones */
  .track { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .track::before, .track::after { top: 9px; left: 8px; width: 2px; }
  .track::before { bottom: 9px; right: auto; height: auto; }
  .track::after { height: calc((100% - 18px) * var(--progress)); width: 2px; transition-property: height; }
  .track li { flex-direction: row; text-align: left; gap: 14px; }
  .lbl { font-size: 14px; }
}

.btn {
  display: inline-flex; margin-top: 28px; padding: 12px 20px; border-radius: 999px;
  background: var(--highlight); color: var(--on-highlight); text-decoration: none; font-weight: 500;
}
.btn:hover { filter: brightness(1.1); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 820px) { .specs { grid-template-columns: 1fr 1fr 1.4fr 2fr; } }
.spec { padding: 18px 20px; border-radius: 16px; }
.spec .val { font-weight: 500; font-size: 15px; line-height: 1.35; }
.spec:first-child .val { font: 600 26px/1.1 var(--mono); letter-spacing: -0.03em; }

.proofs-wrap { margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h3 { font-size: 17px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 0; border-top: 2px dashed; }
.sw.safety { color: #2f6bff; }
.sw.trim { color: #e5322d; }
.note { color: var(--muted); max-width: 64ch; margin: 10px 0 24px; font-size: 15px; }
.proofs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.proof { margin: 0; padding: 16px; }
.frame {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 20px;
  border: 0; border-radius: 12px; cursor: zoom-in;
  background: repeating-conic-gradient(var(--track) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
}
.frame img { max-width: 100%; max-height: 100%; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); transition: transform 0.3s; }
.frame:hover img { transform: scale(1.02); }
.proof figcaption { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
dialog::backdrop { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(6px); }
dialog img { display: block; max-width: 96vw; max-height: 92vh; }
dialog .close {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 26px; line-height: 1; cursor: pointer;
}

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
