/* LongDev — glass pass: neutral greys, rounded glass panels and pill controls.
   Orange is kept for actions and progress only. */
:root {
  color-scheme: dark; /* dark-only by design: the whole LongDev brand is dark */

  --bg: #161616;
  --surface: #1c1c1c;
  --chip: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);       /* soft separators */
  --track: rgba(255, 255, 255, .07);      /* empty stage segment */
  --seg-edge: rgba(255, 255, 255, .26);   /* its outline, about 2.6:1 on the page */
  --text: #ededed;      /* 15.5:1 */
  --muted: #a3a3a3;     /* 7.2:1 */
  --orange: #ff9d3c;    /* 8.7:1 */
  --orange-head: #ffc27a;
  --green: #7ad694;

  /* glass */
  --glass: rgba(34, 34, 34, .48);
  --glass-strong: rgba(30, 30, 30, .62);
  --glass-hover: rgba(255, 255, 255, .10);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .12);   /* lit top edge */
  --glass-shadow: 0 18px 40px -24px rgba(0, 0, 0, .75);
  --blur: blur(20px) saturate(1.35);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif; /* headline and section titles */
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rule: 1px solid var(--line);
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
section[id] { scroll-margin-top: 76px; } /* clear the sticky header when jumping to a section */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  /* the editor grid, barely there */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* a faint warm light for the glass to pick up */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 10%, rgba(255, 157, 60, .10), transparent 70%),
    radial-gradient(50vw 45vh at 5% 70%, rgba(150, 170, 200, .05), transparent 70%);
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--orange); color: var(--bg); padding: 8px 14px; font-weight: 700; border-radius: 999px;
}
.skip:focus { left: 8px; z-index: 30; }

/* shared glass surface */
.glass, .now, .panel, .top nav, .filters {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}

/* ---------- header: a floating glass bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  padding: 12px 0;
}
.top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wordmark {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px -12px rgba(255, 157, 60, .6);
}
.top nav {
  display: flex; gap: 2px;
  padding: 4px;
  border-radius: 999px;
}
.top nav a {
  display: inline-flex; align-items: center;
  min-height: 36px;
  padding: 0 clamp(12px, 1.8vw, 18px);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.top nav a:hover { color: var(--text); background: var(--glass-hover); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(56px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.4vw, 5.8rem);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.01em;
}
.intro {
  margin: 32px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--glass-hover); }
.btn.primary {
  color: var(--bg);
  background: linear-gradient(to bottom, #ffb062, var(--orange));
  border-color: rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 34px -14px rgba(255, 157, 60, .7);
}
.btn.primary:hover { background: linear-gradient(to bottom, #ffc27a, #ffa84f); }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* "On the bench" panel */
.now { margin: 0; border-radius: 20px; overflow: hidden; }
.now figcaption {
  padding: 14px 22px;
  border-bottom: var(--rule);
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
}
.bars { list-style: none; margin: 0; padding: 20px 22px 24px; display: grid; gap: 20px; }
.bars li { display: grid; gap: 8px; }
.bars .row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.bars .row span:first-child { font-weight: 600; }
.bars .row span:last-child { color: var(--muted); white-space: nowrap; font-family: var(--mono); font-size: .85rem; }
.bars li:nth-child(n+2) { padding-left: 24px; } /* parent + indented children, like the brand mark */

/* continuous bar, placeholder art only */
.track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.fill {
  position: absolute; inset: 0 auto 0 0;
  width: var(--p, 0%);
  border-radius: inherit;
  background: var(--orange);
}
.fill.done { background: var(--text); }

/* segmented stage bar: one pill per roadmap stage */
.seg {
  display: grid;
  grid-template-columns: repeat(var(--stages, 5), 1fr);
  gap: 4px;
  height: 12px;
}
.seg i {
  position: relative;
  border-radius: 999px;
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--seg-edge);
}
.seg i.on {
  background: linear-gradient(to bottom, #ffb062, var(--orange));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 12px -2px rgba(255, 157, 60, .45);
}
.seg i.current::after { /* the bright head on the stage being worked on */
  content: "";
  position: absolute; right: 2px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%;
  background: #fff3e3;
}
.seg.done i { background: var(--text); box-shadow: none; }
.seg.done i::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* the one orchestrated moment: hero segments light up in order */
  .now .seg i.on { animation: seg-on .3s ease-out backwards; animation-delay: calc(var(--i) * 140ms + .2s); }
  .now li:nth-child(2) .seg i.on { animation-delay: calc(var(--i) * 140ms + .35s); }
  .now li:nth-child(3) .seg i.on { animation-delay: calc(var(--i) * 140ms + .5s); }
  @keyframes seg-on { from { background: var(--track); box-shadow: inset 0 0 0 1px var(--seg-edge); } }
}

/* ---------- section blocks ---------- */
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}
.block-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.block h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.005em;
  line-height: .95;
}
.block-note { margin: 0; color: var(--muted); max-width: 46ch; }

/* filters: a glass pill with pill buttons */
.filters { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; }
.filters button {
  font: inherit; font-size: .95rem; font-weight: 600;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.filters button:hover { color: var(--text); background: var(--glass-hover); }
.filters button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--text);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(0, 0, 0, .8);
}
@media (prefers-reduced-motion: reduce) { .filters button { transition: none; } }

/* ---------- asset grid: glass cards with room between them ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.asset {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--glass-edge);
  background: rgba(28, 28, 28, .55);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--glass-hi), var(--glass-shadow);
}
/* the glass picks up colour from the card's own art, blurred behind it */
.asset::before {
  content: "";
  position: absolute; inset: -25%;
  z-index: -1;
  background: var(--art, radial-gradient(circle at 30% 25%, rgba(255, 157, 60, .45), transparent 60%)) center / cover no-repeat;
  filter: blur(56px) saturate(1.5);
  opacity: .4;
}
.asset[hidden] { display: none; }
.shot {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 8px 8px 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(20, 20, 20, .6);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot.blank {
  display: grid; grid-template-columns: 1fr; align-content: center; gap: 10px;
  padding: 0 18%;
}
.shot.blank .track { height: 12px; }
.shot.blank .track:nth-child(n+2) { margin-left: 14%; }

.asset-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.asset h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
}
.status {
  font-family: var(--mono);
  font-size: .75rem; font-weight: 500; letter-spacing: 0;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, .04);
}
.status.live, .status.free { color: var(--green); }
.status.soon, .status.review { color: var(--text); }
.status.building { color: var(--muted); border-style: dashed; }

.asset p { margin: 10px 0 0; color: var(--muted); max-width: var(--measure); }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li {
  font-family: var(--mono);
  font-size: .78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #d4d4d4;
}
.asset .go {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.asset .go:hover { color: var(--orange-head); }

/* ---------- roadmap: one glass panel ---------- */
.panel { border-radius: 20px; }
.roadmap-panel { padding: 18px clamp(18px, 2.4vw, 28px) 4px; }
.stage-scale, .roadmap { list-style: none; margin: 0; padding: 0; }
.stage-scale {
  display: grid;
  grid-template-columns: repeat(var(--stages, 5), 1fr);
  gap: 4px; /* matches .seg so labels sit over their pills */
  margin-left: calc(min(34%, 360px) + 32px);
  padding-bottom: 12px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: .78rem;
}
.stage-scale li { padding-left: 2px; }

.roadmap li {
  display: grid;
  grid-template-columns: min(34%, 360px) 1fr;
  gap: 8px 32px;
  align-items: center;
  padding: 20px 0;
  border-top: var(--rule);
}
.roadmap h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.roadmap p { margin: 4px 0 0; color: var(--muted); font-size: .97rem; max-width: 48ch; }
.roadmap .stage-label { display: none; font-family: var(--mono); color: var(--orange); font-size: .85rem; }
.roadmap .seg { height: 14px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.about-body { border-left: var(--rule); padding-left: clamp(20px, 3vw, 40px); }
.about-body p { margin: 0 0 1.1em; max-width: var(--measure); color: #cfcfcf; font-size: 1.12rem; }
.about-body p:first-child { color: var(--text); font-size: 1.35rem; line-height: 1.4; font-weight: 500; }
.about-body p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.foot { border-top: var(--rule); }
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: .95rem;
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { text-decoration: underline; text-underline-offset: 4px; }
.foot-links a:hover { color: var(--text); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about-body { border-left: 0; padding-left: 0; }
  .stage-scale { display: none; }
  .roadmap-panel { padding-top: 4px; }
  .roadmap li { grid-template-columns: 1fr; }
  .roadmap li:first-child { border-top: 0; }
  .roadmap .stage-label { display: block; margin-bottom: 6px; }
  .filters button { min-height: 44px; }
  .top nav a { min-height: 44px; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 1.05rem; padding: 0 14px; }
  .top nav a { padding: 0 10px; font-size: .95rem; }
  .bars { padding: 16px; }
}

/* Reduce Transparency: glass becomes solid */
@media (prefers-reduced-transparency: reduce) {
  .glass, .now, .panel, .top nav, .filters, .btn:not(.primary), .asset {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .top { background: var(--bg); }
  .asset::before, body::before { display: none; }
}

/* Increase Contrast */
@media (prefers-contrast: more) {
  :root {
    --line: #7a7a7a;
    --glass-edge: #7a7a7a;
    --seg-edge: #8a8a8a;
    --track: #2e2e2e;
    --muted: #c2c2c2;
    --glass: rgba(24, 24, 24, .92);
  }
}
