[data-site-header] { min-height: 92px; }
html { scrollbar-gutter: stable; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(16px, 2.4vw, 40px);
  border-bottom: 1px solid var(--line, rgba(238, 239, 233, .15));
  background: rgba(12, 13, 11, .88);
  backdrop-filter: blur(16px);
}

.site-header a { color: inherit; text-decoration: none; }
.site-header button { font: inherit; }
.site-header__brand {
  width: fit-content;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.095em;
}
.site-header__brand-dot { color: var(--acid, #c9fb50); font-size: .76em; vertical-align: 8%; padding-left: 1px; }
.site-header__menus { grid-column: 2; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.site-header__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 13px; color: #fff; }
.site-header__nav--secondary { padding-left: 0; border: 0; gap: clamp(18px, 2.4vw, 38px); }
.site-header__nav a, .site-header__nav button, .site-header__cta { transition: color .2s ease, border-color .2s ease; }
.site-header__nav a, .site-header__nav a[aria-current] { color: #fff; }
.site-header__nav a:hover, .site-header__nav button:hover, .site-header__cta:hover { color: var(--acid, #c9fb50); }
.site-header__cta {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.site-header a:focus-visible { outline: 2px solid var(--acid, #c9fb50); outline-offset: 5px; }
.site-header button:focus-visible { outline: 2px solid var(--acid, #c9fb50); outline-offset: 5px; }

.idea-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line, rgba(238, 239, 233, .15));
  color: var(--paper, #eeefe9);
  background: var(--bg, #0c0d0b);
  box-shadow: 0 24px 100px rgba(0, 0, 0, .55);
}
.idea-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.idea-dialog [hidden] { display: none !important; }
.idea-modal { padding: clamp(22px, 5vw, 36px); }
.idea-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.idea-modal__head h2 { margin: 0; font-size: clamp(28px, 6vw, 42px); line-height: 1; letter-spacing: -.07em; }
.idea-modal__close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line, rgba(238, 239, 233, .15)); color: inherit; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.idea-modal__close:hover, .idea-modal__close:focus-visible { border-color: var(--acid, #c9fb50); outline: none; }
.idea-modal__copy { margin: 15px 0 24px; color: var(--muted, #92948b); font-size: 14px; line-height: 1.65; }
.idea-form { display: grid; gap: 16px; }
.idea-field { display: grid; gap: 8px; }
.idea-field > span { color: var(--muted, #92948b); font: 10px var(--mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.idea-field input, .idea-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line, rgba(238, 239, 233, .15)); border-radius: 0; padding: 12px 13px; color: var(--paper, #eeefe9); background: var(--panel, #151713); font: 15px var(--sans, sans-serif); }
.idea-field textarea { min-height: 145px; resize: vertical; line-height: 1.55; }
.idea-field input::placeholder, .idea-field textarea::placeholder { color: #707269; }
.idea-field input:focus, .idea-field textarea:focus { outline: 1px solid var(--acid, #c9fb50); border-color: var(--acid, #c9fb50); }
.idea-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.idea-submit { min-height: 48px; width: fit-content; border: 1px solid var(--acid, #c9fb50); padding: 0 18px; color: var(--bg, #0c0d0b); background: var(--acid, #c9fb50); font-weight: 800; cursor: pointer; }
.idea-submit:disabled { opacity: .65; cursor: wait; }
.idea-submit:focus-visible { outline: 2px solid var(--paper, #eeefe9); outline-offset: 4px; }
.idea-form__status { margin: 0; color: #ffb5a0; font-size: 13px; line-height: 1.5; }
.idea-success { margin: 28px 0 4px; color: var(--acid, #c9fb50); font-size: 16px; line-height: 1.6; }

@media (max-width: 900px) {
  .site-header { column-gap: 16px; }
  .site-header__menus { gap: 20px; }
  .site-header__nav { gap: 16px; }
  .site-header__nav--secondary { padding-left: 0; gap: 16px; }
}

@media (max-width: 640px) {
  [data-site-header] { min-height: 140px; }
  .site-header {
    height: auto;
    min-height: 110px;
    padding: 14px 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 30px 18px 18px;
    row-gap: 8px;
    column-gap: 0;
  }
  .site-header__menus { display: contents; }
  .site-header__brand { grid-column: 1; grid-row: 1; font-size: 34px; }
  .site-header__nav { justify-content: flex-start; gap: 24px; font-size: 11px; }
  .site-header__nav--primary { grid-column: 1 / -1; grid-row: 2; }
  .site-header__nav--secondary { grid-column: 1 / -1; grid-row: 3; padding: 0; border: 0; }
  .idea-modal { padding: 22px 18px; }
  .idea-modal__copy { font-size: 13px; }
}

@media (max-width: 370px) {
  .site-header__nav { gap: 18px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::before, .site-header *::after { transition-duration: .01ms !important; }
}

/* Text links share one colour across the public site. */
a[href]:not(.play-button):not(.article-banner-link):not(.post-rich aside[data-news-banner] a):not(.featured-card-link):not(.project-card):not(.site-header a):not(:has(> .brand-dot)) { color: var(--acid, #c9fb50) !important; text-decoration: none !important; }
a[href]:not(.play-button):not(.article-banner-link):not(.post-rich aside[data-news-banner] a):not(.featured-card-link):not(.project-card):not(.site-header a):not(:has(> .brand-dot)):hover { text-decoration: none !important; }

/* Hide legacy project overlines in pages served by the CMS. */
.eyebrow { display: none; }

.site-header .site-header__nav a[href] { color: #fff !important; }
.site-header .site-header__nav a[aria-current="page"] { color: var(--acid, #c9fb50) !important; }

.site-header a.site-header__brand[href], a[href]:has(> .brand-dot) { color: #fff !important; }

/* Keep the mobile navigation on one line; allow scrolling on narrow screens. */
@media (max-width: 640px) {
  [data-site-header] { min-height: 0; }
  .site-header { min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 34px auto; row-gap: 10px; }
  .site-header__menus { grid-column: 1; grid-row: 2; display: flex; min-width: 0; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; padding: 3px 0; }
  .site-header__menus::-webkit-scrollbar { display: none; }
  .site-header__nav, .site-header__nav--secondary { flex: 0 0 auto; gap: 12px; font-size: 11px; }
  .site-header__nav a, .site-header__nav button { white-space: nowrap; }
}

/* Consistent heading sizes throughout the public site. */
main h2 { font-size: clamp(28px, 3.5vw, 48px) !important; }
main h3 { font-size: clamp(22px, 2.3vw, 30px) !important; }

/* Public headings and their punctuation. */
main h1, main h2, main h3 { color: var(--paper, #eeefe9) !important; }
main .heading-punctuation { color: var(--acid, #c9fb50); }
