/* Public Monkey ID home: the existing aperture identity in a readable, responsive document. */
:root {
  color-scheme: dark;
  --ink: #050809;
  --paper: #f6f7f4;
  --cyan: #8ee1e8;
  --muted: #a9b4b5;
  --pending: #e5b879;
  --failure: #ee8a8a;
  --line: #253b3e;
  --text-scale: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: calc(16px * var(--text-scale));
  background: var(--ink);
  color: var(--paper);
}
:root[data-text-size='large'] {
  --text-scale: 2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
  line-height: 1.6;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
button,
summary {
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}
.wrap {
  width: min(1184px, calc(100% - 112px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 14px;
  top: -200px;
  z-index: 2;
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
}
.skip:focus {
  top: 14px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-decoration: none;
  min-height: 44px;
}
.brand-orbit {
  width: 28px;
  height: 28px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.brand-orbit::before,
.brand-orbit::after {
  content: '';
  position: absolute;
  border: 1px solid var(--cyan);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 8px;
}
.brand-orbit::before {
  left: -6px;
}
.brand-orbit::after {
  right: -6px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
}
nav a:hover {
  color: var(--paper);
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 56px;
  padding-block: 56px 84px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(3.4rem, calc(6.2vw * var(--text-scale)), 5.6rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.065em;
}
.hero-copy > p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30em;
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  background: transparent;
  color: var(--paper);
}
.primary {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}
.primary:hover {
  background: #b9f0f3;
}
.subtle:hover {
  border-color: var(--cyan);
}
.button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  color: var(--muted);
}
.knock-portrait {
  min-width: 0;
}
.portrait-art {
  aspect-ratio: 1.15;
  max-width: 440px;
  margin-inline: auto;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: radial-gradient(ellipse, #123237 0, #0a171b 38%, transparent 69%);
}
.portrait-art svg {
  width: 62%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px #75d9e13d);
}
.portrait-orbit {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border: 1px solid #315359;
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(0.78);
}
.portrait-orbit.inner {
  width: 66%;
  transform: rotate(16deg) scaleY(0.94);
  border-color: #20434a;
}
.pose-label {
  position: absolute;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--ink);
  padding: 3px 8px;
}
.pose-label.center {
  top: 7%;
  left: 45%;
}
.pose-label.left {
  bottom: 28%;
  left: 0;
}
.pose-label.right {
  bottom: 14%;
  right: 5%;
}
figcaption {
  text-align: center;
  font-size: 0.8rem;
}
figcaption span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}
.section-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.4;
}
.status-board {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #091114;
}
.service-summary {
  padding: 28px;
  background: #0c1a1e;
}
.state-orb {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--muted);
}
.service-summary h3 {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.service-summary p {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 8px;
}
.service-summary .observation {
  margin-top: 28px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
[data-status-state='fresh'] .state-orb {
  background: var(--cyan);
  box-shadow: 0 0 20px #8ee1e84a;
}
[data-status-state='stale'] .state-orb {
  background: var(--pending);
}
[data-status-state='failed'] .state-orb,
[data-status-state='degraded'] .state-orb {
  background: var(--failure);
}
.service-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  margin: 0;
  align-content: center;
  min-width: 0;
}
.service-facts > div {
  min-width: 0;
}
.service-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.service-facts dd {
  margin: 5px 0 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.rollout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-block: 28px;
}
.rollout > div {
  display: flex;
  gap: 14px;
  min-width: 0;
}
.step-mark {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.rollout p {
  font-size: 0.8rem;
  color: var(--pending);
  margin-top: 5px;
}
.status-note {
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 80ch;
}
.story {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 84px;
  padding-block: 84px;
}
.story-intro h2,
.integration h2 {
  font-size: 2.6rem;
}
.story-intro > p:last-child {
  margin-top: 28px;
  color: var(--muted);
  max-width: 34em;
}
.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding-left: 56px;
  counter-increment: flow;
}
.flow li + li {
  margin-top: 28px;
}
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-size: 0.85rem;
}
.flow p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}
.integration {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  padding: 56px 0 84px;
  border-top: 1px solid var(--line);
}
.integration > div > p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 28px;
}
.protocol-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.boundaries h3:not(:first-child) {
  margin-top: 28px;
}
.boundaries > p {
  margin-top: 8px !important;
}
.boundaries details {
  margin-top: 28px;
}
.boundaries summary {
  min-height: 44px;
  padding-block: 10px;
  font-size: 0.9rem;
  color: var(--cyan);
}
.boundaries details p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}
code {
  overflow-wrap: anywhere;
  font-size: 0.9em;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.site-footer p {
  font-size: 0.85rem;
}
.site-footer p span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}
.display-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.display-controls button {
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
}
.display-controls button[aria-pressed='true'] {
  color: var(--cyan);
  border-color: var(--cyan);
}
.notice {
  padding-block: 14px;
  color: var(--pending);
}
:root[data-text-size='large'] .hero,
:root[data-text-size='large'] .story,
:root[data-text-size='large'] .integration,
:root[data-text-size='large'] .status-board {
  grid-template-columns: 1fr;
}
:root[data-text-size='large'] .knock-portrait {
  display: none;
}
:root[data-text-size='large'] .rollout {
  grid-template-columns: 1fr;
}
:root[data-text-size='large'] .section-heading {
  align-items: start;
  flex-direction: column;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 28px;
  }
  .story,
  .integration {
    gap: 56px;
  }
  .service-facts {
    gap: 14px;
  }
  .rollout {
    gap: 14px;
  }
  .site-header {
    gap: 14px;
  }
  nav {
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .site-header {
    align-items: start;
    flex-direction: column;
    padding-block: 14px;
    gap: 0;
  }
  nav {
    gap: 0 28px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 28px 56px;
    gap: 28px;
  }
  h1 {
    font-size: 3.4rem;
  }
  .hero-copy > p {
    max-width: 27em;
  }
  .knock-portrait {
    max-width: 350px;
    justify-self: center;
    width: 100%;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 1.8rem;
  }
  .status-board {
    grid-template-columns: 1fr;
  }
  .service-summary {
    padding: 28px;
  }
  .service-facts {
    gap: 28px 14px;
  }
  .rollout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .story,
  .integration {
    grid-template-columns: 1fr;
    padding-block: 56px;
    gap: 28px;
  }
  .flow li {
    padding-left: 42px;
  }
  .story-intro h2,
  .integration h2 {
    font-size: 2.3rem;
  }
  .site-footer {
    padding-block: 28px;
  }
  :root[data-text-size='large'] .service-facts {
    grid-template-columns: 1fr;
  }
  :root[data-text-size='large'] nav {
    gap: 0 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root[data-motion='reduce'] *,
:root[data-motion='reduce'] *::before,
:root[data-motion='reduce'] *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* The Knock, alive: the headline rises in and the face does the challenge it describes, centre, left,
   centre, right, while the aperture's colour shifts as the real capture does and the pose being asked lights.
   Both motion controls (system setting and the page's Reduce motion) hold everything still at rest. */
.kw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  animation: kw-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes kw-rise {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.kw-sheen {
  padding-right: 0.06em;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(100deg, #8ee1e8 0%, #8ee1e8 30%, #f6f7f4 45%, #c9b8ff 55%, #8ee1e8 70%, #8ee1e8 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  animation:
    kw-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards calc(var(--i, 0) * 110ms + 120ms),
    kw-leaf 7s ease-in-out 1.8s infinite;
}
@keyframes kw-leaf {
  0% {
    background-position: 100% 0;
  }
  55%,
  100% {
    background-position: -60% 0;
  }
}
.portrait-art {
  perspective: 900px;
  animation: knock-hue 9s ease-in-out infinite;
}
@keyframes knock-hue {
  0%, 18%, 46%, 50%, 82%, 100% { color: #8ee1e8; }
  28%, 38% { color: #c9b8ff; }
  62%, 72% { color: #e5b879; }
}
.portrait-art svg.knock-head {
  transform-origin: 50% 45%;
  animation: knock-turn 9s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes knock-turn {
  0%, 18%, 46%, 50%, 82%, 100% { transform: none; }
  28%, 38% { transform: translateX(-7%) rotateY(-30deg) rotateZ(-2deg); }
  62%, 72% { transform: translateX(7%) rotateY(30deg) rotateZ(2deg); }
}
.knock-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: knock-blink 9s ease-in-out infinite;
}
@keyframes knock-blink {
  0%, 46.5%, 49.5%, 100% { transform: none; }
  48% { transform: scaleY(0.12); }
}
.knock-scan {
  position: absolute;
  left: 28%;
  right: 28%;
  top: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent);
  box-shadow: 0 0 14px currentColor;
  opacity: 0;
  animation: knock-scan 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes knock-scan {
  0% { top: 18%; opacity: 0; }
  2% { opacity: 0.7; }
  15% { top: 76%; opacity: 0.55; }
  17%, 100% { top: 76%; opacity: 0; }
}
.portrait-orbit {
  animation: knock-orbit 70s linear infinite;
}
.portrait-orbit.inner {
  animation: knock-orbit-inner 95s linear infinite;
}
@keyframes knock-orbit {
  from { transform: rotate(-18deg) scaleY(0.78); }
  to { transform: rotate(342deg) scaleY(0.78); }
}
@keyframes knock-orbit-inner {
  from { transform: rotate(16deg) scaleY(0.94); }
  to { transform: rotate(-344deg) scaleY(0.94); }
}
.pose-label {
  border-radius: 4px;
  transition: color 0.4s ease, box-shadow 0.4s ease;
}
.pose-label.center { animation: knock-ask-center 9s ease-in-out infinite; }
.pose-label.left { animation: knock-ask-left 9s ease-in-out infinite; }
.pose-label.right { animation: knock-ask-right 9s ease-in-out infinite; }
@keyframes knock-ask-center {
  0%, 16% { color: #f6f7f4; box-shadow: 0 0 0 1px #8ee1e8, 0 0 18px #8ee1e840; }
  20%, 100% { color: var(--muted); box-shadow: none; }
}
@keyframes knock-ask-left {
  0%, 22%, 42%, 100% { color: var(--muted); box-shadow: none; }
  26%, 38% { color: #f6f7f4; box-shadow: 0 0 0 1px #c9b8ff, 0 0 18px #c9b8ff40; }
}
@keyframes knock-ask-right {
  0%, 56%, 76%, 100% { color: var(--muted); box-shadow: none; }
  60%, 72% { color: #f6f7f4; box-shadow: 0 0 0 1px #e5b879, 0 0 18px #e5b87940; }
}
@media (prefers-reduced-motion: reduce) {
  .kw, .kw-sheen, .portrait-art, .portrait-art svg.knock-head, .knock-eyes, .knock-scan, .portrait-orbit, .pose-label {
    animation: none !important;
  }
  .kw { opacity: 1; transform: none; filter: none; }
}
:root[data-motion='reduce'] :is(.kw, .kw-sheen, .portrait-art, .portrait-art svg.knock-head, .knock-eyes, .knock-scan, .portrait-orbit, .pose-label) {
  animation: none !important;
}
:root[data-motion='reduce'] .kw { opacity: 1; transform: none; filter: none; }
