:root {
  color-scheme: dark;
  --ink: #d9f7ec;
  --ink-strong: #f2fff9;
  --muted: #83a99c;
  --faint: #44675d;
  --surface: #071011;
  --surface-raised: #0b1717;
  --panel: rgba(9, 24, 22, 0.92);
  --line: rgba(126, 230, 194, 0.18);
  --line-strong: rgba(126, 230, 194, 0.4);
  --mint: #7ee6c2;
  --mint-bright: #b4ffe5;
  --cyan: #65d7ec;
  --amber: #ffc66d;
  --rose: #ff8e9d;
  --violet: #a99dff;
  /* The shared switcher kit reads --color-accent; point it at blueprint's mint. */
  --color-accent: #7ee6c2;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--surface);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% -8%, rgba(70, 182, 149, 0.1), transparent 30rem),
    var(--surface);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

::selection {
  color: #04100c;
  background: var(--mint);
}

:focus-visible {
  outline: 2px solid var(--mint-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #03110c;
  background: var(--mint-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(100% - 3rem, 1440px);
  min-height: 5.5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(126, 230, 194, 0.04);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  content: "";
  background: var(--mint);
}

.brand-mark::before {
  width: 1.2rem;
  height: 1px;
}

.brand-mark::after {
  width: 1px;
  height: 1.2rem;
}

.brand-mark span:nth-child(1) {
  width: 0.3rem;
  height: 0.3rem;
  transform: translate(-0.55rem, -0.55rem);
}

.brand-mark span:nth-child(2) {
  width: 0.3rem;
  height: 0.3rem;
  transform: translate(0.55rem, 0.55rem);
}

.brand-mark span:nth-child(3) {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  box-shadow: 0 0 0.7rem var(--mint);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--ink-strong);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header nav a,
.header-tour {
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-header nav a:hover,
.header-tour:hover {
  color: var(--mint-bright);
}

.header-tour {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
}

.status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0.65rem var(--mint);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.portfolio-link {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
}

main {
  width: min(100% - 3rem, 1440px);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: min(47rem, calc(100svh - 5.5rem));
  padding: clamp(5rem, 10vw, 9rem) 0 6rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 1.1rem;
  color: var(--amber);
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink-strong);
  font-weight: 520;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.8rem;
  font-size: clamp(3.4rem, 8vw, 8.6rem);
  line-height: 0.86;
}

h1 em {
  color: var(--mint-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-shadow: 0 0 2.5rem rgba(126, 230, 194, 0.16);
}

.lede {
  max-width: 42rem;
  margin-bottom: 2.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.hero-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.75rem 1.05rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(126, 230, 194, 0.025);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--mint);
  color: var(--mint-bright);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--mint);
  color: #03110c;
  background: var(--mint);
}

.button-primary:hover {
  color: #03110c;
  background: var(--mint-bright);
}

.hero-spec {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line) 1px, transparent 1px),
    rgba(7, 18, 17, 0.65);
  background-size: 2rem 2rem;
  box-shadow: 1.1rem 1.1rem 0 rgba(126, 230, 194, 0.025);
}

.hero-spec::before,
.hero-spec::after {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-color: var(--mint);
  content: "";
}

.hero-spec::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hero-spec::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.spec-heading,
.frame-footer,
.frame-coordinates {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.hero-spec dl {
  margin: 2.6rem 0 2rem;
}

.hero-spec dl div {
  display: flex;
  padding: 0.72rem 0;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dotted var(--line-strong);
}

.hero-spec dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-spec dd {
  margin: 0;
  color: var(--mint-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hero-spec > p {
  margin: 0;
  color: var(--faint);
  font-size: 0.73rem;
}

.map-section,
.architecture,
.principles,
.closing {
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
}

.case-study-brief {
  display: grid;
  padding: 0 0 clamp(5.5rem, 10vw, 9rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.case-study-brief > div {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--surface);
}

.case-study-brief .eyebrow {
  margin-bottom: 1rem;
}

.case-study-brief strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink-strong);
  font-size: 0.95rem;
}

.case-study-brief div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-heading {
  display: flex;
  margin-bottom: 2.8rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.7rem;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
}

.section-intro {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--muted);
}

.map-legend {
  display: flex;
  gap: 1.4rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-line {
  width: 1.6rem;
  height: 1px;
  background: var(--mint);
}

.legend-node {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--mint);
  background: rgba(126, 230, 194, 0.12);
}

.blueprint-frame {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  background: #071211;
}

.frame-coordinates {
  margin-bottom: 0.7rem;
}

.spatial-map {
  position: relative;
  min-height: clamp(35rem, 49vw, 48rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(126, 230, 194, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 230, 194, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(126, 230, 194, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 230, 194, 0.025) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(27, 82, 65, 0.13), transparent 55%);
  background-size: 8% 10%, 10% 8%, 2% 2.5%, 2.5% 2%;
}

.spatial-map::before,
.spatial-map::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.spatial-map::before {
  inset: 3.5% 2.5%;
  border: 1px dashed rgba(126, 230, 194, 0.09);
}

.spatial-map::after {
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(126, 230, 194, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.connection-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-map path {
  fill: none;
  stroke: rgba(126, 230, 194, 0.25);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  marker-end: url(#arrow);
  transition: stroke 200ms ease, filter 200ms ease;
}

.connection-map marker path {
  fill: var(--mint);
  stroke: none;
}

.connection-map path.flow-active {
  stroke: var(--mint-bright);
  stroke-width: 2;
  stroke-dasharray: 8 9;
  filter: drop-shadow(0 0 0.35rem var(--mint));
  animation: flow-dash 0.65s linear infinite;
}

.map-region-label {
  position: absolute;
  z-index: 2;
  color: rgba(126, 230, 194, 0.28);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.region-label-edge { top: 35%; left: 4%; }
.region-label-experience { top: 6%; left: 55%; }
.region-label-content { top: 38%; left: 55%; }
.region-label-service { top: 38%; left: 76%; }
.region-label-delivery { top: 69%; left: 54%; }

.system-node {
  position: absolute;
  z-index: 3;
  top: var(--node-y);
  left: var(--node-x);
  display: flex;
  width: clamp(7.4rem, 11.5vw, 10.4rem);
  min-height: 4.2rem;
  padding: 0.7rem 0.75rem;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--node-color, var(--mint));
  color: var(--ink);
  background: rgba(7, 20, 18, 0.96);
  box-shadow: 0 0 0 0 rgba(126, 230, 194, 0);
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.system-node::before,
.system-node::after {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  border-color: var(--node-color, var(--mint));
  content: "";
}

.system-node::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.system-node::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.system-node:hover,
.system-node.node-active {
  color: var(--ink-strong);
  background: color-mix(in srgb, var(--node-color, var(--mint)) 10%, #071412);
  box-shadow: 0 0 1.6rem color-mix(in srgb, var(--node-color, var(--mint)) 22%, transparent);
  transform: translate(-50%, -50%) scale(1.045);
}

.system-node.node-tour-active {
  z-index: 5;
  box-shadow: 0 0 0 4px rgba(7, 16, 17, 0.85), 0 0 0 6px var(--node-color, var(--mint)), 0 0 2rem var(--node-color, var(--mint));
}

.node-experience { --node-color: var(--cyan); }
.node-edge { --node-color: var(--mint); }
.node-content { --node-color: var(--amber); }
.node-service { --node-color: var(--rose); }
.node-delivery { --node-color: var(--violet); }

.node-code {
  color: color-mix(in srgb, var(--node-color) 70%, var(--muted));
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.system-node strong {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.75vw, 0.7rem);
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.node-port {
  position: absolute;
  right: -0.28rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--node-color);
  background: #071211;
  transform: translateY(-50%) rotate(45deg);
}

.frame-footer {
  margin-top: 0.75rem;
}

.map-hint,
.mobile-flow {
  display: none;
}

.region-index {
  border-top: 1px solid var(--line-strong);
}

.region {
  display: grid;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 7vw, 7rem);
  scroll-margin-top: 6rem;
}

.region > header {
  display: grid;
  align-content: start;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}

.region > header > span {
  color: var(--region-color, var(--mint));
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.region h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.region header p {
  max-width: 28rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.region-experience { --region-color: var(--cyan); }
.region-edge { --region-color: var(--mint); }
.region-content { --region-color: var(--amber); }
.region-service { --region-color: var(--rose); }
.region-delivery { --region-color: var(--violet); }

.region-systems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.system-detail {
  display: flex;
  min-width: 0;
  min-height: 22rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(126, 230, 194, 0.035), transparent 60%);
  scroll-margin-top: 7rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.system-detail:target {
  border-color: var(--region-color);
  background: color-mix(in srgb, var(--region-color) 7%, transparent);
}

.detail-title span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--region-color);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.detail-title h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.detail-summary {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-columns {
  display: grid;
  margin-top: auto;
  padding-top: 1.4rem;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.detail-columns h5 {
  margin: 0 0 0.55rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-columns li {
  position: relative;
  margin: 0.38rem 0;
  padding-left: 0.75rem;
  color: var(--ink);
  font-size: 0.72rem;
}

.detail-columns li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.25rem;
  height: 1px;
  background: var(--region-color);
  content: "";
}

.evidence-list li {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.evidence-list a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.evidence-list a:hover {
  color: var(--ink-strong);
}

.detail-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--region-color);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.detail-link:hover {
  text-decoration: underline;
}

.principles {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(3rem, 9vw, 10rem);
}

.principles h2 {
  max-width: 8ch;
}

.principles ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.principles li {
  display: grid;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 2.5rem 1fr minmax(12rem, 1fr);
  align-items: baseline;
  gap: 1rem;
}

.principles li > span {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.principles li strong {
  color: var(--ink-strong);
  font-size: 0.88rem;
}

.principles li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.closing {
  text-align: center;
}

.closing h2 {
  margin-bottom: 1.2rem;
}

.closing > p:not(.eyebrow) {
  max-width: 40rem;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.closing .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  width: min(100% - 3rem, 1440px);
  min-height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.system-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: min(45rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--mint);
  color: var(--ink);
  background: #091615;
  box-shadow: 0 1.5rem 6rem rgba(0, 0, 0, 0.72), 0 0 2rem rgba(126, 230, 194, 0.13);
}

.system-dialog::backdrop {
  background: rgba(2, 7, 7, 0.82);
  backdrop-filter: blur(4px);
}

.system-dialog form {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: end;
  pointer-events: none;
}

.dialog-close {
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--mint-bright);
  background: #091615;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  cursor: pointer;
  pointer-events: auto;
}

#dialog-content .system-detail {
  min-height: auto;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 0;
  background: none;
}

#dialog-content .detail-summary {
  font-size: 0.95rem;
}

#dialog-content .detail-columns {
  margin-top: 1rem;
}

.tour-panel {
  position: fixed;
  z-index: 50;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  width: min(41rem, calc(100% - 3rem));
  padding: 1.25rem;
  border: 1px solid var(--mint);
  background: rgba(5, 18, 16, 0.96);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.65), 0 0 1.5rem rgba(126, 230, 194, 0.12);
  backdrop-filter: blur(12px);
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
}

.tour-panel[hidden] {
  display: none;
}

.tour-progress {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.tour-progress span {
  height: 2px;
  background: var(--line-strong);
}

.tour-progress span.complete,
.tour-progress span.current {
  background: var(--mint);
  box-shadow: 0 0 0.4rem rgba(126, 230, 194, 0.5);
}

.tour-copy .eyebrow {
  margin-bottom: 0.45rem;
}

.tour-copy h2 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.tour-copy > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tour-controls {
  display: grid;
  grid-template-columns: auto auto;
  align-content: end;
  gap: 0.5rem;
}

.tour-controls button {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  cursor: pointer;
}

.tour-controls .tour-next {
  border-color: var(--mint);
  color: #03110c;
  background: var(--mint);
}

.tour-controls .tour-exit {
  grid-column: 1 / -1;
  border: 0;
  color: var(--faint);
}

.tour-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.noscript-note {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--amber);
  color: var(--ink);
  background: #17150e;
  font-size: 0.75rem;
}

.error-page {
  display: flex;
  min-height: 100svh;
  padding: 2rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.error-page h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
}

.error-page > p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--muted);
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes flow-dash {
  to { stroke-dashoffset: -17; }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr minmax(17rem, 0.55fr);
    gap: 3rem;
  }

  .case-study-brief {
    grid-template-columns: 1fr;
  }

  .system-node {
    width: 7.5rem;
  }

  .region {
    grid-template-columns: 1fr;
  }

  .region > header {
    max-width: 38rem;
  }
}

@media (max-width: 780px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 2rem, 1440px);
  }

  .site-header {
    min-height: 4.6rem;
  }

  .site-header nav {
    gap: 0.8rem;
  }

  .site-header nav > a:not(.portfolio-link),
  .header-tour {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 4.5rem;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 6rem);
  }

  .hero-spec {
    max-width: 32rem;
  }

  .section-heading {
    display: block;
  }

  .section-intro,
  .map-legend {
    margin-top: 1.2rem;
  }

  .blueprint-frame {
    padding: 0.55rem;
  }

  .frame-coordinates {
    margin-bottom: 0.5rem;
    font-size: 0.5rem;
  }

  /* Keep the whole diagram on screen: the map keeps its proportions and every
     measurement inside it scales with the map's own width, so a phone gets a
     miniature of the desktop drawing rather than a cropped slice of it. */
  .spatial-map {
    container-type: inline-size;
    min-height: 0;
    aspect-ratio: 100 / 76;
    background-size: 8% 9%, 10% 7.5%, 2% 2.25%, 2.5% 1.9%;
  }

  .spatial-map::after {
    width: 2rem;
    height: 2rem;
  }

  .map-region-label {
    font-size: 1.5cqw;
    letter-spacing: 0.09em;
  }

  .connection-map path {
    stroke-width: 0.9;
  }

  .system-node {
    width: 11.8cqw;
    min-height: 0;
    padding: 0.85cqw;
    gap: 0.4cqw;
  }

  .system-node::before,
  .system-node::after {
    width: 1.1cqw;
    height: 1.1cqw;
    border-width: 1.5px;
  }

  .node-code {
    font-size: 1.3cqw;
    letter-spacing: 0.03em;
  }

  .system-node strong {
    font-size: 1.45cqw;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
  }

  .node-port {
    right: -0.55cqw;
    width: 1.1cqw;
    height: 1.1cqw;
  }

  .map-hint {
    display: block;
    margin: 0.7rem 0 0;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .frame-footer span:first-child {
    display: none;
  }

  .mobile-flow {
    display: block;
    margin-top: 1.4rem;
    padding: 0.4rem;
    border-top: 1px solid var(--line);
  }

  .mobile-flow-label {
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .mobile-flow ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-flow li {
    position: relative;
  }

  .mobile-flow li:not(:last-child)::after {
    position: absolute;
    bottom: -0.8rem;
    left: 1.15rem;
    width: 1px;
    height: 1.6rem;
    background: var(--mint);
    content: "";
  }

  .mobile-flow a {
    display: grid;
    margin: 0.8rem 0;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    background: rgba(126, 230, 194, 0.025);
    grid-template-columns: 2.4rem 1fr auto;
    gap: 0.65rem;
    text-decoration: none;
  }

  .mobile-flow a > span,
  .mobile-flow a small {
    color: var(--mint);
    font-family: var(--font-mono);
    font-size: 0.56rem;
  }

  .mobile-flow a strong {
    display: block;
    margin: 0.2rem 0 0.35rem;
    color: var(--ink-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
  }

  .mobile-flow a p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
  }

  .mobile-flow a i {
    color: var(--mint);
    font-style: normal;
  }

  .region-systems {
    grid-template-columns: 1fr;
  }

  .system-detail {
    min-height: auto;
  }

  .detail-columns {
    margin-top: 1rem;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles h2 {
    max-width: 12ch;
  }

  .principles li {
    grid-template-columns: 2rem 1fr;
  }

  .principles li p {
    grid-column: 2;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }

  .tour-panel {
    right: 0.75rem;
    /* Clear the switcher dial, which is pinned to this corner. Both are fixed,
       so lifting the panel above it settles the overlap for good. */
    bottom: 4.25rem;
    width: calc(100% - 1.5rem);
    max-height: calc(100dvh - 5rem);
    overflow: auto;
    grid-template-columns: 1fr;
  }

  .tour-controls {
    grid-template-columns: 1fr 1fr;
  }
}

/* The miniature map is sized in container units; browsers without container
   queries keep the previous linear request path instead of a broken diagram. */
@supports not (container-type: inline-size) {
  @media (max-width: 780px) {
    .spatial-map,
    .frame-coordinates,
    .map-hint {
      display: none;
    }

    .frame-footer span:first-child {
      display: inline;
    }

    .mobile-flow {
      margin-top: 0;
      border-top: 0;
    }
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand strong {
    font-size: 0.7rem;
  }

  .brand small {
    font-size: 0.5rem;
  }

  .portfolio-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.58rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .map-legend {
    display: grid;
    gap: 0.55rem;
  }

  .detail-columns {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .system-node,
  .hero-spec,
  .blueprint-frame,
  .system-detail,
  .system-dialog,
  .tour-panel {
    border: 1px solid CanvasText;
  }

  h1 em {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
/* Cross-document view transitions for version switching (cinematic switcher).
   This file is identical on every version branch — edit on `content` and
   cherry-pick, like the content contract.

   Browsers without cross-document view transitions ignore all of this and
   navigate normally (progressive enhancement). */

@view-transition {
  navigation: auto;
}

/* Identity anchor: tag the page's "Sean" headline with this class so it
   morphs between layouts. Exactly one element per page. */
.vt-sean-name {
  view-transition-name: sean-name;
}

/* Skip a page's intro animation when arriving via a version switch — the
   transition itself is the intro. The dial's pagereveal handler adds
   .vt-arrived to <html> before first paint. Duration 0 (not `none`) so
   `forwards` fills still land elements in their final state. */
html.vt-arrived .vt-skip-intro,
html.vt-arrived .vt-skip-intro * {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

/* Base: gentle zoom cross-fade. */
::view-transition-old(root) {
  animation: vt-leave 240ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
::view-transition-new(root) {
  animation: vt-enter 320ms cubic-bezier(0.2, 0, 0, 1) both;
}

/* Morphing elements glide a touch slower than the root fade. */
::view-transition-group(sean-name),
::view-transition-group(universe-dial) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.3, 0, 0, 1);
}

/* Per-version flavor. Types like "to-c-terminal" / "from-b-card" are added
   in the dial's pagereveal handler. */
html:active-view-transition-type(to-c-terminal)::view-transition-new(root) {
  animation: vt-crt-in 400ms ease-out both;
}
html:active-view-transition-type(from-c-terminal)::view-transition-old(root) {
  animation: vt-crt-out 240ms ease-in both;
}
html:active-view-transition-type(to-b-card)::view-transition-new(root) {
  animation: vt-card-in 380ms cubic-bezier(0.2, 0, 0, 1) both;
}
html:active-view-transition-type(to-a-scroll)::view-transition-new(root) {
  animation: vt-scroll-in 360ms cubic-bezier(0.2, 0, 0, 1) both;
}
html:active-view-transition-type(to-d-3d-game)::view-transition-new(root) {
  animation: vt-game-in 420ms cubic-bezier(0.2, 0, 0, 1) both;
}
/* Arriving at the systems map draws itself in, the way its own nodes do. */
html:active-view-transition-type(to-f-blueprint)::view-transition-new(root) {
  animation: vt-blueprint-in 420ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes vt-blueprint-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes vt-leave {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes vt-enter {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
}

/* Terminal: CRT power-on / power-off. */
@keyframes vt-crt-in {
  0% {
    opacity: 0;
    transform: scaleY(0.92);
    filter: brightness(2.4) saturate(0.2);
  }
  60% {
    opacity: 1;
    filter: brightness(1.2) saturate(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes vt-crt-out {
  to {
    opacity: 0;
    transform: scaleY(0.9);
    filter: brightness(2.8);
  }
}

/* Card: settles in with a slight 3D tilt. */
@keyframes vt-card-in {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(5deg) scale(1.03);
  }
}

/* Scroll: rises into place. */
@keyframes vt-scroll-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Game: drops in from above under a flash of floodlight. */
@keyframes vt-game-in {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(1.03);
    filter: brightness(1.5) saturate(0.7);
  }
  60% {
    opacity: 1;
    filter: brightness(1.1) saturate(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) saturate(1);
  }
}

/* Reduced motion: navigate without theatrics. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-image-pair(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
.universe-dial[data-astro-cid-g3bouzgm] {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #071011db;
  box-shadow: 0 .75rem 2rem #00000073;
  backdrop-filter: blur(12px);
  view-transition-name: universe-dial;
  animation: 3s ease-in-out infinite dial-glow;
}

.dial-core[data-astro-cid-g3bouzgm] {
  position: relative;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.dial-glyph[data-astro-cid-g3bouzgm] {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: .85rem;
}

.dial-ring[data-astro-cid-g3bouzgm] {
  position: absolute;
  inset: .375rem;
  border: 1px dashed #7ee6c280;
  border-radius: 50%;
  animation: 16s linear infinite dial-spin;
}

.dial-pill[data-astro-cid-g3bouzgm] {
  padding: .25rem .6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.dial-pill-glyph[data-astro-cid-g3bouzgm] {
  margin-right: .3rem;
}

.dial-pill-current[data-astro-cid-g3bouzgm] {
  color: #071011;
  background: var(--mint);
  cursor: default;
}

.dial-pill-link[data-astro-cid-g3bouzgm] {
  color: var(--muted);
  transition: color .16s, background .16s;
}

.dial-pill-link[data-astro-cid-g3bouzgm]:hover {
  color: var(--ink-strong);
  background: #7ee6c21f;
}

.dial-shine[data-astro-cid-g3bouzgm] {
  position: absolute;
  top: -30%;
  left: -70%;
  width: 42%;
  height: 160%;
  background: linear-gradient(100deg, #0000, #ffffffbf, #0000);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: 4s ease-in-out 1s infinite dial-shine;
}

.dial-ping[data-astro-cid-g3bouzgm] {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  z-index: 40;
  pointer-events: none;
}

.dial-ping[data-astro-cid-g3bouzgm]:before, .dial-ping[data-astro-cid-g3bouzgm]:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--color-accent, #6366f1);
  opacity: 0;
}

.dial-ping[data-astro-cid-g3bouzgm].nudge:before {
  animation: 1.9s ease-out 3 dial-ping;
}

.dial-ping[data-astro-cid-g3bouzgm].nudge:after {
  animation: 1.9s ease-out .95s 3 dial-ping;
}

.universe-dial[data-astro-cid-g3bouzgm].nudge .dial-core[data-astro-cid-g3bouzgm] {
  animation: 1.9s ease-in-out 3 dial-nudge;
}

.dial-options[data-astro-cid-g3bouzgm] {
  max-width: 0;
  opacity: 0;
  padding-right: 0;
  transition: max-width .35s cubic-bezier(.2, 0, 0, 1), padding-right .35s cubic-bezier(.2, 0, 0, 1), opacity .25s;
}

.universe-dial[data-astro-cid-g3bouzgm]:hover .dial-options[data-astro-cid-g3bouzgm], .universe-dial[data-astro-cid-g3bouzgm]:focus-within .dial-options[data-astro-cid-g3bouzgm], .universe-dial[data-astro-cid-g3bouzgm].open .dial-options[data-astro-cid-g3bouzgm] {
  max-width: 22rem;
  opacity: 1;
  padding-right: .5rem;
}

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

@keyframes dial-glow {
  0%, 100% {
    box-shadow: 0 0 8px #6366f147;
  }

  50% {
    box-shadow: 0 0 22px 3px #6366f199;
  }
}

@keyframes dial-shine {
  0% {
    left: -70%;
  }

  14% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

@keyframes dial-ping {
  0% {
    transform: scale(.8);
    opacity: .85;
  }

  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

@keyframes dial-nudge {
  0%, 100% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.14);
  }

  60% {
    transform: scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .universe-dial[data-astro-cid-g3bouzgm], .dial-ring[data-astro-cid-g3bouzgm], .dial-shine[data-astro-cid-g3bouzgm], .dial-ping[data-astro-cid-g3bouzgm].nudge:before, .dial-ping[data-astro-cid-g3bouzgm].nudge:after, .universe-dial[data-astro-cid-g3bouzgm].nudge .dial-core[data-astro-cid-g3bouzgm] {
    animation: none;
  }

  .dial-options[data-astro-cid-g3bouzgm] {
    transition: none;
  }
}

.nexus-defs[data-astro-cid-g3bouzgm] {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nexus-launcher[data-astro-cid-g3bouzgm] {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  z-index: 50;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.nexus-goo[data-astro-cid-g3bouzgm] {
  position: absolute;
  left: 50%;
  bottom: .5rem;
  width: 4.5rem;
  height: 7rem;
  margin-left: -2.25rem;
  filter: url("#nexus-goo");
  opacity: 0;
}

.nexus-blob[data-astro-cid-g3bouzgm] {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: #818cf8;
  will-change: transform;
}

.nexus-blob-base[data-astro-cid-g3bouzgm] {
  width: 1.9rem;
  height: 1.5rem;
  margin-left: -.95rem;
}

.nexus-blob-drop[data-astro-cid-g3bouzgm] {
  width: 1.55rem;
  height: 1.55rem;
  margin-left: -.775rem;
  transform-origin: 50% 100%;
}

.nexus-portal[data-astro-cid-g3bouzgm] {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-50%) translateY(-.5rem) scale(.85);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 0 0 1.5px #c7bafdd9, 0 0 16px 2px #7c83ff8c, inset 0 0 12px 2px #03030c99;
}

.nexus-portal-swirl[data-astro-cid-g3bouzgm] {
  position: absolute;
  inset: -35%;
  background: conic-gradient(#7c83ff, #a855f7, #ff9e64, #3ddc84, #6366f1, #7c83ff);
  filter: blur(1px);
}

.nexus-portal-core[data-astro-cid-g3bouzgm] {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 47%, #fffffff2 0%, #d6deff59 13%, #0a0a1a1f 40%, #05050f99 74%);
}

.nexus-launcher[data-astro-cid-g3bouzgm]:hover .nexus-portal[data-astro-cid-g3bouzgm], .nexus-launcher[data-astro-cid-g3bouzgm]:focus-visible .nexus-portal[data-astro-cid-g3bouzgm] {
  box-shadow: 0 0 0 1.5px #fffffff2, 0 0 24px 4px #7c83ffcc, inset 0 0 12px 2px #03030c80;
}

.nexus-launcher[data-astro-cid-g3bouzgm]:hover .nexus-portal-swirl[data-astro-cid-g3bouzgm] {
  animation-duration: 2.4s;
}

.nexus-launcher[data-astro-cid-g3bouzgm]:focus-visible {
  outline: none;
}

.nexus-launcher[data-astro-cid-g3bouzgm]:focus-visible .nexus-portal[data-astro-cid-g3bouzgm] {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-goo[data-astro-cid-g3bouzgm] {
  animation: .72s linear forwards nexus-goo-fade;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-blob-base[data-astro-cid-g3bouzgm] {
  animation: .72s cubic-bezier(.5, 0, .2, 1) forwards nexus-base;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-blob-drop[data-astro-cid-g3bouzgm] {
  animation: .72s cubic-bezier(.45, 0, .2, 1) forwards nexus-drop;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-portal[data-astro-cid-g3bouzgm] {
  animation: .5s cubic-bezier(.3, 0, .2, 1) .18s forwards nexus-portal-in, 4s ease-in-out .75s infinite nexus-portal-bob;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-portal-swirl[data-astro-cid-g3bouzgm] {
  animation: 5s linear infinite nexus-portal-spin;
}

.nexus-active[data-astro-cid-g3bouzgm] .nexus-portal-core[data-astro-cid-g3bouzgm] {
  animation: 3s ease-in-out infinite nexus-portal-pulse;
}

@keyframes nexus-drop {
  0% {
    transform: translateY(.1rem) scale(.6);
  }

  18% {
    transform: translateY(-.3rem) scaleX(.72) scaleY(1.55);
  }

  38% {
    transform: translateY(-1.1rem) scaleX(.55) scaleY(2.1);
  }

  58% {
    transform: translateY(-2.7rem) scaleX(.9) scaleY(1.12);
  }

  80% {
    transform: translateY(-4.6rem) scale(1.07);
  }

  100% {
    transform: translateY(-4.2rem) scale(1);
  }
}

@keyframes nexus-base {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  28% {
    transform: scaleX(1.15) scaleY(.82);
    opacity: 1;
  }

  46% {
    transform: scaleX(1) scaleY(.6);
    opacity: .9;
  }

  100% {
    transform: scale(.3);
    opacity: 0;
  }
}

@keyframes nexus-goo-fade {
  0%, 66% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes nexus-portal-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-.05rem) scale(.25) rotate(-45deg);
  }

  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(-.6rem) scale(1.1) rotate(8deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-.5rem) scale(1) rotate(0);
  }
}

@keyframes nexus-portal-bob {
  0%, 100% {
    transform: translateX(-50%) translateY(-.5rem) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-.8rem) scale(1);
  }
}

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

@keyframes nexus-portal-pulse {
  0%, 100% {
    opacity: .82;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-active[data-astro-cid-g3bouzgm] .nexus-goo[data-astro-cid-g3bouzgm], .nexus-active[data-astro-cid-g3bouzgm] .nexus-blob-base[data-astro-cid-g3bouzgm], .nexus-active[data-astro-cid-g3bouzgm] .nexus-blob-drop[data-astro-cid-g3bouzgm] {
    animation: none;
    opacity: 0;
  }

  .nexus-active[data-astro-cid-g3bouzgm] .nexus-portal[data-astro-cid-g3bouzgm] {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) translateY(-.5rem) scale(1);
  }

  .nexus-active[data-astro-cid-g3bouzgm] .nexus-portal-swirl[data-astro-cid-g3bouzgm], .nexus-active[data-astro-cid-g3bouzgm] .nexus-portal-core[data-astro-cid-g3bouzgm] {
    animation: none;
  }
}
