/* Detox AI — "Advanced controls": a bento spec sheet of the finer blocking controls (facts from the support
   pack, checked against Play 0.1.65). js/controls.js adds html.ctl-js, .is-in on cards as they arrive, the
   cursor spotlight (--mx/--my/--spot), a small card tilt (`rotate`) and the Sensitivity switch.
   Without JS every card shows its final state and Sensitivity shows Standard. */

.controls {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
}

.controls-intro .atlas-title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 5%, var(--teal) 55%, var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ctl-grid {
  width: min(var(--max-w), calc(100% - clamp(2.5rem, 12vw, 10rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  perspective: 1800px;
}

.ctl-sense { grid-column: span 4; grid-row: span 2; }
.ctl-lists, .ctl-typing { grid-column: span 2; }
.ctl-panic, .ctl-romance, .ctl-limits, .ctl-parts { grid-column: span 3; }
.ctl-message, .ctl-lock, .ctl-care { grid-column: span 2; }
.ctl-dns { grid-column: span 6; }
/* the full-width lookups card lays out sideways */
@media (min-width: 1101px) {
  .ctl.ctl-dns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-rows: auto auto 1fr; column-gap: 2.4rem; }
  .ctl-dns > .ctl-head, .ctl-dns > h3, .ctl-dns > p { grid-column: 1; }
  .ctl-dns > .dns-viz { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; font-size: 0.95rem; padding: 1rem 1.2rem; }
}

@media (max-width: 1100px) {
  .ctl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ctl-sense { grid-column: span 4; grid-row: auto; }
  .ctl-grid > .ctl { grid-column: span 2; }
  .ctl-grid > .ctl-sense, .ctl-grid > .ctl-parts, .ctl-grid > .ctl-dns { grid-column: span 4; }
}

@media (max-width: 700px) {
  .ctl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(100% - 2.5rem, var(--max-w)); }
  .ctl-grid > .ctl, .ctl-grid > .ctl-sense, .ctl-grid > .ctl-parts, .ctl-grid > .ctl-dns { grid-column: auto; }
}

/* ---------- the card ---------- */
.ctl {
  --mx: 50%;
  --my: 0%;
  --spot: 0.4;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(47, 212, 198, 0.06), transparent 60%),
    linear-gradient(160deg, rgba(18, 28, 44, 0.78), rgba(6, 10, 16, 0.92));
  border: 1px solid rgba(159, 176, 201, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* spotlight: a light that follows the cursor along the card's edge, and a faint wash inside it */
.ctl::before,
.ctl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--spot);
  transition: opacity 0.45s var(--ease-soft);
}
.ctl::before {
  padding: 1px;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(47, 212, 198, 0.7), rgba(143, 180, 255, 0.18) 40%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  z-index: 2;
}
.ctl::after {
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(47, 212, 198, 0.07), transparent 45%);
  z-index: -1;
}

.ctl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.ctl-kicker {
  font: 600 0.7rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.ctl h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mist50);
  text-wrap: balance;
}
.ctl p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--mist300);
  text-wrap: pretty;
}
.ctl-viz { margin: auto 0; padding-top: 1.2rem; }
.ctl p.ctl-fine { margin-top: 0.85rem; font-size: 0.8rem; color: rgba(159, 176, 201, 0.82); }

/* ---------- Sensitivity ---------- */
.ctl-sense { --lvl: 1; }
.ctl-sense h3 { font-size: clamp(1.6rem, 2.9vw, 2.45rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; }
.ctl-sense .ctl-lede { max-width: 52ch; }

.sense-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 1.2rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 176, 201, 0.16);
}
.sense-switch button {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0.72rem 0.3rem;
  border: 0;
  border-radius: 999px;
  background: none;
  font: 600 0.92rem/1 var(--font-body);
  color: var(--mist300);
  cursor: pointer;
  transition: color 0.35s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.sense-switch button:hover { color: var(--mist50); }
.sense-switch button[aria-checked="true"] { color: #031417; }
.sense-switch button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.sense-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  border-radius: 999px;
  background: linear-gradient(135deg, #5ee6da, var(--teal) 45%, var(--emerald));
  box-shadow: 0 0 26px rgba(47, 212, 198, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateX(calc(var(--lvl) * 100%));
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.ctl-sense[data-level="3"] .sense-thumb {
  background: linear-gradient(135deg, #f8cf8a, var(--amber) 55%, #e6a04a);
  box-shadow: 0 0 26px rgba(244, 184, 96, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sense-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  font: 600 0.66rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(159, 176, 201, 0.75);
}
.sense-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.sense-bar i {
  display: block;
  height: 100%;
  width: calc((var(--lvl) + 1) * 25%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(47, 212, 198, 0.45), var(--teal));
  transition: width 0.7s var(--ease-out), background 0.5s;
}
.ctl-sense[data-level="3"] .sense-bar i { background: linear-gradient(90deg, rgba(47, 212, 198, 0.45), var(--amber)); }

.sense-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.sense-rows li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(159, 176, 201, 0.08);
  color: var(--mist200);
  font-size: 0.95rem;
  transition: background 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft), color 0.45s;
}
.sense-rows li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease-out);
}
.sense-rows li.is-stopped {
  color: var(--mist50);
  background: linear-gradient(90deg, rgba(47, 212, 198, 0.1), rgba(47, 212, 198, 0.02));
  border-color: rgba(47, 212, 198, 0.22);
}
.sense-rows li.is-stopped::before { transform: scaleY(1); }
.sense-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.26rem 0.66rem;
  border-radius: 99px;
  font: 600 0.72rem/1 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--mist300);
  border: 1px solid rgba(159, 176, 201, 0.22);
}
.sense-state::before { content: "Passes"; }
.is-stopped .sense-state { color: var(--teal); border-color: rgba(47, 212, 198, 0.45); background: rgba(47, 212, 198, 0.08); }
.is-stopped .sense-state::before { content: "Stopped"; }

.sense-note { display: grid; margin-top: 1.1rem !important; min-height: 3.2em; }
.sense-note span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-soft), transform 0.45s var(--ease-out);
}
.sense-note span.is-on { opacity: 1; transform: none; }

/* sample tiles: abstract stand-ins for images (no imagery). Each carries the level from which it is
   covered; ordinary ones are never covered. */
.sense-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 1.4rem;
}
.sense-tiles i {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sense-tiles i::before {
  /* the cover: frosted, with a small shield */
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 23 5v8c0 7-5 12-11 14C6 25 1 20 1 13V5z' fill='%232fd4c6'/%3E%3Cpath d='M7.5 15.5 12 11l4.5 4.5' fill='none' stroke='%23062a2a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 26px no-repeat,
    rgba(8, 14, 22, 0.82);
  -webkit-mask: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.45s var(--ease-soft), transform 0.55s var(--ease-out);
}
.sense-tiles i.is-covered::before { opacity: 1; transform: none; }
.sense-tiles i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(47, 212, 198, 0);
  transition: box-shadow 0.45s;
}
.sense-tiles i.is-covered::after { box-shadow: inset 0 0 0 1px rgba(47, 212, 198, 0.45); }
.sense-tiles-cap { margin-top: 0.6rem !important; font-size: 0.78rem !important; color: rgba(159, 176, 201, 0.7) !important; }
@media (max-width: 700px) { .sense-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sense-tiles i:nth-child(n + 9) { display: none; } }

/* ---------- your lists ---------- */
.list-viz { list-style: none; margin: auto 0; padding: 1.2rem 0 0; display: grid; gap: 8px; }
.list-viz li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 176, 201, 0.09);
  font-size: 0.84rem;
  color: var(--mist200);
}
.list-viz li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-icon { flex: none; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(140deg, #22344d, #121c2b); border: 1px solid rgba(159, 176, 201, 0.2); }
.lv-web { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b4462, #101a28); }
.lv-tag { flex: none; padding: 0.22rem 0.55rem; border-radius: 99px; font-size: 0.7rem; font-weight: 600; }
.lv-tag.is-block { color: #ffd9a3; background: rgba(244, 184, 96, 0.1); border: 1px solid rgba(244, 184, 96, 0.35); }
.lv-tag.is-allow { color: var(--emerald); background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.35); }

/* ---------- limits ---------- */
.limit-viz { display: flex; align-items: center; gap: 1.1rem; }
.limit-dial { flex: none; width: 108px; height: 108px; }
.limit-dial circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ld-track { stroke: rgba(255, 255, 255, 0.06); }
.ld-night { stroke: var(--teal); filter: drop-shadow(0 0 6px rgba(47, 212, 198, 0.6)); }
.limit-dial .ld-hand { fill: #fff; stroke: none; transform-origin: 60px 60px; animation: ld-spin 14s linear infinite; animation-play-state: paused; }
.ctl.is-in .ld-hand, html:not(.ctl-js) .ld-hand { animation-play-state: running; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.limit-dial text { fill: var(--mist50); font: 600 11px var(--font-body); }
.limit-bars { flex: 1; min-width: 0; display: grid; gap: 0.75rem; }
.lb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.6rem; font-size: 0.78rem; color: var(--mist300); }
.lb b { font-weight: 600; color: var(--mist50); font-variant-numeric: tabular-nums; }
.lb-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: calc(var(--to) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--emerald)); }

/* ---------- parts of apps ---------- */
.parts-viz { list-style: none; margin: auto 0; padding: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.parts-viz li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.75rem 0.42rem 0.45rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(159, 176, 201, 0.13);
  font-size: 0.8rem;
  color: var(--mist200);
  white-space: nowrap;
}
/* a tiny switch, shown OFF: that part of the app is switched off */
.parts-viz li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 13px;
  border-radius: 99px;
  background: radial-gradient(circle at 6.5px 50%, var(--mist300) 0 4px, transparent 4.5px), rgba(255, 255, 255, 0.08);
  transition: background 0.4s var(--ease-soft);
}

/* ---------- block message ---------- */
.msg-card {
  position: relative;
  padding: 1.1rem 1.1rem 0.9rem;
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(90% 90% at 50% 0%, rgba(47, 212, 198, 0.12), transparent 65%), #08111b;
  border: 1px solid rgba(47, 212, 198, 0.2);
}
.msg-shield {
  display: block;
  width: 26px;
  height: 30px;
  margin: 0 auto 0.45rem;
  background: linear-gradient(160deg, #5ee6da, var(--teal));
  clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%);
  filter: drop-shadow(0 0 10px rgba(47, 212, 198, 0.6));
}
.msg-card small { display: block; font: 600 0.62rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist300); }
.msg-card .msg-line { margin: 0.5rem 0 0.55rem; font: 600 1rem/1.4 var(--font-head); color: var(--mist50); letter-spacing: -0.01em; }
.msg-line span { display: inline-block; white-space: nowrap; }
.msg-card .msg-line { font-size: clamp(0.88rem, 1.25vw, 1rem); }
.msg-card small.msg-eg { letter-spacing: 0.12em; color: rgba(159, 176, 201, 0.6); }

/* ---------- app lock ---------- */
.lock-viz { display: grid; justify-items: center; gap: 0.9rem; }
.lock-dots { display: flex; gap: 14px; }
.lock-fp { width: 34px; height: 34px; color: var(--teal); filter: drop-shadow(0 0 8px rgba(47, 212, 198, 0.45)); }
.lock-ways { font: 600 0.66rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(159, 176, 201, 0.75); }
.lock-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(47, 212, 198, 0.65);
  border: 1.5px solid var(--teal);
}

/* ---------- allow-list ---------- */
.care-viz { list-style: none; margin: auto 0; padding: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.care-viz li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.care-viz li::before { content: ""; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }

/* ---------- lookups ---------- */
.dns-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  margin-top: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 176, 201, 0.1);
  font: 500 0.82rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
}
.dns-keep { color: var(--teal); text-shadow: 0 0 12px rgba(47, 212, 198, 0.5); }
.dns-drop { color: var(--mist300); opacity: 0.35; filter: blur(2.5px); text-decoration: line-through; min-width: 0; overflow-wrap: anywhere; }

/* ---------- protected typing ---------- */
.type-viz { display: grid; gap: 0.6rem; justify-items: start; }
.tv-field {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0.62rem 0.8rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(159, 176, 201, 0.2);
  font-size: 0.86rem;
  color: var(--mist50);
  white-space: nowrap;
  overflow: hidden;
}
.tv-glass { flex: none; width: 11px; height: 11px; margin-right: 0.55rem; border: 2px solid var(--mist300); border-radius: 50%; position: relative; }
.tv-glass::after { content: ""; position: absolute; width: 2px; height: 6px; background: var(--mist300); right: -4px; bottom: -5px; transform: rotate(-45deg); border-radius: 2px; }
.tv-term {
  display: inline-block;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  vertical-align: middle;
  border-radius: 6px;
  color: #ffd9a3;
  background: rgba(244, 184, 96, 0.14);
  opacity: 0;
}
.tv-caret { flex: none; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--teal); animation: tv-blink 1s steps(1) infinite; }
@keyframes tv-blink { 50% { opacity: 0; } }
.tv-note {
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(47, 212, 198, 0.08);
  border: 1px solid rgba(47, 212, 198, 0.35);
}

/* ---------- panic mode ---------- */
.panic-viz { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.pv-blocks { display: flex; gap: 6px; }
.pv-blocks i { width: 18px; height: 18px; border-radius: 6px; background: rgba(143, 180, 255, 0.85); box-shadow: 0 0 10px rgba(143, 180, 255, 0.5); }
.pv-arrow { width: 34px; height: 1.5px; background: linear-gradient(90deg, rgba(143, 180, 255, 0.2), #8fb4ff); position: relative; }
.pv-arrow::after { content: ""; position: absolute; right: -1px; top: -3.5px; border: 4px solid transparent; border-left: 6px solid #8fb4ff; border-right: 0; }
.pv-focus {
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mist50);
  background: linear-gradient(135deg, rgba(143, 180, 255, 0.22), rgba(47, 212, 198, 0.12));
  border: 1px solid rgba(143, 180, 255, 0.45);
}
.pv-focus b { font-variant-numeric: tabular-nums; margin-left: 0.3rem; color: #c9dbff; }

/* ---------- dark romance ---------- */
.rv-page {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(170deg, #121a28, #0b111b);
  border: 1px solid rgba(159, 176, 201, 0.12);
  overflow: hidden;
}
.rv-page i { display: block; height: 6px; border-radius: 4px; background: rgba(197, 208, 224, 0.22); }
.rv-page i:nth-child(2) { width: 88%; } .rv-page i:nth-child(4) { width: 76%; } .rv-page i:nth-child(6) { width: 54%; }
.rv-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mist50);
  background: linear-gradient(180deg, rgba(10, 16, 25, 0.86), rgba(10, 16, 25, 0.94));
  backdrop-filter: blur(3px);
}

/* ---------- arrival choreography (JS on) ---------- */
html.ctl-js .ctl {
  opacity: 0;
  transform: translateY(36px) rotateX(9deg) scale(0.985);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease-out), transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 75ms);
}
html.ctl-js .ctl.is-in { opacity: 1; transform: none; }

/* each card's own small story plays once it has arrived */
html.ctl-js .ctl .list-viz li { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
html.ctl-js .ctl.is-in .list-viz li { opacity: 1; transform: none; }
html.ctl-js .ctl.is-in .list-viz li:nth-child(1) { transition-delay: 0.45s; }
html.ctl-js .ctl.is-in .list-viz li:nth-child(2) { transition-delay: 0.6s; }
html.ctl-js .ctl.is-in .list-viz li:nth-child(3) { transition-delay: 0.75s; }

html.ctl-js .ctl .lb-bar i { width: 0; transition: width 1.4s var(--ease-out) 0.5s; }
html.ctl-js .ctl.is-in .lb-bar i { width: calc(var(--to) * 100%); }
html.ctl-js .ctl .ld-night { opacity: 0; transition: opacity 1s var(--ease-soft) 0.4s; }
html.ctl-js .ctl.is-in .ld-night { opacity: 1; }

/* the switches start ON and turn off one after another */
html.ctl-js .ctl .parts-viz li { transition: color 0.4s, border-color 0.4s, background 0.4s; transition-delay: calc(0.5s + var(--k, 0) * 0.11s); }
html.ctl-js .ctl .parts-viz li::before {
  background: radial-gradient(circle at 15.5px 50%, #fff 0 4px, transparent 4.5px), var(--teal);
  transition-delay: calc(0.5s + var(--k, 0) * 0.11s);
}
html.ctl-js .ctl.is-in .parts-viz li::before { background: radial-gradient(circle at 6.5px 50%, var(--mist300) 0 4px, transparent 4.5px), rgba(255, 255, 255, 0.08); }
.parts-viz li:nth-child(1) { --k: 0; } .parts-viz li:nth-child(2) { --k: 1; } .parts-viz li:nth-child(3) { --k: 2; }
.parts-viz li:nth-child(4) { --k: 3; } .parts-viz li:nth-child(5) { --k: 4; } .parts-viz li:nth-child(6) { --k: 5; }
.parts-viz li:nth-child(7) { --k: 6; } .parts-viz li:nth-child(8) { --k: 7; } .parts-viz li:nth-child(9) { --k: 8; }

html.ctl-js .ctl .msg-line span { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s steps(34) 0.6s; }
html.ctl-js .ctl.is-in .msg-line span { clip-path: inset(0 0 0 0); }

html.ctl-js .ctl .lock-dots i { background: transparent; box-shadow: none; border-color: rgba(159, 176, 201, 0.4); transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
html.ctl-js .ctl.is-in .lock-dots i { background: var(--teal); box-shadow: 0 0 12px rgba(47, 212, 198, 0.65); border-color: var(--teal); }
html.ctl-js .ctl.is-in .lock-dots i:nth-child(1) { transition-delay: 0.5s; }
html.ctl-js .ctl.is-in .lock-dots i:nth-child(2) { transition-delay: 0.68s; }
html.ctl-js .ctl.is-in .lock-dots i:nth-child(3) { transition-delay: 0.86s; }
html.ctl-js .ctl.is-in .lock-dots i:nth-child(4) { transition-delay: 1.04s; }

html.ctl-js .ctl .care-viz li { opacity: 0; transform: scale(0.9); transition: opacity 0.45s, transform 0.55s var(--ease-out); }
html.ctl-js .ctl.is-in .care-viz li { opacity: 1; transform: none; }
html.ctl-js .ctl.is-in .care-viz li:nth-child(1) { transition-delay: 0.45s; }
html.ctl-js .ctl.is-in .care-viz li:nth-child(2) { transition-delay: 0.57s; }
html.ctl-js .ctl.is-in .care-viz li:nth-child(3) { transition-delay: 0.69s; }
html.ctl-js .ctl.is-in .care-viz li:nth-child(4) { transition-delay: 0.81s; }

html.ctl-js .ctl .dns-drop { opacity: 1; filter: none; text-decoration-color: transparent; transition: opacity 0.8s 0.9s, filter 0.8s 0.9s, text-decoration-color 0.4s 0.6s; }
html.ctl-js .ctl.is-in .dns-drop { opacity: 0.35; filter: blur(2.5px); text-decoration-color: currentColor; }

/* protected typing: the term is typed in, then cleared, and the notice appears */
html.ctl-js .ctl.is-in .tv-term { animation: tv-term 2.6s var(--ease-out) 0.6s both; }
@keyframes tv-term {
  0% { max-width: 0; opacity: 0; padding: 0; }
  30%, 60% { max-width: 9em; opacity: 1; padding: 0 0.3em; }
  100% { max-width: 0; opacity: 0; padding: 0; }
}
html.ctl-js .ctl .tv-note { opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.5s var(--ease-out); }
html.ctl-js .ctl.is-in .tv-note { opacity: 1; transform: none; transition-delay: 3s; }
html:not(.ctl-js) .tv-term { display: none; }

/* panic: five blocks land, then Focus starts */
html.ctl-js .ctl .pv-blocks i { opacity: 0.18; transform: scale(0.7); box-shadow: none; transition: opacity 0.25s, transform 0.35s var(--ease-out), box-shadow 0.25s; }
html.ctl-js .ctl.is-in .pv-blocks i { opacity: 1; transform: none; box-shadow: 0 0 10px rgba(143, 180, 255, 0.5); }
html.ctl-js .ctl.is-in .pv-blocks i:nth-child(1) { transition-delay: 0.5s; }
html.ctl-js .ctl.is-in .pv-blocks i:nth-child(2) { transition-delay: 0.75s; }
html.ctl-js .ctl.is-in .pv-blocks i:nth-child(3) { transition-delay: 1s; }
html.ctl-js .ctl.is-in .pv-blocks i:nth-child(4) { transition-delay: 1.25s; }
html.ctl-js .ctl.is-in .pv-blocks i:nth-child(5) { transition-delay: 1.5s; }
html.ctl-js .ctl .pv-arrow, html.ctl-js .ctl .pv-focus { opacity: 0; transform: translateX(-6px); transition: opacity 0.45s, transform 0.55s var(--ease-out); }
html.ctl-js .ctl.is-in .pv-arrow { opacity: 1; transform: none; transition-delay: 1.8s; }
html.ctl-js .ctl.is-in .pv-focus { opacity: 1; transform: none; transition-delay: 2s; }

/* dark romance: the veil comes down over the page */
html.ctl-js .ctl .rv-veil { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out) 0.8s; }
html.ctl-js .ctl.is-in .rv-veil { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html.ctl-js .ctl, html.ctl-js .ctl * { transition: none !important; animation: none !important; }
  html.ctl-js .ctl { opacity: 1; transform: none; }
}
