@property --phosphor {
  syntax: "<color>";
  inherits: true;
  initial-value: #5cff7a;
}

@property --phosphor-dim {
  syntax: "<color>";
  inherits: true;
  initial-value: #0c2410;
}

@property --bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #030603;
}

@property --ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #cff6d6;
}

@property --muted {
  syntax: "<color>";
  inherits: true;
  initial-value: #5c8a66;
}

@property --panel {
  syntax: "<color>";
  inherits: true;
  initial-value: #061109;
}

@property --on-phosphor {
  syntax: "<color>";
  inherits: true;
  initial-value: #030603;
}

:root,
:root[data-theme="green"] {
  --screen-phosphor: #5cff7a;
  --screen-dim: #0c2410;
  --screen-ink: #cff6d6;
  --screen-muted: #5c8a66;
  --phosphor: #5cff7a;
  --phosphor-dim: #0c2410;
  --bg: #030603;
  --ink: #cff6d6;
  --muted: #5c8a66;
  --panel: #061109;
  --on-phosphor: #030603;
  --glow: color-mix(in srgb, var(--phosphor) 45%, transparent);
  --phosphor-soft: color-mix(in srgb, var(--phosphor) 58%, white);
  --glow-strong: color-mix(in srgb, var(--phosphor) 50%, transparent);
}

:root[data-theme="orange"] {
  --screen-phosphor: #ffa23d;
  --screen-dim: #3a1d08;
  --screen-ink: #f6dec0;
  --screen-muted: #8c6a45;
  --phosphor: #ffa23d;
  --phosphor-dim: #3a1d08;
  --bg: #060402;
  --ink: #f6dec0;
  --muted: #8c6a45;
  --panel: #120b04;
  --on-phosphor: #060402;
}

:root[data-theme="blue"] {
  --screen-phosphor: #4d9cff;
  --screen-dim: #0b1b3a;
  --screen-ink: #cfe0fa;
  --screen-muted: #5b7099;
  --phosphor: #4d9cff;
  --phosphor-dim: #0b1b3a;
  --bg: #020409;
  --ink: #cfe0fa;
  --muted: #5b7099;
  --panel: #060e1c;
  --on-phosphor: #020409;
}

:root[data-theme="purple"] {
  --screen-phosphor: #a366ff;
  --screen-dim: #260c3a;
  --screen-ink: #e4d4fa;
  --screen-muted: #7c6699;
  --phosphor: #a366ff;
  --phosphor-dim: #260c3a;
  --bg: #050208;
  --ink: #e4d4fa;
  --muted: #7c6699;
  --panel: #0e051a;
  --on-phosphor: #050208;
}

:root[data-theme="red"] {
  --screen-phosphor: #ff5252;
  --screen-dim: #3a0c0c;
  --screen-ink: #f8d6d6;
  --screen-muted: #996060;
  --phosphor: #ff5252;
  --phosphor-dim: #3a0c0c;
  --bg: #060202;
  --ink: #f8d6d6;
  --muted: #996060;
  --panel: #170707;
  --on-phosphor: #060202;
}

:root[data-mode="light"],
:root[data-mode="light"][data-theme="green"] {
  --phosphor: #187a32;
  --phosphor-dim: #d8efe0;
  --bg: #f4f7f5;
  --ink: #17211a;
  --muted: #5b6b60;
  --panel: #ffffff;
  --on-phosphor: #f4f7f5;
  --glow: color-mix(in srgb, var(--phosphor) 28%, transparent);
  --glow-strong: color-mix(in srgb, var(--phosphor) 32%, transparent);
}

:root[data-mode="light"][data-theme="orange"] {
  --phosphor: #a34f0a;
  --phosphor-dim: #f3e4d2;
  --bg: #f7f4f0;
  --ink: #21180f;
  --muted: #6b5a48;
  --panel: #ffffff;
  --on-phosphor: #f7f4f0;
}

:root[data-mode="light"][data-theme="blue"] {
  --phosphor: #1a5fbf;
  --phosphor-dim: #d7e4f6;
  --bg: #f3f5f8;
  --ink: #141a24;
  --muted: #5a6578;
  --panel: #ffffff;
  --on-phosphor: #f3f5f8;
}

:root[data-mode="light"][data-theme="purple"] {
  --phosphor: #6b2ec4;
  --phosphor-dim: #e7dcf6;
  --bg: #f5f3f8;
  --ink: #1a1524;
  --muted: #645c72;
  --panel: #ffffff;
  --on-phosphor: #f5f3f8;
}

:root[data-mode="light"][data-theme="red"] {
  --phosphor: #c42a2a;
  --phosphor-dim: #f6dcdc;
  --bg: #f7f3f3;
  --ink: #211414;
  --muted: #6b5555;
  --panel: #ffffff;
  --on-phosphor: #f7f3f3;
}

html.theme-ready {
  transition:
    --phosphor 3s ease,
    --phosphor-dim 3s ease,
    --bg 3s ease,
    --ink 3s ease,
    --muted 3s ease,
    --panel 3s ease,
    --on-phosphor 3s ease;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

html[data-mode="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

img:not([hidden]) {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--phosphor);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.accent {
  color: var(--phosphor);
}

/* Monospace is scoped to genuine terminal/UI-chrome surfaces, not the whole page. */
.shell,
.term-window,
.device__mock {
  font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10000;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--phosphor);
  color: var(--phosphor);
}

.skip:focus {
  top: 1rem;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
}

html[data-mode="light"] .vignette {
  background: radial-gradient(ellipse at center, transparent 52%, rgba(18, 32, 24, 0.08) 100%);
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--phosphor) 22%, transparent);
}

html[data-mode="light"] .site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.wordmark {
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--phosphor);
}

.prompt-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--phosphor);
  border-radius: 8px;
  color: var(--phosphor);
  box-shadow: 0 0 10px var(--glow);
}

.prompt-btn:hover {
  background: color-mix(in srgb, var(--phosphor) 16%, transparent);
}

/* ---------- logo image swap ---------- */

.logo-swap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 22%;
  line-height: 0;
}

.logo-swap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 3s ease;
}

.logo-swap__b {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.logo-swap.is-b .logo-swap__a {
  opacity: 0;
}

.logo-swap.is-b .logo-swap__b {
  opacity: 1;
}

.logo-swap--square {
  width: 38px;
  height: 38px;
}

.logo-swap--bar {
  width: 20px;
  height: 20px;
  flex: none;
}

.logo-swap--footer {
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--phosphor) 40%, transparent);
  padding: 6px;
}

/* ---------- hero shell ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: 3rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--phosphor) 18%, transparent);
}

.floor-grid {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--phosphor) 35%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--phosphor) 35%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, #000, transparent 88%);
  opacity: 0.22;
  pointer-events: none;
}

html[data-mode="light"] .floor-grid {
  opacity: 0.34;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}


.shell,
.term-window,
.device {
  --phosphor: var(--screen-phosphor);
  --phosphor-dim: var(--screen-dim);
  --ink: var(--screen-ink);
  --muted: var(--screen-muted);
  --panel: #050805;
  --bg: #010402;
  --glow: color-mix(in srgb, var(--screen-phosphor) 45%, transparent);
  --glow-strong: color-mix(in srgb, var(--screen-phosphor) 50%, transparent);
}

.shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0c0e;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-mode="light"] .shell {
  box-shadow: 0 22px 48px rgba(18, 32, 24, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shell__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(180deg, #1f2124, #17181a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell__dots {
  position: relative;
  flex: none;
  width: 39px;
  height: 9px;
  margin-left: 2px;
}

.shell__dots::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
}

.shell__title {
  flex: 1;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell__led {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7549;
  box-shadow: 0 0 7px rgba(255, 117, 73, 0.9);
  animation: led-pulse 3.5s ease-in-out infinite;
}

.shell__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.7rem 1.9rem;
  min-height: 34.5rem;
  background: radial-gradient(
    ellipse at 50% 0%,
    color-mix(in srgb, var(--phosphor-dim) 55%, #010602) 0%,
    #010402 58%,
    #000201 100%
  );
  animation: crt-on 0.55s ease-out;
}

.shell__screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.06), transparent 30%, transparent 78%, rgba(255, 255, 255, 0.02));
}

.shell__screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 3px
  );
  animation: crt-flicker 8s 1.2s infinite;
}

.shell__term {
  position: relative;
  z-index: 1;
  margin: 0 0 1.2rem;
  min-height: 7.5em;
  color: var(--phosphor);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.shell__term .term-line--cmd {
  color: var(--phosphor);
  text-shadow: 0 0 7px var(--glow-strong);
}

.shell__term .term-line--out {
  color: var(--ink);
}

.shell__term .term-line--muted {
  color: var(--muted);
}

.shell__ls {
  position: relative;
  z-index: 1;
  margin-bottom: 0.4rem;
  transition: opacity 0.4s ease;
}

.shell__row {
  display: grid;
  grid-template-columns: 8.5em 9.5em 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.42rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--ink);
}

.shell__row:hover,
.shell__row:focus-visible {
  background: color-mix(in srgb, var(--phosphor) 12%, transparent);
}

.shell__perm {
  color: var(--muted);
  font-size: 0.78rem;
}

.shell__name {
  color: var(--phosphor);
}

.shell__row:hover .shell__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell__desc {
  color: var(--muted);
}

.shell__console {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 1rem;
  border-top: 1px dashed color-mix(in srgb, var(--phosphor) 24%, transparent);
}

.shell__hint {
  flex: none;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.shell__hint code {
  color: var(--phosphor);
}

.shell__output {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  overflow-y: auto;
  font-size: 0.94rem;
  line-height: 1.75;
}

.shell__output:not(:empty) {
  margin-bottom: 0.8rem;
}

.shell__out-line {
  color: var(--ink);
  white-space: pre-wrap;
}

.shell__out-line--cmd {
  color: var(--phosphor);
  text-shadow: 0 0 7px var(--glow-strong);
}

.shell__out-line--muted {
  color: var(--muted);
}

.shell__out-line--err {
  color: var(--phosphor);
  opacity: 0.7;
}

@keyframes shell-flash {
  0% {
    filter: brightness(2.1);
  }
  100% {
    filter: brightness(1);
  }
}

.shell__output.is-flash {
  animation: shell-flash 0.35s ease-out;
}

.shell__input-row {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.shell__input-row:focus-within {
  border-bottom-color: color-mix(in srgb, var(--phosphor) 55%, transparent);
}

.shell__prompt-tag {
  flex: none;
  color: var(--phosphor);
  font-size: 0.94rem;
  text-shadow: 0 0 7px var(--glow-strong);
  white-space: nowrap;
}

.shell__input-track {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 1.2em;
}

.shell__input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  padding: 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.94rem;
  caret-color: transparent;
}

.shell__input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.shell__input-track:focus-within .shell__input::placeholder {
  opacity: 0;
}

.shell__input-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: pre;
  font: inherit;
  pointer-events: none;
}

.shell__block-caret {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.shell__input:disabled ~ .shell__block-caret {
  display: none;
}

@keyframes crt-on {
  0% {
    filter: brightness(4);
  }
  60% {
    filter: brightness(1.5);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes crt-flicker {
  0%,
  94%,
  100% {
    opacity: 1;
    filter: none;
  }
  95.5% {
    opacity: 0.94;
  }
  96.5% {
    opacity: 1;
    filter: brightness(1.08);
  }
  97.5% {
    opacity: 0.9;
  }
}

@keyframes led-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.term-cursor {
  display: inline-block;
  width: 0.7ch;
  height: 1em;
  margin-left: 1px;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--glow);
  vertical-align: text-bottom;
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- buttons & links ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--phosphor);
  border-radius: 9px;
  background: var(--phosphor);
  color: var(--on-phosphor);
  font-weight: 600;
  font-size: 0.92rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn--ghost:hover {
  filter: none;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.link-arrow {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.link-arrow:hover {
  color: var(--phosphor);
}

/* ---------- sections ---------- */

.section {
  padding: 4.5rem 0;
}

main {
  counter-reset: section;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.section-head h2 {
  color: var(--phosphor);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-head h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero) " / ";
  opacity: 0.65;
}

.section-head a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.section-head a:hover {
  color: var(--phosphor);
}

.hex-icon {
  position: relative;
  width: 92px;
  height: 102px;
  flex: none;
  color: var(--phosphor);
}

.hex-icon__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: color-mix(in srgb, var(--panel) 92%, black);
  stroke: color-mix(in srgb, var(--phosphor) 50%, transparent);
  stroke-width: 1.6;
}

.hex-icon__glyph {
  position: relative;
  z-index: 1;
  display: block;
  width: 34px;
  height: 34px;
  margin: 34px auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hex-icon__glyph circle[fill="currentColor"] {
  stroke: none;
}

.flagship {
  display: grid;
  grid-template-columns: auto minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 1.75rem 2rem;
  align-items: center;
  padding-bottom: 2.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.flagship__copy h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.flagship__copy p,
.work-item p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.flagship__meta,
.work-item__meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.flagship .card-meta {
  margin-bottom: 0.85rem;
}

.flagship .status {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flagship .more {
  display: inline-block;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 2.5rem;
}

.work-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.work-item .card-icon {
  flex: none;
}

.work-item__copy {
  min-width: 0;
}

.work-item h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.work-item p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.work-item__meta {
  margin: 0 0 0.6rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--phosphor) 28%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--phosphor) 8%, transparent);
  color: var(--phosphor);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-icon svg circle[fill="currentColor"] {
  stroke: none;
}

.more {
  color: var(--phosphor);
  font-size: 0.88rem;
  font-weight: 500;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status,
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--phosphor) 32%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--phosphor) 10%, transparent);
  color: var(--phosphor);
  font-weight: 500;
  font-size: 0.74rem;
}

.status--experiment {
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--muted) 35%, transparent);
}

.workbench-row .status {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.workbench-row .status--planned,
.workbench-row .status--experiment,
.workbench-row .status--internal {
  color: var(--phosphor);
  background: none;
  border: 0;
}

.badge {
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
}

.card-kicker {
  margin: 0;
  color: var(--phosphor);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 66ch;
}

.build-grid {
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(4, 1fr);
}

.workbench-list {
  display: grid;
}

.workbench-row {
  display: grid;
  grid-template-columns: 9.5em 15em 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.workbench-row:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.workbench-row h3 {
  font-size: 1.05rem;
  color: var(--ink);
}

.workbench-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.quiet-card {
  padding: 0;
}

.build-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 0.7rem;
  color: var(--phosphor);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiet-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.quiet-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.about-prose {
  display: grid;
  gap: 1rem;
}

.about-prose p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: 0.98rem;
}

.about-prose .about-lede {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.5;
}

.about-prose .about-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.about-meta svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--phosphor);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- product pages ---------- */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--phosphor);
}

.product-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 2rem 2.25rem;
  align-items: center;
  padding: 2.75rem 0 3.5rem;
}

.product-hero h1 {
  margin: 0.35rem 0 0.6rem;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
}

.product-tagline {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.product-copy {
  padding: 0 0 4rem;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.prose-grid h2,
.look h2,
.cap-grid h2,
.get-it h2,
.related h2,
.privacy h2,
.state h2 {
  margin: 0 0 0.7rem;
  color: var(--phosphor);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose-grid p,
.privacy p,
.state p {
  margin: 0;
  color: var(--muted);
}

.cap-grid {
  margin-bottom: 2.5rem;
}

.cap-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.cap-list li::before {
  content: "\203a";
  position: absolute;
  left: 0;
  color: var(--phosphor);
}

.privacy,
.state {
  margin-bottom: 2.25rem;
  padding-left: 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--phosphor) 35%, transparent);
}

.get-it {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 3rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 14px;
}

.get-it .cta-row {
  margin: 0;
}

.btn--disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.related .work-list {
  margin-top: 0.4rem;
}

.device {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--phosphor) 28%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, black);
  overflow: hidden;
  min-height: 280px;
}

.device__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device--shot {
  display: grid;
  min-height: 0;
  padding: 0.65rem;
  place-items: center;
  background: #080b0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device--shot .device__photo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 34rem;
  margin-inline: auto;
  border-radius: 10px;
  object-fit: contain;
}

.flagship .device--shot .device__photo {
  max-height: 30rem;
}

.device.has-photo .device__mock {
  display: none;
}

.device__mock {
  padding: 1.1rem 1rem 1.2rem;
  font-size: 0.78rem;
  color: var(--phosphor);
}

.device__chrome {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-left: 34px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.device__chrome::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #27c93f;
}

.device__panel {
  border: 1px solid color-mix(in srgb, var(--phosphor) 30%, transparent);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #050805;
  text-shadow: 0 0 8px var(--glow);
  white-space: pre-wrap;
  min-height: 11rem;
}

.device--phone .device__panel {
  max-width: 220px;
  margin: 0 auto;
  min-height: 16rem;
  border-radius: 10px;
}

.device--phone .ring {
  width: 92px;
  height: 92px;
  margin: 0.6rem auto 0.8rem;
  border: 6px solid color-mix(in srgb, var(--phosphor) 25%, transparent);
  border-top-color: var(--phosphor);
  border-radius: 50%;
}

.shot-caption {
  margin: 0.55rem 0 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- product screenshot galleries ---------- */

.look {
  margin-bottom: 2.75rem;
}

.shot-group + .shot-group {
  margin-top: 2rem;
}

.shot-group__title {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.shot-gallery {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.shot-gallery--popover {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shot-gallery--windows,
.shot-gallery--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot {
  display: grid;
  align-self: start;
  margin: 0;
  padding: 0.55rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 94%, var(--bg));
  box-shadow: 0 10px 28px color-mix(in srgb, black 14%, transparent);
}

html[data-mode="light"] .shot {
  box-shadow: 0 10px 28px rgba(18, 32, 24, 0.09);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #080b0a;
}

.shot figcaption {
  padding: 0.55rem 0.2rem 0.1rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.shot-carousel {
  width: min(100%, 920px);
  margin-inline: auto;
}

.shot-carousel__stage {
  display: grid;
}

.shot-carousel__slide[hidden] {
  display: none;
}

.shot-carousel__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.shot-carousel__controls button {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  width: max-content;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.shot-carousel__controls button:last-child {
  justify-self: end;
}

.shot-carousel__controls button:hover {
  border-color: color-mix(in srgb, var(--phosphor) 55%, transparent);
  color: var(--phosphor);
}

.shot-carousel__controls p {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-align: center;
  white-space: nowrap;
}

.shot-carousel__controls strong {
  color: var(--ink);
  font-weight: 500;
}

.shot-carousel__tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding-bottom: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.shot-carousel__tabs button {
  flex: none;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  white-space: nowrap;
}

.shot-carousel__tabs button:hover {
  color: var(--ink);
}

.shot-carousel__tabs button[aria-selected="true"] {
  background: color-mix(in srgb, var(--phosphor) 15%, transparent);
  color: var(--phosphor);
}

.device__photo.shot--light,
.shot img.shot--light {
  display: none;
}

html[data-mode="light"] .device__photo.shot--dark,
html[data-mode="light"] .shot img.shot--dark {
  display: none;
}

html[data-mode="light"] .device__photo.shot--light,
html[data-mode="light"] .shot img.shot--light {
  display: block;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--phosphor);
}

/* ---------- about terminal ---------- */

.pixel-heart {
  width: 44px;
  height: 38px;
  margin-bottom: 0.4rem;
  color: var(--phosphor);
  opacity: 0.85;
}

.pixel-heart svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.term-window {
  background: #050505;
  border: 1px solid color-mix(in srgb, var(--phosphor) 40%, transparent);
  border-radius: 14px;
  overflow: hidden;
}

.term-window__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  background: color-mix(in srgb, var(--phosphor-dim) 70%, #000);
  border-bottom: 1px solid color-mix(in srgb, var(--phosphor) 22%, transparent);
  font-size: 0.78rem;
  color: var(--muted);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--phosphor);
}

.term-window pre {
  margin: 0;
  padding: 1rem 1.1rem 1.2rem;
  min-height: 13rem;
  color: var(--phosphor);
  text-shadow: 0 0 8px var(--glow);
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.term-line--cmd {
  color: var(--phosphor);
}

.term-line--out {
  color: var(--ink);
  text-shadow: none;
}

.term-line--muted {
  color: var(--muted);
  text-shadow: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--phosphor) 22%, transparent);
  padding: 3rem 0 1.5rem;
  background: color-mix(in srgb, var(--bg) 70%, black);
}

html[data-mode="light"] .site-footer {
  background: color-mix(in srgb, var(--bg) 88%, var(--panel));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-wordmark {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.footer-tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-grid h3 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--phosphor);
}

.stay {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
  align-content: start;
}

.stay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--muted);
  font-size: 0.85rem;
}

.theme-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.appearance-switcher,
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
}

.appearance-switcher {
  gap: 0.15rem;
  padding: 0.2rem;
}

.appearance-switcher button {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
}

.appearance-switcher button.is-active,
.appearance-switcher button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--phosphor) 16%, transparent);
  color: var(--ink);
}

.theme-switcher span {
  font-size: 0.78rem;
  color: var(--muted);
}

.theme-switcher span {
  font-size: 0.78rem;
  color: var(--muted);
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  opacity: 0.6;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.dot.is-active,
.dot:hover {
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 10px currentColor;
}

.dot[data-theme-pick="green"] {
  background: #5cff7a;
  color: #5cff7a;
}

.dot[data-theme-pick="orange"] {
  background: #ffa23d;
  color: #ffa23d;
}

.dot[data-theme-pick="blue"] {
  background: #4d9cff;
  color: #4d9cff;
}

.dot[data-theme-pick="purple"] {
  background: #a366ff;
  color: #a366ff;
}

.dot[data-theme-pick="red"] {
  background: #ff5252;
  color: #ff5252;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .about-block,
  .footer-grid,
  .flagship,
  .work-list,
  .build-grid,
  .product-hero,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .workbench-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hex-icon {
    width: 72px;
    height: 80px;
  }

  .hex-icon__glyph {
    width: 26px;
    height: 26px;
    margin-top: 27px;
  }

  .cap-list {
    grid-template-columns: 1fr;
  }

  .shot-gallery--popover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-gallery--windows,
  .shot-gallery--pair {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .shell__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .shell__perm {
    display: none;
  }

  .nav {
    gap: 1rem;
  }

  .wordmark {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav a:not(.prompt-btn) {
    display: none;
  }

  .shell__bar {
    padding: 0.55rem 0.8rem;
  }

  .shell__title {
    font-size: 1.05rem;
  }

  .shell__at {
    display: none;
  }

  .shell__screen {
    padding: 1.3rem 1.2rem 1.5rem;
    min-height: 24rem;
  }

  .shell__term {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.theme-ready {
    transition: none;
  }

  .logo-swap img {
    transition: none;
  }

  .shell__screen,
  .shell__screen::after,
  .shell__output.is-flash,
  .shell__ls,
  .term-cursor,
  .led,
  .shell__led,
  .bezel__tag--rec::before {
    animation: none;
    transition: none;
  }

  .scanlines {
    display: none;
  }
}
