/* ============================================================================
   Confih — /about ("Acoustic Noir Straight 3D Protocol Stack")
   ========================================================================= */

/* No perspective and no translateZ here on purpose. Projecting these plates
   through a 3D transform made the browser rasterise their type at the pre-
   projection size and then scale the layer up, which is why the headings and
   badges read as low quality. Depth is drawn with position, inset and shadow
   instead, so every glyph lands on whole device pixels. */
#about-signal-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  cursor: grab;
  user-select: none;
}

#about-signal-plate::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.045),
    transparent 100%
  );
  filter: blur(22px);
}

#about-signal-plate.is-dragging {
  cursor: grabbing;
}

.arch-3d-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.35rem 0.2rem;
  /* The pointer/drag parallax is a 2D shift: it keeps the interaction without
     handing the text to the compositor to resample. */
  translate: var(--rack-shift-x, 0px) var(--rack-shift-y, 0px);
  transition: translate 0.18s var(--ease);
}

.arch-3d-stack.is-dragging {
  transition: none;
}

.arch-plate {
  position: relative;
  padding: 0.92rem 1.05rem;
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    rgba(26, 26, 30, 0.96),
    rgba(16, 16, 19, 0.98)
  );
  border: 1px solid var(--edge-2);
  box-shadow: 0 1px 0 var(--rim-top) inset,
    0 12px 28px -12px rgba(0, 0, 0, 0.72);
  transition: translate 0.32s var(--spring), border-color 0.2s var(--ease),
    box-shadow 0.24s var(--ease);
}

/* Receding planes: each plate sits a little narrower and sits back a little
   further, and the shadow does the depth that perspective used to fake. */
.arch-plate-1 {
  z-index: 3;
  margin-right: 0.9rem;
  box-shadow: 0 1px 0 var(--rim-top) inset, 0 18px 34px -14px rgba(0, 0, 0, 0.82);
}

.arch-plate-2.is-accent {
  z-index: 2;
  margin-right: 0.45rem;
  border-color: var(--edge-3);
  box-shadow: 0 1px 0 var(--rim-top) inset, 0 14px 26px -14px rgba(0, 0, 0, 0.72);
}

.arch-plate-3 {
  z-index: 1;
  box-shadow: 0 1px 0 var(--rim-top) inset, 0 10px 20px -14px rgba(0, 0, 0, 0.62);
}

#about-signal-plate:hover .arch-plate-1,
.arch-3d-stack:focus-visible .arch-plate-1 {
  translate: 0 -3px;
  border-color: var(--edge-3);
}

#about-signal-plate:hover .arch-plate-2,
.arch-3d-stack:focus-visible .arch-plate-2 {
  translate: 0 -1px;
}

#about-signal-plate:hover .arch-plate-3,
.arch-3d-stack:focus-visible .arch-plate-3 {
  translate: 0 1px;
}

/* A trace of light that runs the plate's outline. The angle is an animatable
   custom property, so this is one composited gradient rather than a keyframe
   per pixel — no rasterising, no layout, and it reads as fluid at 9 s a lap. */
@property --arch-trace {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.arch-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--arch-trace),
    transparent 0turn,
    transparent 0.56turn,
    var(--trace, rgba(255, 255, 255, 0.5)) 0.7turn,
    transparent 0.86turn,
    transparent 1turn
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: confih-arch-trace 9s linear infinite;
  animation-delay: var(--trace-delay, 0s);
  opacity: 0.85;
  pointer-events: none;
}

.arch-plate-1 {
  --trace: #9bd4ff;
}

.arch-plate-2 {
  --trace: var(--signal-2);
  --trace-delay: -3s;
}

.arch-plate-3 {
  --trace: var(--ok);
  --trace-delay: -6s;
}

/* Hovering the stack lets the trace run faster and brighter, so the outline
   answers the pointer without anything moving under it. */
#about-signal-plate:hover .arch-plate::after,
.arch-3d-stack:focus-visible .arch-plate::after {
  animation-duration: 4.5s;
  opacity: 1;
}

@keyframes confih-arch-trace {
  to {
    --arch-trace: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-plate::after {
    animation: none;
    background: none;
  }
}

.arch-plate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.28rem;
}

.arch-plate-index {
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.arch-plate-badge {
  padding: 0.14rem 0.52rem;
  border-radius: var(--r-pill);
  background: var(--inset);
  border: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 560;
  color: var(--ink-2);
}

.arch-plate-badge.is-signal {
  color: var(--signal-2);
  border-color: var(--signal-line);
}

.arch-plate-badge.is-ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 30%, var(--edge));
}

.arch-plate-copy {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.privacy-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.statement {
  margin-bottom: 1.45rem;
  font-size: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--ink);
}

.statement em {
  font-style: normal;
  color: var(--signal-2);
}

@media (prefers-reduced-motion: reduce) {
  .arch-3d-stack {
    transform: none !important;
  }
}

/* Roadmap line under the capability list: a claim about intent, not a feature. */
.tech-next {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  max-width: 58ch;
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.tech-next .led {
  transform: translateY(-1px);
}
