/* ART2's hologram: frames of the app's figure, its light carried in the alpha. */
@property --holo-accent { syntax: "<color>"; inherits: true; initial-value: #60e6ff; }

.holo-stage { --holo-accent: #60e6ff; --holo-p: 0; transition: --holo-accent 700ms var(--ease); }
.holo-stage[data-state="attentive"] { --holo-accent: #7af0ff; }
.holo-stage[data-state="listening"] { --holo-accent: #3dffc8; }
.holo-stage[data-state="thinking"] { --holo-accent: #ffb547; }
.holo-stage[data-state="speaking"] { --holo-accent: #3fdcff; }
.holo-stage[data-state="alert"] { --holo-accent: #ffa070; }

.holo-body {
  position: absolute; inset: 0;
  transform: translate3d(0, calc(var(--holo-p) * 7%), 0) scale(calc(1 - var(--holo-p) * 0.08));
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.holo-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 650ms var(--ease);
}
.holo-frame.is-on { opacity: 1; }
/* A new look arrives like a projection re-tuning: a slow dissolve with a slight lift of light. */
.holo-stage.is-restyling .holo-frame { transition: opacity 1100ms cubic-bezier(0.4, 0, 0.2, 1), filter 1100ms cubic-bezier(0.4, 0, 0.2, 1); }
.holo-stage.is-restyling .holo-frame:not(.is-on) { filter: blur(3px) brightness(1.25); }
.holo-stage[data-state="speaking"] .holo-frame { transition-duration: 90ms; }
.holo-stage.is-blinking .holo-frame { transition-duration: 50ms; }
.holo-glow {
  position: absolute; inset: 8% 10% 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--holo-accent) 30%, transparent), transparent);
  opacity: calc(0.55 + var(--holo-p) * 0.45);
}
.holo-sweep {
  position: absolute; left: 22%; right: 22%; top: 12%; height: 9%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--holo-accent) 38%, transparent), transparent);
}

.is-live .holo-body { animation: holo-flicker 7s steps(1) infinite; }
.is-live .holo-frame { animation: holo-float 6s ease-in-out infinite; }
.is-live .holo-sweep { animation: holo-sweep 5.5s var(--ease) infinite; }
.is-live .holo-stage[data-state="speaking"] .holo-glow { animation: holo-pulse 0.9s ease-in-out infinite; }
.is-live .holo-stage[data-state="thinking"] .holo-sweep { animation-duration: 2.4s; }

.holo .chip { transition: opacity 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease); }
.holo-stage:not([data-state="idle"]) .chip { opacity: 0.5; }
.holo-stage[data-state="listening"] [data-chip="listening"],
.holo-stage[data-state="speaking"] [data-chip="speaking"],
.holo-stage[data-state="thinking"] [data-chip="thinking"],
.holo-stage[data-state="attentive"] [data-chip="attentive"] {
  opacity: 1; border-color: color-mix(in srgb, var(--holo-accent) 60%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px color-mix(in srgb, var(--holo-accent) 30%, transparent);
}

@keyframes holo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4%); } }
@keyframes holo-sweep { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 0.8; } 100% { transform: translateY(620%); opacity: 0; } }
@keyframes holo-flicker { 0%, 100% { opacity: 1; } 61% { opacity: 1; } 62% { opacity: 0.82; } 63% { opacity: 1; } 88% { opacity: 0.92; } 89% { opacity: 1; } }
@keyframes holo-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* How it works: the figure takes the screen; the step becomes its caption. */
.story-screen-holo .holo { position: absolute; inset: 4% 8% 22%; z-index: 0; }
.story-screen-holo .story-frame { z-index: 1; }
.story-screen-holo .holo-stage { max-width: none; height: 100%; width: auto; aspect-ratio: 720 / 874; }
.story-screen-holo .story-frame { inset: auto 0 44px; grid-auto-flow: column; justify-content: center; align-items: center; gap: 12px; }
.story-screen-holo .story-frame svg { width: 30px; height: 30px; }
.story-screen-holo .story-frame-label { font-size: clamp(1.25rem, 2vw, 1.6rem); }

/* Support: the figure stands beside the form; on phones it sits by the title. */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-grid .contact-main { grid-column: 1; grid-row: 1; min-width: 0; }
.holo-side { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
.holo-side .holo-stage { max-width: 360px; }

@media (max-width: 900px) {
  .story-screen-holo .holo { inset: 4% 10% 26%; }
  .story-screen-holo .story-frame { bottom: 30px; gap: 8px; }
  .story-screen-holo .story-frame svg { width: 22px; height: 22px; }
  .story-screen-holo .story-frame-label { font-size: 1.1rem; }
  .contact-grid { display: block; }
  .holo-side { float: right; position: relative; top: auto; width: 34%; max-width: 150px; margin: -12px -8px 0 8px; }
  .contact-main .contact-form { clear: both; }
}

/* The hologram's look: three styles as light on the glass, the worn one lit. */
.holo-switch {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  width: fit-content; max-width: 100%; margin: 10px auto 0; padding: 3px; border: 1px solid rgba(var(--beam-cyan), 0.22);
  border-radius: 999px; background: rgba(var(--beam-cyan), 0.04);
  box-shadow: inset 0 0 14px rgba(var(--beam-cyan), 0.06);
}
.holo-switch[hidden] { display: none; }
.holo-switch-legend {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.holo-switch-option { position: relative; display: block; cursor: pointer; }
.holo-switch-option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.holo-switch-option span {
  display: block; padding: 5px 12px; border-radius: 999px;
  font: 600 0.72rem/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  transition: color 240ms var(--ease), background-color 240ms var(--ease), box-shadow 240ms var(--ease), text-shadow 240ms var(--ease);
}
.holo-switch-option:hover span { color: var(--ink-2); }
.holo-switch-option input:checked + span {
  color: var(--ink); background: rgba(var(--beam-cyan), 0.16);
  box-shadow: 0 0 14px rgba(var(--beam-cyan), 0.32), inset 0 0 0 1px rgba(var(--beam-cyan), 0.5);
  text-shadow: 0 0 10px rgba(var(--beam-cyan), 0.55);
}
.holo-switch-option input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.shot > .holo-switch { margin-top: 14px; }
.tour-stage > .holo-switch { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .holo-switch-option span { transition: none; } }
@media (max-width: 900px) {
  .holo-side .holo-switch { flex-direction: column; border-radius: 16px; margin-top: 4px; }
  .holo-side .holo-switch-option span { padding: 4px 10px; text-align: center; }
}
/* The hero's phone keeps its night glass in the light theme; its switch reads as on the dark. */
:root[data-theme="light"] .hero-shot .holo-switch { --beam-cyan: 96, 230, 255; --ink: #effaff; --ink-2: #bdd2de; --muted: #8199a8; --cyan: #60e6ff; }
