:root {
  --ink: #071018;
  --ink-soft: #0b1620;
  --panel: rgba(16, 31, 43, 0.78);
  --panel-solid: #101f2b;
  --panel-light: #152836;
  --line: rgba(164, 209, 226, 0.15);
  --line-strong: rgba(164, 209, 226, 0.3);
  --text: #f2f7f8;
  --muted: #9eb1ba;
  --faint: #6f838d;
  --cyan: #64e6da;
  --cyan-soft: #2cb7b1;
  --blue: #7aa8ff;
  --amber: #f4c76b;
  --coral: #ff8e7d;
  --green: #77e3a1;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(100, 230, 218, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 230, 218, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

::selection {
  color: #041114;
  background: var(--cyan);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--cyan);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: -220px;
  right: -160px;
  background: var(--cyan);
}

.ambient-two {
  bottom: -260px;
  left: -240px;
  background: var(--blue);
}

.section-shell,
.nav-shell {
  width: min(1180px, calc(100% - 48px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 16, 24, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(20px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark,
.assistant-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100, 230, 218, 0.45);
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(100, 230, 218, 0.08);
  font-weight: 800;
  box-shadow: inset 0 0 20px rgba(100, 230, 218, 0.05);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links > a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links > a:hover {
  color: var(--text);
}

.nav-links > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 720;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #041518;
  background: var(--cyan);
  box-shadow: 0 10px 32px rgba(100, 230, 218, 0.16);
}

.button-primary:hover {
  background: #82eee5;
  box-shadow: 0 14px 40px rgba(100, 230, 218, 0.25);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(100, 230, 218, 0.42);
  background: rgba(100, 230, 218, 0.07);
}

.button-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.8rem;
}

.button[aria-disabled="true"],
.resume-link[aria-disabled="true"],
.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.button:disabled:hover {
  transform: none;
}

.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 72px;
  padding-block: 80px 96px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.eyebrow,
.location,
.section-label,
.section-index,
.project-eyebrow,
.tour-step-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(119, 227, 161, 0.08), 0 0 18px rgba(119, 227, 161, 0.55);
}

.location {
  color: var(--faint);
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.067em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, var(--cyan), #c9fff8 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-summary {
  max-width: 670px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.55rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.proof-strip div {
  display: flex;
  flex-direction: column;
}

.proof-strip strong {
  color: var(--text);
  font-size: 1.18rem;
}

.proof-strip span {
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.72rem;
}

.hero-visual {
  position: relative;
  min-height: 630px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 0 20%;
  border: 1px solid rgba(100, 230, 218, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 230, 218, 0.09), transparent 62%);
  filter: blur(1px);
}

.profile-orbit {
  position: relative;
  width: min(430px, 90vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(100, 230, 218, 0.16);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 2%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.orbit-one {
  animation: orbit-spin 22s linear infinite;
}

.orbit-two {
  inset: 18%;
  border-style: dashed;
  border-color: rgba(122, 168, 255, 0.18);
  animation: orbit-spin 18s linear infinite reverse;
}

.orbit-two::after {
  top: auto;
  right: auto;
  bottom: 11%;
  left: 5%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.profile-card {
  position: relative;
  z-index: 2;
  width: 215px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  display: block;
  object-fit: cover;
  /* Keep the face and hair in frame; the approved portrait has the face in its upper half. */
  object-position: 50% 20%;
  background: #132833;
}

.profile-card img[hidden],
.profile-initials[hidden] {
  display: none;
}

/* Professional initials, used until an approved photo exists. */
.profile-initials {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background:
    radial-gradient(circle at 50% 38%, rgba(100, 230, 218, 0.16), transparent 58%),
    linear-gradient(160deg, #15303c, #0b1a24);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-copy {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}

.profile-copy span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-copy strong {
  margin-top: 4px;
  font-size: 0.92rem;
}

.orbit-label {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 16, 24, 0.84);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.orbit-label-one { top: 18%; left: 0; }
.orbit-label-two { top: 28%; right: -2%; }
.orbit-label-three { bottom: 18%; left: 8%; }

.system-console {
  position: absolute;
  right: -12px;
  bottom: 20px;
  z-index: 5;
  width: min(355px, 82vw);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 19, 27, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.console-header {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.console-header > span:first-child {
  display: flex;
  gap: 5px;
}

.console-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.console-header i:nth-child(1) { background: var(--coral); }
.console-header i:nth-child(2) { background: var(--amber); }
.console-header i:nth-child(3) { background: var(--green); }

.illustrative-label {
  justify-self: end;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.console-body {
  padding: 12px;
}

.trace-line {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  color: var(--faint);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.trace-line b {
  color: var(--muted);
  font-weight: 500;
}

.trace-line em {
  color: var(--green);
  font-style: normal;
}

.trace-line.active {
  color: var(--cyan);
  background: rgba(100, 230, 218, 0.08);
}

.trace-line.active b,
.trace-line.active em {
  color: var(--cyan);
}

.signal-bar {
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.signal-track {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-inline: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

section.section-shell {
  padding-block: 120px;
}

.section-index {
  margin-bottom: 66px;
  color: var(--cyan);
}

.section-label {
  margin-bottom: 16px;
  color: var(--cyan);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
}

/* The About photo: a soft accent frame, a gentle shadow and a caption, so it sits as a finished portrait under the
   headline rather than a dark block. */
.about-photo {
  max-width: 320px;
  margin: 44px 0 0;
  padding: 8px 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(100, 230, 218, 0.28), rgba(255, 255, 255, 0.03) 42%, rgba(100, 230, 218, 0.1)),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 21px;
}

.about-caption {
  padding: 12px 6px 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-photo[hidden] {
  display: none;
}

.story-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.story-lead {
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.principles {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 42px 0.8fr 1.2fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.principle strong {
  color: var(--text);
}

.principle p {
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-heading-row > p {
  max-width: 490px;
  margin: 0 0 8px;
  color: var(--muted);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter-chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  grid-column: span 6;
  position: relative;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 6%, var(--project-glow, rgba(100, 230, 218, 0.11)), transparent 33%),
    linear-gradient(155deg, rgba(20, 39, 52, 0.9), rgba(9, 22, 31, 0.92));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, border-color 220ms ease;
}

.project-card:first-child {
  grid-column: span 12;
  min-height: 460px;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 230, 218, 0.3);
}

.project-card[hidden] {
  display: none;
}

.project-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.project-number {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.status-badge,
.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--badge-color, var(--green));
  box-shadow: 0 0 11px var(--badge-color, var(--green));
}

.project-eyebrow {
  margin: 60px 0 12px;
  color: var(--cyan);
}

.project-card:first-child .project-eyebrow {
  margin-top: 44px;
}

.project-card h3 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.project-card > p {
  max-width: 760px;
  color: var(--muted);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
}

.project-metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 14, 21, 0.36);
}

.project-metric strong {
  display: block;
  color: var(--cyan);
  font-size: 1.18rem;
}

.project-metric span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.66rem;
  line-height: 1.35;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-role {
  color: var(--faint);
  font-size: 0.72rem;
}

.case-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

/* A case study's related lab sits before "Open case study", pushed right with it. */
.case-lab-link {
  margin-left: auto;
  color: var(--cyan);
}

.case-button span {
  display: inline-block;
  margin-left: 7px;
  color: var(--cyan);
  transition: transform 180ms ease;
}

.case-button:hover span {
  transform: translate(3px, -3px);
}

.system-explorer {
  display: grid;
  grid-template-columns: 245px 1fr;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(10, 23, 32, 0.8);
  box-shadow: var(--shadow);
}

.system-tabs {
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}

.system-tab {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.83rem;
}

.system-tab span:last-child {
  color: var(--faint);
}

.system-tab:hover,
.system-tab.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(100, 230, 218, 0.06);
}

.system-tab.active span:last-child {
  color: var(--cyan);
}

.system-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.system-summary {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.45fr);
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.system-summary h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

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

.system-legend {
  align-self: start;
  justify-self: end;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  text-transform: uppercase;
}

.flow-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 48px 4px;
  scrollbar-color: var(--line-strong) transparent;
}

.flow-node {
  flex: 1 1 0;
  min-width: 112px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.flow-node:hover,
.flow-node.active {
  transform: translateY(-3px);
  color: var(--text);
  border-color: rgba(100, 230, 218, 0.48);
  background: rgba(100, 230, 218, 0.07);
}

.flow-node span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.flow-node strong {
  font-size: 0.83rem;
  line-height: 1.25;
}

.flow-arrow {
  flex: 0 0 18px;
  color: var(--cyan);
  text-align: center;
  opacity: 0.52;
}

.node-inspector {
  min-height: 104px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 13, 20, 0.5);
}

.inspector-number {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.node-inspector h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.node-inspector p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.lab-grid .section-heading > p:not(.section-label) {
  color: var(--muted);
}

.demo-disclaimer {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  color: var(--faint);
  background: rgba(244, 199, 107, 0.05);
  font-size: 0.78rem;
}

.privacy-demo {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(18, 38, 50, 0.9), rgba(8, 19, 27, 0.92));
  box-shadow: var(--shadow);
}

.demo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.demo-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.local-badge {
  color: var(--green);
  border-color: rgba(119, 227, 161, 0.25);
}

.privacy-demo label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-demo textarea {
  width: 100%;
  resize: vertical;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(3, 13, 20, 0.58);
  line-height: 1.6;
}

.demo-actions {
  display: flex;
  gap: 10px;
  margin-block: 16px;
}

.demo-output {
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: #061119;
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

.preview-note {
  margin: -4px 0 12px;
  color: var(--faint);
  font-size: 0.78rem;
}

.preview-outcome {
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Outcome words carry the meaning; border style and color only reinforce them. */
.preview-outcome[data-outcome="SAFE_TO_SEND"],
.preview-outcome[data-outcome="RESTORED"] {
  border-color: rgba(119, 227, 161, 0.55);
  color: var(--green);
}

.preview-outcome[data-outcome="REVIEW_REQUIRED"],
.preview-outcome[data-outcome="NO_IDENTIFIERS"] {
  border-style: dashed;
  border-color: rgba(244, 199, 107, 0.7);
  color: var(--amber);
}

.preview-outcome[data-outcome="BLOCKED"] {
  border: 3px double var(--coral);
  color: var(--coral);
}

.lab-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.demo-output mark {
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(100, 230, 218, 0.12);
}

.token-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.public-work {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.public-work-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.public-work-heading h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.public-work-heading p {
  margin: 0 0 8px;
  color: var(--muted);
}

.public-work-boundary {
  padding-left: 12px;
  border-left: 2px solid var(--amber);
  font-size: 0.88rem;
}

.public-work-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

/* The private research prototype sits under the documentation cards, visually related but separate. */
.research-block {
  margin-top: 26px;
}

.research-title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.research-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 31, 43, 0.6);
}

.research-card h5 {
  margin: 0;
  font-size: 1.05rem;
}

.research-card p {
  margin: 0;
  color: var(--muted);
}

.research-card .research-boundary {
  color: var(--text);
}

.public-work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(16, 31, 43, 0.6);
}

.public-work-card h4 {
  margin: 0;
  font-size: 1.05rem;
}

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

.public-work-card .project-eyebrow {
  margin: 0;
}

.public-work-card .button,
.link-pending {
  align-self: flex-start;
  margin-top: auto;
}

/* Not a control: plain text that says the link is waiting for approval. */
.link-pending {
  padding: 8px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* Card glow and status-badge colors, keyed by data attributes (no inline styles under the CSP). */
.project-card[data-project-id="governed-content"] { --project-glow: rgba(100, 230, 218, 0.16); }
.project-card[data-project-id="privacy-boundary"] { --project-glow: rgba(244, 199, 107, 0.15); }
.project-card[data-project-id="aiuniq"] { --project-glow: rgba(122, 168, 255, 0.16); }
.status-badge[data-tone="green"] { --badge-color: #77e3a1; }
.status-badge[data-tone="amber"] { --badge-color: #f4c76b; }
.status-badge[data-tone="blue"] { --badge-color: #7aa8ff; }

.token-chip {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.timeline {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 0.35fr 0.75fr 1.4fr;
  gap: 36px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.timeline-role h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.timeline-role p {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.timeline-detail > p {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.capability-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 31, 43, 0.66);
}

.capability-card > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.capability-card h3 {
  margin: 58px 0 12px;
  font-size: 1.45rem;
}

.capability-card p {
  color: var(--muted);
}

/* A capability's related lab, below its skills. */
.capability-lab-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.capability-lab-link span {
  margin-left: 7px;
}

.contact-section {
  padding-bottom: 44px !important;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  padding: clamp(36px, 7vw, 82px);
  border: 1px solid rgba(100, 230, 218, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(122, 168, 255, 0.19), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(100, 230, 218, 0.13), transparent 40%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel p:not(.section-label) {
  max-width: 650px;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

/* Lives in the header bar so it never floats over page content or actions. */
.assistant-launcher {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-left: 18px;
  padding: 0 14px;
  border: 1px solid rgba(100, 230, 218, 0.33);
  border-radius: 12px;
  color: var(--text);
  background: rgba(100, 230, 218, 0.06);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease;
}

.assistant-launcher:hover,
.assistant-launcher[aria-expanded="true"] {
  border-color: rgba(100, 230, 218, 0.6);
  background: rgba(100, 230, 218, 0.12);
}

.assistant-icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.portfolio-assistant {
  position: fixed;
  top: calc(84px + env(safe-area-inset-top, 0px));
  right: max(24px, calc((100vw - 1180px) / 2), env(safe-area-inset-right, 0px));
  z-index: 60;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(9, 21, 30, 0.97);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-assistant.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.assistant-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-header strong,
.assistant-header small {
  display: block;
}

.assistant-header strong {
  font-size: 0.84rem;
}

.assistant-header small {
  color: var(--faint);
  font-size: 0.64rem;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
}

.assistant-messages {
  min-height: 170px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 13px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.assistant-message {
  align-self: flex-start;
  color: var(--muted);
  background: var(--panel-light);
  border-bottom-left-radius: 4px;
}

.guide-answer {
  margin: 0;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.guide-links a:hover {
  border-color: var(--cyan);
}

.user-message {
  align-self: flex-end;
  color: #031316;
  background: var(--cyan);
  border-bottom-right-radius: 4px;
}

.assistant-prompts {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 16px 12px;
}

.prompt-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.assistant-form button {
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: var(--cyan);
  cursor: pointer;
  font-size: 1.05rem;
}

dialog {
  width: min(940px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  color: var(--text);
  background: #0a1720;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(1, 7, 10, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-shell,
.tour-shell {
  position: relative;
  padding: clamp(26px, 5vw, 54px);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.dialog-hero {
  padding-right: 45px;
}

.dialog-hero h2 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.dialog-hero > p {
  max-width: 760px;
  color: var(--muted);
}

.claim-note {
  margin: 24px 0 34px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 199, 107, 0.24);
  border-radius: 12px;
  color: #d8c69e;
  background: rgba(244, 199, 107, 0.05);
  font-size: 0.78rem;
}

.dialog-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dialog-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.dialog-block.full {
  grid-column: 1 / -1;
}

.dialog-block h3 {
  font-size: 0.95rem;
}

.dialog-block p,
.dialog-block li {
  color: var(--muted);
  font-size: 0.82rem;
}

.dialog-block ul {
  margin: 0;
  padding-left: 18px;
}

.dialog-block li + li {
  margin-top: 9px;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tour-dialog {
  width: min(680px, calc(100% - 30px));
}

.tour-shell {
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.tour-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.tour-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--cyan);
  transition: width 240ms ease;
}

.tour-step-label {
  margin-top: 20px;
  color: var(--cyan);
}

.tour-shell h2 {
  margin: 52px 0 18px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.tour-shell > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.tour-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tour-evidence span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.72rem;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 36px;
}

.toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 590px;
  }

  .system-console {
    right: 8%;
  }

  .story-grid,
  .lab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .project-card,
  .project-card:first-child {
    grid-column: span 12;
  }

  .system-explorer {
    grid-template-columns: 1fr;
  }

  .system-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .system-tab {
    flex: 0 0 200px;
  }

  .assistant-launcher {
    width: 44px;
    padding: 0;
  }

  .assistant-launcher-label {
    display: none;
  }

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

  .system-legend {
    justify-self: start;
  }

  .flow-canvas {
    align-items: stretch;
    flex-direction: column;
    overflow: visible;
    padding-block: 28px;
  }

  /* Shrink to the glyph before rotating; a stretched box would rotate across the nodes. */
  .flow-arrow {
    flex-basis: auto;
    align-self: center;
    line-height: 1;
    transform: rotate(90deg);
  }

  .flow-node {
    flex: none;
    width: 100%;
    min-height: 80px;
  }

  .timeline-item {
    grid-template-columns: 0.35fr 0.65fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .nav-shell {
    width: min(100% - 30px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1180px);
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .assistant-launcher {
    margin-left: 10px;
  }

  .nav-links {
    position: absolute;
    top: calc(68px + env(safe-area-inset-top, 0px));
    right: 15px;
    left: 15px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(8, 19, 27, 0.97);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a,
  .nav-links .button {
    width: 100%;
    padding: 12px;
  }

  .hero {
    padding-block: 45px 70px;
  }

  .eyebrow-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    align-self: center;
  }

  .proof-strip {
    gap: 10px;
  }

  .proof-strip strong {
    font-size: 0.98rem;
  }

  .hero-visual {
    min-height: 510px;
  }

  .profile-orbit {
    width: min(360px, 92vw);
  }

  .profile-card {
    width: 180px;
  }

  .system-console {
    right: 0;
    bottom: 0;
  }

  .signal-track {
    justify-content: flex-start;
    animation: marquee 28s linear infinite;
  }

  @keyframes marquee {
    to { transform: translateX(-45%); }
  }

  section.section-shell {
    padding-block: 84px;
  }

  .section-index {
    margin-bottom: 42px;
  }

  .principle {
    grid-template-columns: 34px 1fr;
  }

  .principle p {
    grid-column: 2;
  }

  .project-card {
    min-height: 0;
    padding: 23px;
  }

  .project-eyebrow,
  .project-card:first-child .project-eyebrow {
    margin-top: 38px;
  }

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

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .system-stage {
    padding: 21px;
  }

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

  .demo-header {
    flex-direction: column;
  }

  .demo-actions {
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .capability-grid,
  .contact-panel,
  .dialog-columns {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 250px;
  }

  .contact-actions {
    align-self: stretch;
  }

  footer {
    flex-direction: column;
  }

  .portfolio-assistant {
    right: calc(15px + env(safe-area-inset-right, 0px));
    width: calc(100vw - 30px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 450px) {
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual {
    min-height: 440px;
  }

  .orbit-label {
    display: none;
  }

  .profile-orbit {
    width: 310px;
  }

  .system-console {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* AI-generated illustrations: shown whole, with a discreet but readable caption outside the image that says what they
   are ("AI-generated illustration."). */
.ai-scene {
  margin: 32px 0 0;
}

.ai-scene img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-strong, rgba(255, 255, 255, 0.16));
  border-radius: 20px;
}

.ai-scene figcaption {
  margin-top: 10px;
  color: var(--muted, #9eb1ba);
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* Hero name line, plain-language services and the working-demonstrations showcase (2026-09-26). */
.hero-name {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-services {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-services li {
  position: relative;
  padding-left: 22px;
}

.hero-services li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-services strong {
  color: var(--text);
}

.demo-showcase {
  padding-block: 24px 72px;
}

.demo-showcase-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.demo-showcase-head h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.demo-showcase-head p:last-child {
  color: var(--muted);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 31, 43, 0.66);
}

.demo-number {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.demo-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.demo-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.demo-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.demo-link:hover,
.demo-link:focus-visible {
  text-decoration: underline;
}

.demo-more {
  margin: 20px 0 0;
}

/* A real product screenshot (not an illustration), linked to the page it shows. */
.product-shot {
  margin: 32px 0 0;
}

.product-shot a {
  display: block;
  border-radius: 20px;
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.product-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* Standalone text links in the hero actions and under the showcase get full-size touch targets. */
.hero-actions .text-link,
.demo-more .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
