/* ===========================================================
   GGsaltaire — black / white / orange, dark & sleek
   =========================================================== */

:root {
  --bg: #071018;
  --bg-soft: #0c1622;
  --surface: #101a28;
  --surface-2: #162233;
  --line: rgba(210, 224, 245, 0.1);
  --line-strong: rgba(210, 224, 245, 0.2);

  --text: #e8eef8;
  --text-dim: #9aabc2;
  --text-faint: #6b7c93;

  --orange: #e85d04;
  --orange-bright: #f48c06;
  --orange-soft: rgba(232, 93, 4, 0.12);
  --orange-glow: rgba(232, 93, 4, 0.28);

  --live: #e6392b;
  --online: #e85d04;

  --radius: 6px;
  --radius-lg: 8px;
  --maxw: 1080px;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* night window */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42vw 34vh at 78% 14%, rgba(230, 236, 255, 0.18), transparent 58%),
    radial-gradient(18vw 16vh at 82% 12%, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(70vw 50vh at 20% 110%, rgba(20, 50, 90, 0.22), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #071018 52%, #05080d 100%);
}

.bg-glow { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  font-style: italic;
}
.brand-mark {
  color: var(--orange);
}
.brand-name { color: var(--text); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--orange);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: all 0.15s;
}
.live-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.live-pill.is-live {
  border-color: var(--live);
  color: #fff;
  background: rgba(255, 59, 48, 0.12);
}
.live-pill.is-live .dot {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.studio + .section { padding-top: 1.25rem; }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.6rem;
  line-height: 1.05;
  font-style: italic;
}
.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- studio / hero ---------- */
.studio {
  padding: clamp(2.2rem, 6vw, 4.2rem) 0 0.5rem;
}
.studio-copy {
  text-align: left;
  max-width: 720px;
}
.hero {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.hero-status .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-faint);
}
.hero-status.is-live { color: #fff; border-color: var(--live); background: rgba(255,59,48,0.1); }
.hero-status.is-live .dot { background: var(--live); animation: pulse 1.6s infinite; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(4.2rem, 14vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.hero-title .accent {
  color: var(--orange);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.hero-sub {
  color: var(--text-dim);
  max-width: 540px;
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: #1a1208;
}
.btn-primary:hover { background: var(--orange-bright); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* hero socials */
.hero-socials { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-start; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.social-chip svg { width: 15px; height: 15px; }
.social-chip:hover {
  color: var(--text);
  border-bottom-color: var(--orange);
  background: none;
  transform: none;
}
.social-chip.is-kick { color: #53fc18; }
.social-chip.is-x { color: var(--text); }
.social-chip.is-x svg {
  color: #000;
  background: #000;
  border-radius: 3px;
  padding: 1px;
  box-sizing: content-box;
  overflow: visible;
  stroke: #fff;
  stroke-width: 1.35;
  paint-order: stroke fill;
}
.social-chip.is-facebook { color: #1877f2; }
.social-chip.is-youtube { color: #ff0000; }
.social-chip.is-twitch { color: #9146ff; }

/* ---------- projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.project-card {
  position: relative;
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.15s;
}
.project-card:hover { background: var(--surface); }
.project-card::before,
.project-card::after,
.project-shine { display: none; }

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 1;
}
.project-icon {
  display: grid;
  place-items: center;
  width: auto; height: auto;
  font-size: 1.15rem;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.project-card:hover .project-icon { transform: none; box-shadow: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { color: var(--live); border-color: var(--live); background: rgba(255,59,48,0.1); }
.badge.live .badge-dot { animation: pulse 1.6s infinite; }
.badge.building { color: var(--orange); border-color: var(--orange); background: var(--orange-soft); }
.badge.planned { color: var(--text-dim); }
.badge.shipped { color: #36d399; border-color: #36d399; background: rgba(54,211,153,0.1); }
.badge.live-now { color: #fff; border-color: var(--live); background: rgba(255,59,48,0.16); }
.badge.live-now .badge-dot { background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 1.6s infinite; }

/* card highlighted while its linked stream is live */
.project-card.is-live-now { background: rgba(230, 57, 43, 0.06); }
.project-card.is-live-now .project-icon { box-shadow: none; }

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}
.project-card p { color: var(--text-dim); font-size: 0.97rem; position: relative; z-index: 1; }
.project-tags { margin-top: 1.15rem; display: flex; gap: 0.45rem; flex-wrap: wrap; position: relative; z-index: 1; }
.tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ---------- next stream banner ---------- */
.next-stream {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 1.25rem;
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.next-stream .ns-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}
.next-stream .ns-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.next-stream .ns-when { color: var(--text-dim); font-size: 0.95rem; }
.ns-main { flex: 1; min-width: 200px; }
.ns-countdown {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.next-stream.is-live { border-color: var(--live); background: none; }
.next-stream.is-live .ns-label,
.next-stream.is-live .ns-countdown { color: var(--live); }

/* ---------- schedule ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.day-card {
  padding: 1rem 0.75rem 1.15rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transition: background 0.15s;
  position: relative;
}
.day-card:hover { transform: none; background: var(--surface); }
.day-card.is-today { border-top: 2px solid var(--orange); background: var(--orange-soft); }
.day-card.is-off { opacity: 0.45; }
.day-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.today-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0a0a0a;
  background: var(--orange);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}
.day-time { color: var(--orange); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.day-time.off { color: var(--text-faint); }
.day-content { color: var(--text-dim); font-size: 0.92rem; }

.schedule-note { margin-top: 1.5rem; color: var(--text-faint); font-size: 0.9rem; }
.schedule-note strong { color: var(--text-dim); }
.disclaimer {
  margin-top: 2.25rem;
  max-width: 640px;
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------- connect ---------- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.connect-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s;
}
.connect-card:hover {
  transform: none;
  border-color: var(--orange);
  background: none;
}
.connect-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--orange);
}
.connect-icon svg { width: 24px; height: 24px; }
.connect-icon.is-kick { color: #53fc18; }
.connect-icon.is-x { color: #000; background: #000; }
.connect-icon.is-x svg {
  overflow: visible;
  stroke: #fff;
  stroke-width: 1.35;
  paint-order: stroke fill;
}
.connect-icon.is-facebook { color: #1877f2; }
.connect-icon.is-youtube { color: #ff0000; }
.connect-icon.is-twitch { color: #9146ff; }
.connect-meta .c-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.connect-meta .c-handle { color: var(--text-dim); font-size: 0.9rem; }
.connect-card .c-arrow { margin-left: auto; color: var(--text-faint); transition: transform 0.2s, color 0.2s; }
.connect-card:hover .c-arrow { color: var(--orange); transform: translate(3px, -3px); }

/* ---------- floating Kick player ---------- */
.pip {
  position: fixed;
  z-index: 75;
  left: auto !important;
  top: auto !important;
  right: 1.1rem;
  bottom: 4.7rem;
  width: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
  user-select: none;
  min-width: 220px;
  max-width: min(820px, calc(100vw - 16px));
  transition: right 0.2s ease, bottom 0.2s ease, width 0.18s ease;
}
.pip[hidden] { display: none; }
.pip.is-live { border-color: var(--live); }
.pip-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem 0.4rem 0.65rem;
  background: var(--surface);
  cursor: grab;
}
.pip.is-dragging,
.pip.is-resizing { transition: none; }
.pip.is-dragging .pip-bar { cursor: grabbing; }
.pip.is-dragging iframe,
.pip.is-resizing iframe { pointer-events: none; }
.pip-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.28) 46% 54%, transparent 54% 68%, rgba(255, 255, 255, 0.28) 68% 76%, transparent 76%);
  cursor: nwse-resize;
  z-index: 2;
}
.pip.is-min .pip-resize { display: none; }
.pip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.pip-dot.is-live {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  animation: pulse 1.6s infinite;
}
.pip-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pip-btn {
  width: 26px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.pip-btn:hover { background: var(--surface-2); }
.pip-body { aspect-ratio: 16 / 9; background: #000; }
.pip-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.pip.is-min .pip-body { display: none; }
.pip.is-min,
html.pip-was-min .pip {
  left: auto !important;
  top: auto !important;
  right: 1.1rem;
  bottom: 4.7rem;
  width: auto !important;
  min-width: 0;
  max-width: none;
  transition: none;
}
html.pip-was-min .pip-body,
html.pip-was-min .pip-resize { display: none; }
.page-title { font-size: clamp(2.4rem, 8vw, 4.2rem); }

/* ---------- takes ---------- */
.takes-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.take-card {
  padding: 1.35rem 0 1.45rem;
  border-radius: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.take-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.take-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.take-card time { color: var(--text-faint); font-size: 0.82rem; }
.take-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.4rem;
}
.take-body { color: var(--text-dim); }
.wire-card h3 a { color: inherit; }
.wire-card h3 a:hover { color: var(--orange); }
.news-desk .section-head { margin-top: 0; }

/* ---------- youtube uploads on takes ---------- */
.yt-block { margin-bottom: 2.75rem; }
.yt-block .section-head { margin-bottom: 1.25rem; }
.yt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.yt-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
}
.yt-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05080d;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.yt-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.yt-card:hover .yt-stage img { transform: scale(1.03); }
.yt-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 13, 0.45));
}
.yt-play span {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  background: rgba(5, 8, 13, 0.45);
  color: #fff;
}
.yt-play svg { width: 14px; height: 14px; margin-left: 2px; }
.yt-meta { padding: 0.95rem 1rem 1.1rem; }
.yt-meta time {
  display: block;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}
.yt-meta h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.15;
}
.yt-meta a {
  color: inherit;
  text-decoration: none;
}
.yt-meta a:hover { color: var(--orange); }
.yt-grid.is-empty {
  display: block;
  border: 0;
}
.yt-empty { color: var(--text-dim); padding: 0.2rem 0 1rem; }
.yt-empty a { color: var(--orange); }

/* ---------- markets desk ---------- */
.market-desk { padding-top: 0.5rem; }
.market-ticker {
  margin: 0 0 2.5rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow: hidden;
  position: relative;
}
.market-ticker.is-top {
  margin: 1rem 0 0;
}
.ticker-rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0.85rem 1rem;
  animation: ticker-scroll 42s linear infinite;
}
.ticker-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--bg-soft);
  white-space: nowrap;
  font-size: 0.78rem;
}
.ticker-sym {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ticker-label { color: var(--text-dim); }
.ticker-price {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.ticker-note { color: var(--text-faint); font-size: 0.72rem; }
.ticker-source {
  display: block;
  padding: 0 1rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.market-charts { margin-bottom: 2.75rem; }
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.chart-card {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.chart-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.65rem 0.85rem 0.35rem;
  font-weight: 600;
}
.tv-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: #05080d;
}
.tv-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.market-board { margin-bottom: 2.75rem; }
.board-body { min-height: 4.5rem; }
.board-empty {
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  padding: 1.25rem 1rem;
}
.board-card {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 1.25rem 1.15rem 1.35rem;
}
.board-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.board-date {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.board-updated { color: var(--text-faint); font-size: 0.78rem; }
.board-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}
.board-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}
.board-lines li {
  color: var(--text-dim);
  padding-left: 0.9rem;
  position: relative;
}
.board-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.board-sources { color: var(--text-faint); font-size: 0.78rem; }

#yt-uploads { min-height: 12rem; }
#yt-uploads .yt-grid.is-empty {
  min-height: 8rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  padding: 1.5rem 1rem;
}

/* ---------- apps ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.app-card {
  padding: 0 0 1.4rem;
  border-radius: 0;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #071018;
  border-bottom: 1px solid var(--line);
}
.app-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.app-preview.is-embed {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #071018;
}
.app-preview.is-embed img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.app-preview.is-embed iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.app-preview.is-embed.is-blocked iframe {
  display: none;
}
.app-preview-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.app-card:hover .app-preview:not(.is-embed) img { transform: scale(1.03); }
.app-card .project-top,
.app-card h3,
.app-card .app-url,
.app-card p,
.app-card .app-cta {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.app-card .project-top { padding-top: 1.1rem; }
.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  font-style: italic;
  margin: 0.35rem 0 0.45rem;
}
.app-card h3 a { color: inherit; text-decoration: none; }
.app-card h3 a:hover { color: var(--orange); }
.app-url {
  display: block;
  color: var(--orange);
  font-size: 0.88rem;
  margin: -0.15rem 0 0.55rem;
  text-decoration: none;
}
.app-url:hover { text-decoration: underline; }
.app-card p { color: var(--text-dim); }
.app-cta { margin-top: 1.2rem; }

.btn.is-disabled,
.btn.is-disabled:hover {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1rem, 4vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  letter-spacing: -0.02em;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.footer-title .accent { color: var(--orange); text-shadow: 0 0 18px var(--orange-glow); }
.footer-copy { color: var(--text-dim); font-size: 0.92rem; }
.footer-tag { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* ---------- Grok bot ---------- */
.gg-bot-toggle {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  border-radius: 4px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #1a1208;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: none;
}
.gg-bot-toggle:hover { transform: none; box-shadow: none; background: var(--orange-bright); }
.gg-bot-toggle-ic { font-size: 1.05rem; }

.gg-bot {
  position: fixed;
  right: 1.1rem;
  bottom: 4.6rem;
  z-index: 80;
  width: min(400px, calc(100vw - 1.4rem));
  height: min(560px, calc(100vh - 7rem));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.gg-bot[hidden] { display: none; }

.gg-bot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--orange-soft), transparent 70%);
}
.gg-bot-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}
.gg-bot-head .accent { color: var(--orange); }
.gg-bot-head p { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.15rem; }
.gg-bot-close {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.gg-bot-close:hover { color: var(--text); }

.gg-bot-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.gg-bot-msg {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.gg-bot-msg a { color: var(--orange); text-decoration: underline; }
.gg-bot-msg.bot {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
}
.gg-bot-msg.user {
  align-self: flex-end;
  background: var(--orange);
  color: #0a0a0a;
  font-weight: 600;
}
.gg-bot-msg.is-pending { color: var(--text-faint); font-style: italic; }

.gg-bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 0.65rem;
}
.gg-bot-chip {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.gg-bot-chip:hover { border-color: var(--orange); color: var(--text); }

.gg-bot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid var(--line);
}
.gg-bot-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.65rem 0.95rem;
}
.gg-bot-form input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.gg-bot-form .btn { padding: 0.65rem 1.05rem; font-size: 0.88rem; }

@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-extra { display: none; }
}
@media (max-width: 640px) {
  .ns-countdown { font-size: 1.2rem; }
  .project-grid,
  .app-grid,
  .yt-grid,
  .chart-grid,
  .schedule-grid { grid-template-columns: 1fr; }
  .gg-bot {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.4rem;
  }
}

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