:root {
  --system-ink: #050914;
  --system-panel: #08101d;
  --system-paper: #eef4ff;
  --system-muted: rgba(224, 233, 247, 0.62);
  --system-line: rgba(170, 194, 226, 0.16);
  --system-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.project-page[data-project="rexlink"] {
  --accent: #4c91ff;
  --accent-rgb: 76, 145, 255;
}

.project-page[data-project="graph-workbench"] {
  --accent: #4ecf9c;
  --accent-rgb: 78, 207, 156;
}

.project-page[data-project="alfred"] {
  --accent: #9e7cff;
  --accent-rgb: 158, 124, 255;
}

.project-hero-action {
  width: max-content;
  margin-top: 32px;
}

.rexlink-system-placeholder {
  background:
    radial-gradient(circle at 76% 48%, rgba(var(--accent-rgb), 0.22), transparent 24%),
    linear-gradient(135deg, #07101e 0%, #08101d 52%, #050914 100%);
}

.rexlink-placeholder-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 16%, black 62%, transparent);
}

.rexlink-placeholder-flow,
.rexlink-capture-flow {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 18px;
  align-items: center;
  color: rgba(220, 233, 251, 0.72);
  font: 11px/1.4 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.rexlink-placeholder-flow {
  top: 46%;
  right: 7%;
}

.rexlink-placeholder-flow span,
.rexlink-capture-flow span {
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background: rgba(5, 9, 20, 0.72);
  padding: 15px 18px;
}

.rexlink-placeholder-flow i,
.rexlink-capture-flow i {
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.82));
}

.rexlink-capture-pending {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--system-line);
  border-radius: 4px;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(var(--accent-rgb), 0.12), transparent 30%),
    #07101c;
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.rexlink-capture-flow {
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rexlink-capture-copy {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--system-line);
  color: var(--system-muted);
  font: 11px/1.6 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.rexlink-capture-copy strong {
  color: var(--accent);
  font-weight: 600;
}

.rexlink-system-live {
  margin: 0;
  background:
    radial-gradient(circle at 76% 40%, rgba(var(--accent-rgb), 0.18), transparent 34%),
    linear-gradient(135deg, #07101e 0%, #08101d 52%, #050914 100%);
}

.rexlink-system-live img {
  position: absolute;
  top: 18%;
  right: -4%;
  width: min(920px, 70vw);
  height: auto;
  border: 1px solid rgba(205, 221, 244, 0.18);
  border-radius: 10px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.46);
  opacity: 0.88;
}

.rexlink-system-live figcaption {
  position: absolute;
  top: calc(18% + min(260px, 20vw));
  right: 6%;
  display: grid;
  gap: 6px;
  color: rgba(225, 235, 250, 0.62);
  font: 10px/1.4 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.09em;
  text-align: right;
}

.rexlink-system-live figcaption strong {
  color: rgba(238, 244, 255, 0.9);
  font-weight: 600;
}

.rexlink-live-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.rexlink-live-frame {
  display: grid;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--system-line);
  border-radius: 8px;
  background: #07101c;
}

.rexlink-live-screen {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    radial-gradient(circle at 70% 34%, rgba(var(--accent-rgb), 0.12), transparent 36%),
    #07101c;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.rexlink-workspace-frame .rexlink-live-screen img {
  position: absolute;
  top: 52px;
  right: 34px;
  left: 34px;
  width: calc(100% - 68px);
  height: auto;
  border: 1px solid rgba(14, 33, 61, 0.14);
  border-radius: 8px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.3);
}

.rexlink-workspace-frame .rexlink-live-screen::after {
  position: absolute;
  right: 34px;
  bottom: 48px;
  left: 34px;
  height: 92px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05), transparent 36%),
    rgba(5, 9, 20, 0.72);
  content: "PROJECT CONTEXT  —  AGENT WORKFLOW  —  APPROVED OUTPUT";
  color: rgba(220, 233, 251, 0.58);
  font: 10px/92px "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-align: center;
}

.rexlink-agent-frame .rexlink-live-screen img {
  position: absolute;
  inset: 24px auto 24px 24px;
  width: auto;
  height: calc(100% - 48px);
  max-width: none;
  object-fit: cover;
  object-position: left top;
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, 0.34));
}

.rexlink-live-frame figcaption {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--system-line);
}

.rexlink-live-frame figcaption span {
  color: var(--accent);
  font: 10px/1.4 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.09em;
}

.rexlink-live-frame figcaption strong {
  font-size: 18px;
}

.rexlink-live-frame figcaption small {
  color: var(--system-muted);
  font-size: 12px;
  line-height: 1.65;
}

.integration-band {
  display: grid;
  grid-template-columns: minmax(200px, 0.38fr) minmax(0, 1fr);
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--system-line);
  padding: 112px 48px;
}

.integration-band h2 {
  max-width: 900px;
  margin: 0 0 48px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 560;
  line-height: 1.18;
}

.integration-band article {
  scroll-margin-top: 120px;
  border-top: 1px solid var(--system-line);
  padding: 30px 0;
}

.integration-band article span {
  color: var(--accent);
  font: 11px/1.4 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.integration-band article h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.integration-band article p {
  max-width: 720px;
  margin: 0;
  color: var(--system-muted);
  line-height: 1.8;
}

.graph-system-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 44px;
  align-items: center;
  background: #06110f;
  padding: 16vh 9vw 8vh 48vw;
}

.graph-system-visual::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.98) 0%, rgba(5, 9, 20, 0.76) 42%, rgba(5, 9, 20, 0.12) 78%),
    linear-gradient(to top, rgba(5, 9, 20, 0.72), transparent 52%);
}

.graph-column {
  display: grid;
  gap: 18px;
}

.graph-column span,
.graph-bridge {
  color: var(--accent);
  font: 11px/1.4 "SF Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.graph-column i {
  display: block;
  height: 62px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.05);
  transition: background-color 180ms ease, transform 260ms var(--system-ease-out);
}

.graph-column:hover i:nth-of-type(2) {
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateX(4px);
}

.graph-bridge {
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  padding: 12px;
}

.public-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--system-line);
}

.public-links a {
  min-height: 170px;
  border-right: 1px solid var(--system-line);
  padding: 24px;
  transition: background-color 180ms ease, transform 180ms var(--system-ease-out);
}

.public-links a:last-child {
  border-right: 0;
}

.public-links a:hover,
.public-links a:focus-visible {
  background: rgba(var(--accent-rgb), 0.06);
  outline: none;
  transform: translateY(-2px);
}

.public-links span {
  display: block;
  color: var(--accent);
  font: 11px/1.4 "SF Mono", ui-monospace, monospace;
}

.public-links strong {
  display: block;
  margin-top: 56px;
  font-size: 18px;
}

.alfred-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.alfred-gallery figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--system-line);
  background: #080c13;
  padding: 18px;
}

.alfred-gallery img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.alfred-gallery figcaption {
  margin-top: 14px;
  color: var(--system-muted);
  font: 11px/1.4 "SF Mono", ui-monospace, monospace;
}

.project-system {
  position: relative;
  z-index: 4;
  isolation: isolate;
  width: min(1360px, calc(100vw - 96px));
  margin: 0 auto 88px;
  padding: 96px 0 0;
  color: var(--system-paper);
}

.project-system::before {
  position: absolute;
  inset: 0 calc(50% - 50vw) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 157, 255, 0.42), transparent);
  content: "";
}

.project-system::after {
  position: absolute;
  inset: 0 calc(50% - 50vw) -88px;
  z-index: -1;
  background:
    linear-gradient(rgba(114, 153, 207, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 153, 207, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(76, 145, 255, 0.08), transparent 34%),
    var(--system-ink);
  background-size: 64px 64px, 64px 64px, auto, auto;
  content: "";
}

.system-thesis {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 72px;
  align-items: end;
  padding-bottom: 64px;
}

.system-kicker,
.system-card-order,
.system-card-status,
.evidence-strip span,
.delivery-case-band > span {
  margin: 0;
  color: rgba(177, 199, 232, 0.66);
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-thesis h2,
.system-section-head h2,
.system-cta h2 {
  max-width: 860px;
  margin: 14px 0 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 560;
  line-height: 1.08;
}

.system-thesis > p:last-child {
  margin: 0;
  color: var(--system-muted);
  font-size: 17px;
  line-height: 1.9;
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 14px;
}

.system-directory-main {
  background: var(--system-ink);
}

.system-directory {
  max-width: 1360px;
  margin: 0 auto;
}

.system-grid-directory {
  min-height: 514px;
}

.system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--system-line);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(var(--system-rgb), 0.08), rgba(8, 16, 29, 0.92) 58%);
  padding: 30px;
  color: var(--system-paper);
  transition: border-color 220ms ease, transform 260ms var(--system-ease-out);
}

.system-card::after {
  position: absolute;
  right: -12%;
  bottom: -48%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--system-rgb), 0.22);
  border-radius: 50%;
  content: "";
  opacity: 0.7;
  transition: opacity 220ms ease, transform 260ms var(--system-ease-out);
}

.system-card > * {
  position: relative;
  z-index: 1;
}

.system-card-featured {
  grid-row: 1 / 3;
  min-height: 514px;
}

.system-card h3,
.system-grid-directory .system-card h2 {
  margin: auto 0 12px;
  color: var(--system-paper);
  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 580;
  line-height: 1;
}

.system-card:not(.system-card-featured) h3,
.system-grid-directory .system-card:not(.system-card-featured) h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.system-card-status {
  color: rgb(var(--system-rgb));
}

.system-card-summary {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--system-muted);
  line-height: 1.75;
}

.system-card-link {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 560;
}

.system-card:focus-visible,
.system-button:focus-visible,
.delivery-case-band:focus-visible {
  outline: 2px solid rgb(var(--system-rgb, 76, 145, 255));
  outline-offset: 4px;
}

.system-card:active,
.system-button:active {
  transform: scale(0.97);
}

.progress-evidence,
.delivery-case-band,
.system-cta {
  margin-top: 88px;
  border-top: 1px solid var(--system-line);
  padding-top: 42px;
}

.system-section-head h2 {
  font-size: clamp(34px, 4vw, 58px);
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--system-line);
}

.evidence-strip article {
  min-height: 172px;
  border-right: 1px solid var(--system-line);
  padding: 22px 24px 18px 0;
}

.evidence-strip article + article {
  padding-left: 24px;
}

.evidence-strip article:last-child {
  border-right: 0;
}

.evidence-strip strong {
  display: block;
  margin-top: 34px;
  font-size: 16px;
  line-height: 1.55;
}

.delivery-case-band {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 42px;
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--system-line);
  color: var(--system-paper);
}

.delivery-case-band h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.delivery-case-band p {
  margin: 0;
  color: var(--system-muted);
}

.delivery-case-band > strong {
  font-size: 28px;
  transition: transform 220ms var(--system-ease-out);
}

.system-cta {
  padding-bottom: 18px;
  text-align: center;
}

.system-cta h2 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(36px, 4.5vw, 64px);
}

.system-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.system-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--system-line);
  border-radius: 4px;
  padding: 0 20px;
  color: var(--system-paper);
  transition: transform 180ms var(--system-ease-out), border-color 180ms ease;
}

.system-button-primary {
  border-color: rgba(76, 145, 255, 0.62);
  background: #4c91ff;
  color: #041020;
}

.reveal-system {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms var(--system-ease-out), transform 280ms var(--system-ease-out);
}

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

@media (hover: hover) and (pointer: fine) {
  .system-card:hover,
  .system-card:focus-visible {
    border-color: rgba(var(--system-rgb), 0.5);
    transform: translateY(-3px);
  }

  .system-card:hover::after,
  .system-card:focus-visible::after {
    opacity: 1;
    transform: scale(1.06);
  }

  .delivery-case-band:hover > strong,
  .delivery-case-band:focus-visible > strong {
    transform: translateX(5px);
  }
}

@media (max-width: 980px) {
  .project-system {
    width: min(760px, calc(100vw - 44px));
    padding-top: 72px;
  }

  .system-thesis {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .integration-band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .graph-system-visual {
    padding-left: 42vw;
  }

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

  .system-card-featured {
    grid-row: auto;
    min-height: 380px;
  }

  .evidence-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-strip article:nth-child(2) {
    border-right: 0;
  }

  .delivery-case-band {
    grid-template-columns: 1fr auto;
  }

  .delivery-case-band > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .rexlink-placeholder-flow {
    right: -32%;
    opacity: 0.46;
    transform: scale(0.72);
  }

  .rexlink-capture-pending {
    min-height: 420px;
  }

  .rexlink-capture-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(230px, calc(100% - 40px));
    text-align: center;
  }

  .rexlink-capture-flow i {
    width: 1px;
    height: 22px;
    margin: 0 auto;
    background: linear-gradient(rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.82));
  }

  .rexlink-capture-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .rexlink-system-live img {
    top: 22%;
    right: -38%;
    width: 118vw;
    opacity: 0.58;
  }

  .rexlink-system-live figcaption {
    display: none;
  }

  .rexlink-live-gallery {
    grid-template-columns: 1fr;
  }

  .rexlink-live-screen {
    min-height: 340px;
  }

  .rexlink-workspace-frame .rexlink-live-screen img {
    top: 34px;
    right: 18px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .rexlink-workspace-frame .rexlink-live-screen::after {
    right: 18px;
    bottom: 34px;
    left: 18px;
    content: "CONTEXT  —  AGENT  —  OUTPUT";
  }

  .alfred-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-system {
    width: calc(100vw - 36px);
    margin-bottom: 54px;
    padding-top: 58px;
  }

  .integration-band {
    padding: 76px 20px;
  }

  .graph-system-visual {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-content: start;
    padding: 17vh 20px 48vh;
    opacity: 0.56;
  }

  .graph-column {
    gap: 8px;
  }

  .graph-column i {
    height: 42px;
  }

  .graph-bridge {
    padding: 8px 5px;
    font-size: 8px;
  }

  .public-links {
    grid-template-columns: 1fr;
  }

  .public-links a,
  .public-links a:last-child {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--system-line);
  }

  .public-links strong {
    margin-top: 34px;
  }

  .system-card,
  .system-card-featured {
    min-height: 300px;
    padding: 22px;
  }

  .evidence-strip {
    grid-template-columns: 1fr;
  }

  .evidence-strip article,
  .evidence-strip article + article {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--system-line);
    padding: 20px 0;
  }

  .delivery-case-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .system-cta-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-system {
    opacity: 1;
    transform: none;
  }
}

/* Rexlink main-product case */
.rexlink-case {
  overflow: clip;
}

.rexlink-case-hero {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  min-height: min(940px, 100svh);
}

.rexlink-case-hero .project-hero-copy {
  position: relative;
  z-index: 2;
  width: auto;
  min-width: 0;
}

.rexlink-case-hero .project-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--system-muted);
  font: 600 0.68rem/1.4 "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.rexlink-case-hero .status-dot {
  flex: 0 0 auto;
  box-shadow: none;
}

.rexlink-eyebrow,
.rexlink-human-gate > span {
  color: var(--accent);
  font: 600 0.68rem/1.4 "SF Mono", "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.rexlink-value > .band-label,
.rexlink-walkthrough .band-label,
.rexlink-objects .band-label,
.rexlink-roles .band-label,
.rexlink-integrations .band-label,
.rexlink-surface-copy > span {
  display: none;
}

.rexlink-walkthrough-list > li > span,
.rexlink-role-list article > span {
  color: rgb(224 233 247 / 40%);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  letter-spacing: normal;
  line-height: 1;
}

.rexlink-eyebrow {
  margin: 0 0 1rem;
}

.rexlink-case-hero h1 {
  font-size: clamp(3.5rem, 6.2vw, 5.5rem);
  line-height: 0.98;
}

.rexlink-case-hero .hero-statement {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.65;
}

.rexlink-hero-context {
  max-width: 37rem;
  margin: 1rem 0 0;
  color: var(--system-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.rexlink-case .project-hero-action {
  white-space: nowrap;
}

.rexlink-product-shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--system-line);
  border-radius: 4px;
  background: #0a0d12;
  box-shadow: 0 28px 80px rgb(1 5 12 / 34%);
}

.rexlink-product-shot img,
.rexlink-surface figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rexlink-product-shot figcaption,
.rexlink-surface figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--system-line);
  color: var(--system-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.rexlink-product-shot figcaption span,
.rexlink-surface figcaption span {
  flex: 0 0 auto;
  color: var(--accent);
}

.rexlink-product-shot figcaption strong,
.rexlink-surface figcaption strong {
  color: var(--system-paper);
  font-weight: 560;
  text-align: right;
}

.rexlink-case-content {
  display: grid;
  gap: clamp(6rem, 11vw, 11rem);
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--system-ink);
}

.rexlink-case-content > section {
  width: min(1440px, calc(100% - 96px));
  min-width: 0;
  margin-inline: auto;
}

.rexlink-case-content h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 560;
  line-height: 1.18;
}

.rexlink-case-content h3 {
  margin: 0;
}

.rexlink-section-head {
  display: grid;
  gap: 1.35rem;
  max-width: 62rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.rexlink-section-head > div:last-child > p {
  max-width: 47rem;
  margin: 1.25rem 0 0;
  color: var(--system-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.rexlink-value {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 3rem 7vw;
  align-items: start;
}

.rexlink-value > .band-label {
  grid-column: 1 / -1;
}

.rexlink-value-copy p {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--system-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.rexlink-value-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--system-line);
  list-style: none;
}

.rexlink-value-list li {
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 0.65fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--system-line);
}

.rexlink-value-list li > span {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.rexlink-value-list strong {
  line-height: 1.55;
}

.rexlink-value-list p {
  margin: 0;
  color: var(--system-muted);
  line-height: 1.75;
}

.rexlink-surfaces {
  display: grid;
  gap: clamp(5rem, 9vw, 9rem);
}

.rexlink-surfaces > .rexlink-section-head {
  margin-bottom: 0;
}

.rexlink-surface {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.rexlink-surface--reverse {
  grid-template-columns: minmax(0, 1.58fr) minmax(210px, 0.42fr);
}

.rexlink-surface--reverse > .rexlink-surface-copy {
  grid-row: 1;
  grid-column: 2;
}

.rexlink-surface--reverse > figure,
.rexlink-surface--reverse > .rexlink-surface-pair {
  grid-row: 1;
  grid-column: 1;
}

.rexlink-surface-copy {
  position: sticky;
  top: 7rem;
}

.rexlink-surface-copy h3 {
  margin-top: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  font-weight: 580;
}

.rexlink-surface-copy p {
  margin: 1.1rem 0 0;
  color: var(--system-muted);
  line-height: 1.85;
}

.rexlink-surface figure {
  min-width: 0;
  margin: 0;
}

.rexlink-surface-pair {
  display: grid;
  min-width: 0;
  gap: 1.5rem;
}

.rexlink-walkthrough-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--system-line);
  list-style: none;
}

.rexlink-walkthrough-list li {
  min-width: 0;
  min-height: 18rem;
  padding: 1.4rem;
  border-right: 1px solid var(--system-line);
}

.rexlink-walkthrough-list li:last-child {
  border-right: 0;
}

.rexlink-walkthrough-list h3 {
  margin-top: 3.8rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.rexlink-walkthrough-list p {
  margin: 1rem 0 0;
  color: var(--system-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.rexlink-object-system {
  margin-top: 3rem;
  border: 1px solid var(--system-line);
}

.rexlink-object-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  margin: 0;
  background: var(--system-line);
}

.rexlink-object-flow > div {
  position: relative;
  min-width: 0;
  min-height: 13rem;
  padding: 1.4rem;
  background: var(--system-panel);
}

.rexlink-object-flow > div:not(:last-child)::after {
  position: absolute;
  top: 2rem;
  right: -0.8rem;
  z-index: 2;
  color: var(--accent);
  content: "→";
}

.rexlink-object-flow dt {
  overflow-wrap: anywhere;
  color: var(--system-paper);
  font: 600 0.95rem/1.45 "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

.rexlink-object-flow dd {
  margin: 1.5rem 0 0;
  color: var(--system-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.rexlink-human-gate {
  display: grid;
  grid-template-columns: minmax(8rem, 0.75fr) minmax(9rem, 0.9fr) minmax(0, 2.35fr);
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 1.15rem 1.4rem;
  background: var(--accent);
  color: var(--system-ink);
}

.rexlink-human-gate > span {
  color: inherit;
}

.rexlink-human-gate h3 {
  overflow-wrap: anywhere;
  font: 650 1rem/1.4 "SF Mono", "JetBrains Mono", ui-monospace, monospace;
}

.rexlink-human-gate p {
  margin: 0;
  color: inherit;
  line-height: 1.65;
}

.rexlink-role-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.5rem;
  border-top: 1px solid var(--system-line);
}

.rexlink-role-list article {
  min-width: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--system-line);
}

.rexlink-role-list article:last-child {
  border-right: 0;
}

.rexlink-role-list h3 {
  margin-top: 3rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.rexlink-role-list p {
  margin: 1rem 0 0;
  color: var(--system-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.rexlink-integrations {
  display: grid;
  grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(3rem, 7vw, 7rem);
  max-width: none;
  padding: 0;
  border-top: 1px solid var(--system-line);
}

.rexlink-integrations > .rexlink-section-head {
  margin: 0;
  padding-top: 2.25rem;
}

.rexlink-integrations h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.rexlink-integrations .integration-grid {
  display: grid;
}

.rexlink-integrations article {
  min-width: 0;
  padding: 2.25rem 0;
  border-top: 0;
  border-bottom: 1px solid var(--system-line);
}

.rexlink-integrations article h3 {
  margin: 1rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.rexlink-integrations article p {
  margin-top: 0.9rem;
}

.rexlink-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  scroll-margin-top: 120px;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--accent);
}

.rexlink-boundary .band-label {
  margin-bottom: 1.25rem;
}

.rexlink-boundary-copy p {
  margin: 0;
  color: var(--system-muted);
  line-height: 1.85;
}

.rexlink-boundary-copy p + p {
  margin-top: 1.4rem;
}

@media (max-width: 980px) {
  .rexlink-case-hero,
  .rexlink-value,
  .rexlink-boundary,
  .rexlink-integrations {
    grid-template-columns: 1fr;
  }

  .rexlink-case-hero {
    min-height: auto;
  }

  .rexlink-surface,
  .rexlink-surface--reverse {
    grid-template-columns: 1fr;
  }

  .rexlink-surface--reverse > .rexlink-surface-copy,
  .rexlink-surface--reverse > figure,
  .rexlink-surface--reverse > .rexlink-surface-pair {
    grid-row: auto;
    grid-column: auto;
  }

  .rexlink-surface-copy {
    position: static;
  }

  .rexlink-walkthrough-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rexlink-walkthrough-list li {
    min-height: 14rem;
    border-bottom: 1px solid var(--system-line);
  }

  .rexlink-walkthrough-list li:nth-child(even) {
    border-right: 0;
  }

  .rexlink-walkthrough-list li:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .rexlink-object-flow {
    grid-template-columns: 1fr;
  }

  .rexlink-object-flow > div:last-child {
    grid-column: auto;
  }

  .rexlink-object-flow > div:not(:last-child)::after {
    top: auto;
    right: 1rem;
    bottom: -0.8rem;
    content: "↓";
  }

  .rexlink-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rexlink-role-list article {
    border-bottom: 1px solid var(--system-line);
  }

  .rexlink-role-list article:nth-child(even) {
    border-right: 0;
  }

  .rexlink-integrations {
    gap: 1rem;
  }
}

@media (max-width: 780px) {
  .rexlink-case-hero {
    gap: 3rem;
    min-height: auto;
    padding: 7rem 20px 4rem;
  }

  .rexlink-case-hero h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .rexlink-case-content {
    gap: 6rem;
    padding: 6rem 0;
  }

  .rexlink-case-content > section {
    width: calc(100% - 40px);
  }

  .rexlink-case-content h2,
  .rexlink-integrations h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .rexlink-value-list li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .rexlink-value-list li p {
    grid-column: 2;
  }

  .rexlink-walkthrough-list,
  .rexlink-object-flow,
  .rexlink-role-list {
    grid-template-columns: 1fr;
  }

  .rexlink-walkthrough-list li,
  .rexlink-walkthrough-list li:last-child,
  .rexlink-role-list article {
    grid-column: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--system-line);
  }

  .rexlink-walkthrough-list li:last-child,
  .rexlink-role-list article:last-child {
    border-bottom: 0;
  }

  .rexlink-walkthrough-list h3,
  .rexlink-role-list h3 {
    margin-top: 2rem;
  }

  .rexlink-object-flow > div,
  .rexlink-object-flow > div:last-child {
    grid-column: auto;
    min-height: auto;
  }

  .rexlink-human-gate {
    grid-template-columns: 1fr;
  }

  .rexlink-product-shot figcaption,
  .rexlink-surface figcaption {
    display: grid;
  }

  .rexlink-product-shot figcaption strong,
  .rexlink-surface figcaption strong {
    text-align: left;
  }

  .rexlink-case .system-button {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rexlink-case .reveal,
  .rexlink-case .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
