:root {
  color-scheme: light;
  --bg: #f7f1df;
  --ink: #111111;
  --paper: #fffdf3;
  --line: #111111;
  --muted: #49443a;
  --yellow: #ffe45c;
  --blue: #70d6ff;
  --pink: #ff70a6;
  --green: #9cff6e;
  --orange: #ff9f1c;
  --red: #ff4d4d;
  --shadow: 8px 8px 0 #111111;
  --shadow-small: 4px 4px 0 #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px), var(--bg);
  background-size:
    34px 34px,
    34px 34px,
    auto;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 18px clamp(18px, 4vw, 54px);
  border-bottom: 4px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand span span {
  color: #008f5f;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  background: var(--green);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 3px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-small);
  overflow-x: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
  border-color: var(--line);
  background: var(--yellow);
}

main {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 78px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.68fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 24px;
  min-width: 0;
}

.yc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border: 3px solid var(--line);
  background: var(--orange);
  box-shadow: var(--shadow-small);
  font-size: 14px;
  font-weight: 950;
}

.yc-badge span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  background: #ffffff;
  font-weight: 950;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.88;
  font-weight: 1000;
  letter-spacing: 0;
  text-wrap: balance;
}

.cut-word {
  position: relative;
  display: inline-block;
}

.cut-word::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  top: 52%;
  height: 0.08em;
  background: var(--red);
  transform: rotate(-3deg);
  transform-origin: center;
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  padding: 16px;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.45;
}

.hero-video {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(92vw, 1240px);
  max-width: 68%;
  min-height: clamp(360px, 38vw, 560px);
}

.video-launcher {
  position: relative;
  display: grid;
  place-items: center;
  border: 5px solid var(--line);
  background: #171717;
  box-shadow: 16px 16px 0 var(--line);
  overflow: hidden;
}

.video-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(15, 15, 15, 0.05), rgba(15, 15, 15, 0.42)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 8px
    );
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171717;
}

.video-play-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  padding: 0;
  border: 5px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--line);
  cursor: pointer;
  font: inherit;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 1000;
}

.video-play-button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 15px 15px 0 var(--line);
}

.video-play-button:active {
  transform: translate(3px, 3px);
  box-shadow: 7px 7px 0 var(--line);
}

.play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 0;
  background: transparent;
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid var(--line);
}

.demo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 9px 14px;
  border: 4px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-small);
  font-size: 16px;
  font-weight: 1000;
}

.launch-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  border: 4px solid var(--line);

  background: #ffffff;
  box-shadow: 12px 12px 0 var(--line);
}

.panel-heading {
  padding-bottom: 12px;
  border-bottom: 4px solid var(--line);
}

.panel-heading p {
  margin: 0;
  font-size: 26px;
  font-weight: 1000;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  box-shadow: var(--shadow-small);
}

input {
  min-height: 52px;
  padding: 0 14px;
  font-weight: 800;
}

textarea {
  min-height: 154px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  background: #ffffff;
  box-shadow: 6px 6px 0 var(--pink);
}

.cta-button,
.clear-log-button {
  border: 3px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 1000;
  box-shadow: var(--shadow-small);
}

.cta-button {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  padding: 0 18px;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  background: var(--pink);
}

.secondary-button {
  background: var(--blue);
}

.invite-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.invite-row:empty {
  display: none;
}

.join-invite-button {
  width: 100%;
}

.join-slack-button {
  background: var(--green);
}

.join-linear-button {
  background: var(--yellow);
}

button:hover,
.cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

button:disabled,
.cta-button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.cta-button:focus-visible,
button:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: 3px;
}

.live-log-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.live-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.clear-log-button {
  min-height: 32px;
  padding: 0 10px;
  background: #ffffff;
  font-size: 12px;
}

.live-log-list {
  display: grid;
  gap: 8px;
  max-height: 238px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border: 3px solid var(--line);
  background: #171717;
  color: #f8f4df;
  list-style: none;
  box-shadow: var(--shadow-small);
}

.live-log-item,
.empty-log {
  display: grid;
  grid-template-columns: 72px 48px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.live-log-item time {
  color: #b5ad8d;
  font-variant-numeric: tabular-nums;
}

.live-log-level {
  color: var(--green);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 1000;
}

.live-log-message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-log-item small {
  grid-column: 3;
  color: #d7cfaa;
  overflow-wrap: anywhere;
}

.live-log-item.warn .live-log-level {
  color: var(--yellow);
}

.live-log-item.error .live-log-level {
  color: var(--red);
}

.live-log-item.debug .live-log-level {
  color: var(--blue);
}

.empty-log {
  grid-template-columns: 1fr;
  color: #d7cfaa;
}

.process-section,
.command-strip {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 24px;
  margin-top: 46px;
  padding: 26px;
  border: 4px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.07) 1px, transparent 1px), var(--paper);
  background-size: 28px 28px;
  box-shadow: 9px 9px 0 var(--line);
}

.embedded-video {
  position: relative;
  min-height: 340px;
  border: 3px solid var(--line);
  background: #171717;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.embedded-video video,
.video-dialog-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #171717;
  z-index: 1;
}

.video-fallback {
  position: absolute;
  inset: 14px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 20px;
  border: 3px solid var(--line);
  background: var(--blue);
  text-align: center;
  font-weight: 900;
  z-index: 2;
}

.embedded-video.has-video .video-fallback {
  display: none;
}

.video-dialog {
  width: min(900px, calc(100vw - 48px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.video-dialog::backdrop {
  background: rgba(10, 10, 10, 0.76);
}

.video-dialog-shell {
  position: relative;
  width: 100%;
  height: min(540px, calc(100vh - 96px));
  border: 5px solid var(--line);
  background: #171717;
  box-shadow: 16px 16px 0 var(--line);
  overflow: hidden;
}

.video-dialog-shell.has-video .video-fallback {
  display: none;
}

.video-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 4px solid var(--line);
  background: var(--orange);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 1000;
}

.video-close-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}

.video-fallback strong {
  font-size: 28px;
  font-weight: 1000;
}

.video-fallback code {
  display: inline;
  min-height: 0;
  padding: 2px 5px;
  box-shadow: none;
}

.video-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.video-notes span {
  min-height: 40px;
  padding: 10px;
  border: 3px solid var(--line);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 1000;
  text-align: center;
}

.video-notes span:nth-child(2) {
  background: var(--blue);
}

.video-notes span:nth-child(3) {
  background: var(--green);
}

.process-heading p {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.process-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 204px;
  margin: 0;
  padding: 18px;
  border: 4px solid var(--line);
  background: #ffffff;
  box-shadow: 5px 5px 0 var(--line);
}

.process-card:nth-child(1) {
  background: var(--green);
}

.process-card:nth-child(2) {
  background: var(--blue);
}

.process-card:nth-child(3) {
  background: var(--yellow);
}

.process-card:nth-child(4) {
  background: var(--pink);
}

.process-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border: 3px solid var(--line);
  background: #ffffff;
  font-size: 12px;
  font-weight: 1000;
}

.process-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
}

.process-card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.tracking-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.tracking-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 18px;
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 var(--line);
}

.mention-card {
  background: var(--blue);
}

.codex-card {
  background: var(--green);
}

.tracking-card h2 {
  max-width: 520px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.tracking-card p {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.38;
}

.tracking-link {
  width: fit-content;
  min-height: 56px;
  margin-top: 8px;
  border: 4px solid var(--line);
  background: var(--yellow);
}

.codex-live-section {
  display: grid;
  gap: 22px;
  margin-top: 46px;
  padding: 22px;
  border: 4px solid var(--line);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
}

.codex-page-shell {
  min-height: 100vh;
  padding-bottom: 0;
}

.codex-page-shell main {
  width: min(1440px, calc(100% - 28px));
  padding: 14px 0 18px;
}

.codex-live-route {
  min-height: calc(100vh - 114px);
  margin-top: 0;
  padding: 14px;
  background:
    linear-gradient(#f7f1df 31px, transparent 32px),
    linear-gradient(90deg, #f7f1df 31px, transparent 32px), var(--paper);
  background-size: 32px 32px;
  overflow: hidden;
}

.codex-live-heading {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 24px;
  align-items: start;
}

.codex-live-heading h1,
.codex-live-heading h2 {
  max-width: 760px;
}

.codex-live-heading p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.4;
}

.codex-live-board {
  display: grid;
  grid-template-columns: minmax(250px, 0.3fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  height: calc(100vh - 152px);
}

.codex-task-list,
.codex-files-panel,
.codex-editor-panel,
.codex-log-panel,
.codex-diff-panel {
  min-width: 0;
  border: 3px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.codex-task-list {
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100%;
  min-height: 0;
}

.codex-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 3px solid var(--line);
  background: var(--yellow);
  font-weight: 1000;
}

.codex-panel-title small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codex-task-items,
.codex-file-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  padding: 10px;
  overflow: auto;
  overscroll-behavior: contain;
}

.codex-task-items {
  flex: 1;
}

.codex-task-button,
.codex-file-button {
  width: 100%;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.codex-task-button {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.codex-task-button.active,
.codex-file-button.active {
  background: var(--green);
}

.codex-task-button strong,
.codex-file-button strong {
  display: block;
  font-size: 13px;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.codex-task-button span,
.codex-file-button span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.codex-status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border: 2px solid var(--line);
  background: var(--blue);
  color: var(--ink);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.codex-status-pill.codex_running {
  background: var(--pink);
}

.codex-status-pill.pr_open,
.codex-status-pill.closed,
.codex-status-pill.merged {
  background: var(--green);
}

.codex-status-pill.error {
  background: var(--red);
}

.codex-empty {
  margin: 0;
  padding: 12px;
  border: 3px solid var(--line);
  background: var(--paper);
  font-weight: 900;
}

.codex-workbench {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(210px, 0.48fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.codex-status-strip {
  min-height: 48px;
  padding: 12px;
  border: 3px solid var(--line);
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 5px 5px 0 var(--line);
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.codex-work-grid,
.codex-bottom-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
}

.codex-bottom-grid {
  grid-template-columns: 1fr 1fr;
}

.codex-files-panel,
.codex-editor-panel,
.codex-log-panel,
.codex-diff-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.codex-file-list {
  flex: 1;
}

.codex-file-button {
  display: grid;
  gap: 3px;
  padding: 8px;
}

.codex-file-button.changed {
  background: var(--yellow);
}

.codex-code-view,
.codex-log-panel pre,
.codex-diff-panel pre {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 14px;
  overflow: auto;
  background: #171717;
  color: #f8f4df;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
  overscroll-behavior: contain;
  tab-size: 2;
}

.codex-log-panel pre,
.codex-diff-panel pre {
  min-height: 0;
  max-height: none;
}

.codex-token-keyword {
  color: #ff7ab6;
  font-weight: 900;
}

.codex-token-string {
  color: #f9d66b;
}

.codex-token-number {
  color: #90e0ef;
}

.codex-token-comment {
  color: #8f9b8f;
  font-style: italic;
}

.codex-token-function {
  color: #75f0b4;
  font-weight: 850;
}

.codex-diff-add {
  display: block;
  color: #b7f7c0;
  background: rgba(22, 145, 70, 0.22);
}

.codex-diff-remove {
  display: block;
  color: #ffb4b4;
  background: rgba(217, 48, 37, 0.22);
}

.codex-diff-hunk {
  display: block;
  color: #9fd0ff;
  background: rgba(90, 151, 255, 0.18);
}

.codex-log-warn {
  color: #ffd166;
}

.codex-log-error {
  color: #ff8a8a;
  font-weight: 900;
}

.codex-log-command {
  color: #75f0b4;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 3px solid var(--line);
  background: var(--pink);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}
#mentions-kicker {
  width: 100px;
}
#live-kicker {
  width: 122px;
}
h2 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: 0;
}

.section-subheading {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.command-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 4px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-small);
}

.command-card:nth-child(3n + 1) {
  background: var(--yellow);
}

.command-card:nth-child(3n + 2) {
  background: var(--blue);
}

.command-card:nth-child(3n) {
  background: var(--green);
}

.command-card span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 3px solid var(--line);
  background: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.command-card p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

code {
  display: block;
  min-height: 46px;
  padding: 12px;
  border: 3px solid var(--line);
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--line);
  color: var(--ink);
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
}

code:nth-child(3n + 1) {
  background: var(--paper);
}

code:nth-child(3n + 2) {
  background: var(--paper);
}

code:nth-child(3n) {
  background: var(--paper);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
  border-top: 4px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-brand strong {
  display: block;
  font-size: 22px;
  font-weight: 1000;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  min-height: 38px;
  padding: 9px 12px;
  border: 3px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-small);
  font-size: 13px;
  font-weight: 1000;
}

.footer-links a:nth-child(2n) {
  background: var(--yellow);
}

.footer-links a:nth-child(3n) {
  background: var(--blue);
}

@media (max-width: 1040px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .hero,
  .codex-live-heading,
  .codex-live-board,
  .tracking-section,
  .process-section,
  .command-strip {
    grid-template-columns: 1fr;
  }

  .codex-live-route {
    height: auto;
    overflow: visible;
  }

  .codex-live-board {
    height: auto;
  }

  .codex-task-list,
  .codex-workbench {
    height: auto;
  }

  .codex-task-items,
  .codex-file-list {
    max-height: 320px;
  }

  .codex-work-grid,
  .codex-bottom-grid {
    grid-template-columns: 1fr;
  }

  .codex-code-view {
    min-height: 420px;
  }

  .codex-log-panel pre,
  .codex-diff-panel pre {
    min-height: 260px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .process-card::before,
  .process-card::after {
    display: none;
  }

  .launch-panel {
    max-width: 720px;
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 28px, 1380px);
    padding-top: 18px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .nav-links a {
    justify-content: center;
    min-height: 34px;
    padding: 0 4px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .commands-grid,
  .tracking-section,
  .process-grid,
  .video-notes {
    grid-template-columns: 1fr;
  }

  .process-heading p {
    max-width: none;
  }

  .launch-panel,
  .codex-live-section,
  .tracking-card,
  .process-section,
  .command-strip {
    padding: 16px;
    box-shadow: 7px 7px 0 var(--line);
  }

  .codex-live-route {
    padding: 12px;
  }

  .codex-code-view {
    min-height: 340px;
  }

  .embedded-video {
    min-height: 240px;
  }

  .hero-video {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    box-shadow: none;
  }

  .video-play-button {
    width: 82px;
    height: 82px;
  }

  .video-dialog {
    width: calc(100vw - 24px);
  }

  .video-dialog-shell {
    height: min(420px, calc(100vh - 48px));
    box-shadow: 8px 8px 0 var(--line);
  }

  .codex-task-items,
  .codex-file-list {
    max-height: 280px;
  }

  .codex-code-view,
  .codex-log-panel pre,
  .codex-diff-panel pre {
    min-height: 260px;
    max-height: 420px;
  }

  .footer {
    width: min(100% - 28px, 1380px);
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    width: 100%;
  }
}
