:root {
  color-scheme: dark;

  --bg: #080a0d;
  --bg-soft: #0d1015;
  --panel: #10141a;
  --panel-2: #141922;

  --text: #f1f3f5;
  --text-soft: #a0a7b3;
  --text-faint: #6f7784;

  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --accent: #79a8ff;
  --success: #45d483;

  --max: 1440px;
  --radius: 22px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f3ef;
  --bg-soft: #ebeae5;
  --panel: #ffffff;
  --panel-2: #f4f4f1;

  --text: #141518;
  --text-soft: #60646b;
  --text-faint: #8a8f97;

  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.16);

  --accent: #315fbd;
  --success: #188a50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.prod-page {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.prod-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.prod-brand {
  width: max-content;
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.prod-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--text-soft);
  font-size: 14px;
}

.prod-nav a,
.prod-text-link,
.prod-closing-links a {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.prod-nav a:hover,
.prod-text-link:hover,
.prod-closing-links a:hover {
  color: var(--text);
}

.prod-theme {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.prod-theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
}

.prod-hero {
  min-height: 650px;
  padding: 100px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.65fr);
  gap: 96px;
  align-items: end;
}

.prod-eyebrow,
.prod-section-kicker,
.prod-panel-label,
.prod-proof-label,
.prod-context-label {
  margin: 0;
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prod-hero h1 {
  max-width: 940px;
  margin: 22px 0 28px;
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.075em;
  font-weight: 600;
}

.prod-hero h1 span {
  display: block;
  color: var(--text-soft);
}

.prod-hero-lede {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.prod-actions {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prod-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.prod-button-primary {
  background: var(--text);
  color: var(--bg);
}

.prod-button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
}

.prod-hero-context {
  align-self: end;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.prod-context-list {
  margin-top: 25px;
}

.prod-context-list > div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  border-top: 1px solid var(--line);
}

.prod-context-list > div:first-child {
  border-top: 0;
}

.prod-context-list span {
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
}

.prod-context-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.prod-proof {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 26px 0 34px;
}

.prod-proof-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.prod-proof-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.prod-proof-heading p {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.prod-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(69, 212, 131, 0.10);
}

.prod-proof-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.prod-proof-grid article {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 4px 28px 2px;
}

.prod-proof-grid article:first-child {
  border-left: 0;
  padding-left: 0;
}

.prod-proof-label {
  display: block;
  min-height: 2.5em;
}

.prod-proof-grid small {
  display: block;
  margin-top: 10px;
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.prod-proof-grid strong {
  display: block;
  margin-top: 11px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.prod-section {
  padding: 116px 0;
  border-bottom: 1px solid var(--line-strong);
}

.prod-section-head {
  margin-bottom: 52px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.prod-section-head h2 {
  max-width: 820px;
  margin: 12px 0 0;
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 550;
}

.prod-text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

.prod-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.prod-project-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.prod-project-card:nth-child(even) {
  border-right: 0;
}

.prod-project-card:hover {
  background: var(--panel);
}

.prod-project-index {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.prod-project-status {
  text-align: right;
}

.prod-project-body {
  max-width: 580px;
  margin-top: auto;
  padding-top: 70px;
}

.prod-project-body h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.05em;
  font-weight: 550;
}

.prod-project-body p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.prod-project-stack {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-project-stack span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
}

.prod-project-arrow {
  position: absolute;
  right: 30px;
  bottom: 30px;
  color: var(--text-faint);
  font-size: 18px;
}

.prod-ops-shell {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.prod-signal-column {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.prod-event-ticker {
  margin-top: 20px;
}

.alt-event-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.alt-event-item-secondary {
  margin-top: 8px;
  opacity: 0.72;
}

.alt-event-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.alt-event-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.alt-event-text {
  overflow: hidden;
  color: var(--text-soft);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-node-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.prod-node {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.prod-node:last-child {
  border-right: 0;
}

.prod-node-head {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.prod-node-head > div {
  min-width: 0;
}

.prod-node-number {
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
}

.prod-node-head h3 {
  margin: 12px 0 0;
  font-family: "Geist Mono", monospace;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.prod-node-role {
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  white-space: nowrap;
}

.prod-node-details {
  padding-top: 10px;
}

.alt-metric-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) 1.2fr;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.alt-metric-row:last-child {
  border-bottom: 0;
}

.alt-metric-name {
  color: var(--text-faint);
  font-size: 12px;
}

.alt-metric-value {
  color: var(--text-soft);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-align: right;
}

.alt-metric-ok {
  color: var(--success);
}

.prod-photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.prod-photo-card {
  min-width: 0;
}

.prod-photo-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
}

.prod-photo-card:first-child .prod-photo-image {
  aspect-ratio: 5 / 5;
}

.prod-photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.prod-photo-card:hover img {
  transform: scale(1.025);
}

.prod-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.28),
      transparent 42%
    );
  pointer-events: none;
}

.prod-photo-meta {
  padding: 15px 3px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.prod-photo-meta span {
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prod-photo-meta h3 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.prod-closing {
  padding: 130px 0;
}

.prod-closing-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 100px;
}

.prod-closing h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 550;
}

.prod-closing-grid > div > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.prod-closing-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prod-closing-links a {
  color: var(--text-soft);
  font-size: 14px;
}

.prod-footer {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  color: var(--text-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.prod-footer > div {
  display: flex;
  gap: 24px;
}

@media (max-width: 980px) {
  .prod-header {
    grid-template-columns: 1fr auto;
  }

  .prod-nav {
    display: none;
  }

  .prod-hero {
    min-height: auto;
    padding: 84px 0 72px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .prod-hero-context {
    max-width: 520px;
  }

  .prod-proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .prod-proof-grid article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .prod-node-grid {
    grid-template-columns: 1fr;
  }

  .prod-node {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prod-node:last-child {
    border-bottom: 0;
  }

  .prod-photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prod-photo-card:first-child {
    grid-column: 1 / -1;
  }

  .prod-photo-card:first-child .prod-photo-image {
    aspect-ratio: 16 / 9;
  }

  .prod-closing-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 680px) {
  .prod-page {
    width: min(calc(100% - 28px), var(--max));
  }

  .prod-header {
    min-height: 76px;
  }

  .prod-theme span:last-child {
    display: none;
  }

  .prod-hero {
    padding-top: 68px;
  }

  .prod-hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .prod-section {
    padding: 86px 0;
  }

  .prod-section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 38px;
  }

  .prod-proof-heading {
    align-items: start;
    flex-direction: column;
  }

  .prod-proof-heading p {
    display: none;
  }

  .prod-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prod-proof-grid article {
    padding-left: 18px;
    padding-right: 10px;
  }

  .prod-proof-grid strong {
    font-size: 25px;
  }

  .prod-project-grid {
    grid-template-columns: 1fr;
  }

  .prod-project-card,
  .prod-project-card:nth-child(even) {
    min-height: 330px;
    border-right: 0;
    padding: 24px;
  }

  .prod-project-arrow {
    right: 24px;
    bottom: 24px;
  }

  .prod-ops-shell {
    border-radius: 16px;
  }

  .prod-node,
  .prod-signal-column {
    padding: 22px;
  }

  .prod-photo-grid {
    grid-template-columns: 1fr;
  }

  .prod-photo-card:first-child {
    grid-column: auto;
  }

  .prod-photo-card:first-child .prod-photo-image,
  .prod-photo-image {
    aspect-ratio: 4 / 5;
  }

  .prod-closing {
    padding: 100px 0;
  }

  .prod-footer {
    padding: 28px 0;
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .prod-footer > div {
    flex-direction: column;
    gap: 5px;
  }
}
