@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');
/* Atelier, by Joule: the hero / card animation (atelier-anim.js). Sizes follow the box (container units), so the same
   piece works as the full case-study hero and as a 400px card. --cy is where the line sits (0.5 = middle). */
.ata { position: relative; overflow: hidden; container-type: size; background: #070c18; color: #fff; --cy: 0.5; --fade: 1; }
.ata canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ata-bg { filter: blur(6px) saturate(1.1); transform: scale(1.08); }
.ata-grain { position: absolute; inset: -50%; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: ata-grain 1.2s steps(6) infinite; }
@keyframes ata-grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* the earpiece, floating in front of the line (the line passes behind it, so it reads as the voice it hears) */
.ata-ear { position: absolute; left: 50%; top: calc(var(--cy) * 100%); height: min(38cqh, 25cqw); aspect-ratio: 1.3; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.ata-ear-float { width: 100%; height: 100%; animation: ata-float 5.5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(76, 195, 255, 0.28)); }
.ata-ear img, .ata-ear model-viewer { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; --poster-color: transparent; }
.ata-ear img { filter: brightness(1.35) contrast(1.05); }
.ata-ear model-viewer { filter: brightness(1.25) contrast(1.08); }
.ata-ear model-viewer .ata-ear-poster { filter: brightness(1.35); }
@keyframes ata-float { 0%, 100% { transform: translateY(-3%) rotate(-2deg); } 50% { transform: translateY(3%) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .ata-ear-float { animation: none; } }

.ata-lock, .ata-title { position: absolute; left: 50%; top: calc(var(--cy) * 100%); transform: translate(-50%, -50%); display: flex; align-items: center; white-space: nowrap; }
.ata-lock { gap: min(3.2cqw, 5.4cqh); transform-origin: 50% 50%; }
.ata-lock .ata-ar svg { display: block; height: min(4.6cqw, 7.6cqh); width: auto; fill: #f3e7d6; }
.ata-lock .ata-sap svg { display: block; height: min(6.6cqw, 11cqh); width: auto; }
.ata-x { font: 300 min(4.2cqw, 7cqh) / 1 'Plus Jakarta Sans', system-ui, sans-serif; color: rgba(255, 255, 255, 0.7); }
.ata-l { transform-box: fill-box; }

.ata-cap { position: absolute; left: 50%; top: calc(var(--cy) * 100% + min(13cqw, 21cqh)); transform: translateX(-50%); margin: 0; width: 86%; text-align: center;
  font: 500 min(2.5cqw, 4.4cqh, 3.9cqw) / 1.35 Manrope, system-ui, sans-serif; letter-spacing: -0.005em; white-space: nowrap; opacity: 0; }
.ata-cap span { color: rgba(255, 255, 255, 0.28); transition: color .25s ease, text-shadow .25s ease; }
.ata-ask span.on { color: #f6eadb; }
.ata-ask span.on:nth-child(-n+2) { color: #7cc4ff; text-shadow: 0 0 18px rgba(76, 195, 255, 0.55); }   /* "Hey Joule," lights up like a wake word */
.ata-reply b { font-weight: 600; color: #4cc3ff; margin-right: 0.3em; }
.ata-reply span.on { color: #d8eaff; }

.ata-title { flex-direction: column; gap: min(2.4cqw, 3.6cqh); opacity: 0; }
.ata-eye { display: flex; align-items: center; gap: min(1.6cqw, 2.6cqh); opacity: calc(0.85 * var(--fade)); }
.ata-eye .ata-ar svg { display: block; height: min(1.7cqw, 2.8cqh); width: auto; fill: #f3e7d6; }
.ata-eye .ata-sap svg { display: block; height: min(2.6cqw, 4.2cqh); width: auto; }
.ata-eye .ata-x { font-size: min(1.9cqw, 3.1cqh); }
.ata-name { font: 500 min(7.6cqw, 12.6cqh) / 1 'Plus Jakarta Sans', system-ui, sans-serif; letter-spacing: -0.035em; color: #fff; opacity: var(--fade); }
.ata-name em { font-style: normal; color: #7cc4ff; }

/* narrow boxes (phones, small cards): everything a bit bigger relative to the width */
@container (max-width: 640px) {
  .ata-lock { gap: 3.4cqw; }
  .ata-lock .ata-ar svg { height: 6.4cqw; }
  .ata-lock .ata-sap svg { height: 9.6cqw; }
  .ata-x { font-size: 6cqw; }
  .ata-cap { font-size: 3.3cqw; width: 92%; top: calc(var(--cy) * 100% + 22cqw); }   /* ~20.5em wide, so this keeps “…Room 4.” on one line */
  .ata-eye .ata-ar svg { height: 3.2cqw; }
  .ata-eye .ata-sap svg { height: 4.8cqw; }
  .ata-eye .ata-x { font-size: 3.6cqw; }
  .ata-name { font-size: 11.4cqw; }
  .ata-ear { height: 34cqw; }
}
.ata-still .ata-grain { animation: none; }
@media (prefers-reduced-motion: reduce) { .ata-grain { animation: none; } }
