/* Home: "Which Condei is for you?" (.vc) and the Condei Nor band (.nh).
   Owned by its own file so parallel work on the page never collides.
   Defaults are always the finished picture: animations only run once
   assets/home-nor.js marks a scene .is-on, and Reduce Motion removes them,
   so without a script, or with motion off, every end state is on screen. */

/* =========================================================== the chooser */

.vc-grid {
  display: grid;
  gap: clamp(28px, 1rem + 3vw, 72px);
  margin-top: clamp(32px, 1.5rem + 2vw, 56px);
  align-items: center;
}
@media (min-width: 900px) { .vc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.vc-ask { margin: 0; padding: 0; border: 0; min-width: 0; }
.vc-ask legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--t-small); font-weight: 700; }

.vc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 439.98px) { .vc-opts { grid-template-columns: minmax(0, 1fr); } .vc-opt { min-height: 52px; } }
@media (min-width: 900px) { .vc-opts { grid-template-columns: minmax(0, 1fr); max-width: 25rem; } }

.vc-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 44px 10px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--raised) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color var(--dur-standard) linear, box-shadow var(--dur-standard) linear,
              transform var(--dur-micro) var(--ease-spring);
}
.vc-opt:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent); }
.vc-opt:active { transform: scale(0.98); }
.vc-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vc-opt svg {
  flex: none; width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.vc-opt svg .vc-fill { fill: var(--parchment); }
.vc-opt svg .vc-dot { fill: currentColor; stroke: none; }
/* The radio mark: an ink ring, with the brass dot once chosen. */
.vc-opt::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 45%, transparent);
  transition: box-shadow var(--dur-micro) linear, background-color var(--dur-micro) linear;
}
.vc-opt:has(input:checked) {
  background: var(--raised);
  box-shadow: inset 0 0 0 2px var(--ink), var(--shadow);
}
.vc-opt:has(input:checked)::after { background: var(--brass); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 4px var(--raised); }
.vc-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

.vc-say { margin-top: var(--s-5); max-width: 40ch; min-height: 4.8em; font-size: var(--t-body); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.vc-say span { display: block; }

/* ----------------------------------------------------------- the diagram */

.vc-map {
  margin: 0;
  padding: clamp(20px, 1rem + 2vw, 44px) clamp(12px, 0.5rem + 2vw, 40px) clamp(14px, 0.5rem + 1.4vw, 28px);
  border-radius: 28px;
  background: radial-gradient(70% 60% at 50% 18%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 70%),
              color-mix(in srgb, var(--raised) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
}
.vc-svg { width: 100%; height: auto; overflow: visible; }
.vc-svg text { font-family: "Karla", system-ui, sans-serif; text-anchor: middle; }

.vc-frame { fill: var(--raised); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.vc-side { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.vc-lines, .vc-new, .vc-isle { fill: none; stroke-linecap: round; stroke-width: 4.5; }
.vc-lines { stroke: color-mix(in srgb, var(--ink) 24%, transparent); }
.vc-isle { stroke: var(--ink); stroke-width: 5; }
.vc-cam { fill: var(--ink); }
.vc-new { stroke: var(--brass); transition: opacity var(--dur-standard) linear; }
.vc-tag { font-size: 15px; font-weight: 600; fill: var(--muted); }
.vc-end { fill: var(--brass); transform-box: fill-box; transform-origin: center; }

.vc-dev, .vc-person, .vc-arc, .vc-hub, .vc-end { transition: opacity 0.35s linear; }
.vc-dev { opacity: 0.3; }
.vc-dev .vc-end, .vc-dev .vc-new { opacity: 0; }

.vc-arc { fill: none; stroke: var(--brass); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 9; opacity: 0; }

.vc-hub { opacity: 0; }
.vc-hub text { font-size: 17px; font-weight: 700; fill: var(--ink); }
.vc-cloud { fill: var(--raised); stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.vc-lock { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-nor-ring { fill: var(--band); stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1; }
.vc-nor-dot { fill: #C9A366; }
.vc-nor-light { display: none; }
@media (prefers-color-scheme: dark) {
  .vc-nor-ink { display: none; }
  .vc-nor-light { display: inline; }
}
.vc-pulse { fill: none; stroke: var(--brass); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }

.vc-person { opacity: 0; }
.vc-person text { font-family: "Fraunces", Georgia, serif; font-size: 21px; font-weight: 600; fill: #1B2A41; }
.vc-person--mira circle { fill: #A9BC9F; }
.vc-person--sam circle { fill: #C9A366; }

.vc-note { fill: var(--brass); opacity: 0; pointer-events: none; }

/* What each answer lights up. Browsers without :has() keep the plain
   picture: every vault and every sentence, no highlight. */
@supports selector(:has(*)) {
  .vc-say span { display: none; }
  .vc:has(#vc-apple:checked) .vc-say [data-vc="apple"],
  .vc:has(#vc-android:checked) .vc-say [data-vc="android"],
  .vc:has(#vc-both:checked) .vc-say [data-vc="both"],
  .vc:has(#vc-share:checked) .vc-say [data-vc="share"] { display: block; }

  .vc:has(#vc-apple:checked) :is([data-dev="mac"], [data-dev="ipad"], [data-dev="iphone"]),
  .vc:has(#vc-android:checked) [data-dev="android"],
  .vc:has(#vc-both:checked) .vc-dev,
  .vc:has(#vc-share:checked) .vc-dev,
  .vc:has(#vc-share:checked) .vc-person { opacity: 1; }

  .vc:has(#vc-apple:checked) :is([data-arc="mac"], [data-arc="ipad"], [data-arc="iphone"]),
  .vc:has(#vc-android:checked) [data-arc="android"],
  .vc:has(#vc-both:checked) .vc-arc:not(.vc-arc--p),
  .vc:has(#vc-share:checked) .vc-arc { opacity: 1; }

  .vc:has(#vc-apple:checked) :is([data-dev="mac"], [data-dev="ipad"], [data-dev="iphone"]) :is(.vc-end, .vc-new),
  .vc:has(#vc-android:checked) [data-dev="android"] :is(.vc-end, .vc-new),
  .vc:has(#vc-both:checked) .vc-dev :is(.vc-end, .vc-new),
  .vc:has(#vc-share:checked) .vc-dev :is(.vc-end, .vc-new) { opacity: 1; }

  .vc:has(#vc-apple:checked) .vc-hub--icloud,
  .vc:has(#vc-android:checked) .vc-hub--drive,
  .vc:has(:is(#vc-both, #vc-share):checked) .vc-hub--nor { opacity: 1; }

  /* With the script, a line appears on a device only when the note gets there. */
  .vc.is-live .vc-dev:not(.is-hit) .vc-new { opacity: 0; }
  .vc.is-live .vc-dev.is-hit .vc-end { animation: vc-ring 0.7s ease-out both; }
  .vc.is-live .vc-pulse.is-hit { animation: vc-pulse 0.8s ease-out both; }
}
@keyframes vc-ring { 0% { transform: scale(1); } 35% { transform: scale(2.1); } 100% { transform: scale(1); } }
@keyframes vc-pulse { from { opacity: 0.9; transform: scale(0.8); } to { opacity: 0; transform: scale(1.45); } }

/* ------------------------------------------------------------- the vaults */

.vc-vaults {
  display: grid;
  gap: 16px;
  margin: clamp(40px, 2rem + 2.4vw, 72px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) { .vc-vaults { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 0.5rem + 1vw, 24px); } }

.vc-vault {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(22px, 1rem + 0.6vw, 30px) 30px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent);
  transition: box-shadow var(--dur-standard) linear, background-color var(--dur-standard) linear;
}
.vc-vault h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--t-numeral);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
}
.vc-for { margin-top: var(--s-1); font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.vc-vault p:not(.vc-for):not(.vc-match) {
  margin-top: var(--s-4);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}
.vc-vault b { color: var(--ink); font-weight: 700; }

/* Condei Nor: the premium path, on ink, carrying its own lockup. */
.vc-vault--nor {
  --ink: var(--on-band);
  --muted: var(--on-band-muted);
  --focus: var(--on-band-brass);
  background: var(--band);
  color: var(--ink);
  box-shadow: 0 30px 60px -32px rgba(27, 42, 65, 0.7);
}
.vc-vault--nor h3 { padding-block: 6px 4px; line-height: 0; }
.vc-lockup { width: clamp(150px, 8rem + 3vw, 196px); height: auto; }
.vc-link {
  margin-top: auto;
  padding-top: var(--s-4);
  width: fit-content;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--on-band-brass);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
.vc-link:hover { text-decoration-thickness: 2.5px; }

.vc-match { display: none; }
@supports selector(:has(*)) {
  .vc-match {
    position: absolute;
    top: -13px; left: clamp(22px, 1rem + 0.6vw, 30px);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px 0 9px;
    border-radius: 13px;
    background: var(--brass);
    color: #1B2A41;
    font-size: var(--t-micro);
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    transition: opacity var(--dur-standard) linear, transform var(--dur-standard) var(--ease-spring);
  }
  .vc-match::before {
    content: "";
    width: 12px; height: 12px;
    background: currentColor;
    clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
  }
  .vc:has(#vc-apple:checked) .vc-vault--icloud,
  .vc:has(#vc-android:checked) .vc-vault--local {
    background: var(--raised);
    box-shadow: inset 0 0 0 2px var(--ink), var(--shadow);
  }
  .vc:has(:is(#vc-both, #vc-share):checked) .vc-vault--nor {
    box-shadow: 0 0 0 2px var(--parchment), 0 0 0 4px var(--brass), 0 30px 60px -32px rgba(27, 42, 65, 0.7);
  }
  .vc:has(#vc-apple:checked) .vc-vault--icloud .vc-match,
  .vc:has(#vc-android:checked) .vc-vault--local .vc-match,
  .vc:has(:is(#vc-both, #vc-share):checked) .vc-vault--nor .vc-match { opacity: 1; transform: none; }
}

/* ============================================================== the band */

.nh-head {
  display: grid;
  gap: clamp(32px, 1rem + 3vw, 64px);
  align-items: end;
}
@media (min-width: 960px) { .nh-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.nh-lockup { width: clamp(240px, 9rem + 26vw, 540px); height: auto; }
.nh-intro h2 {
  margin-top: clamp(28px, 1rem + 2.4vw, 52px);
  max-width: 18ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 64, "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
.nh-lede {
  margin-top: var(--s-4);
  max-width: 46ch;
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* The two plans, drawn as the promo images draw them: a month of brass,
   or all twelve. */
.nh-plans { display: flex; flex-wrap: wrap; gap: var(--s-5) clamp(28px, 1rem + 2vw, 48px); margin: 0; padding: 0; list-style: none; }
.nh-plan { display: grid; gap: 10px; }
.nh-months { display: flex; gap: 5px; }
.nh-months i { width: 8px; height: 8px; border-radius: 50%; background: rgba(246, 239, 228, 0.2); transition: background-color 0.3s linear; }
.nh-months i.on { background: var(--on-band-brass); }
.nh-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 48, "SOFT" 0, "WONK" 0;
}
.nh-price span { margin-left: 2px; font-family: "Karla", system-ui, sans-serif; font-size: var(--t-small); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.nh-soon { margin-top: var(--s-4); font-size: var(--t-small); color: var(--muted); }
.nh-soon b { color: var(--ink); }
.nh-offer .actions { margin-top: var(--s-5); }

/* When the band arrives, the year fills in, month by month. */
.nh.is-armed:not(.is-seen) .nh-plan--year i.on { background: rgba(246, 239, 228, 0.2); }
.nh.is-seen .nh-plan--year i:nth-child(2) { transition-delay: 60ms; }
.nh.is-seen .nh-plan--year i:nth-child(3) { transition-delay: 120ms; }
.nh.is-seen .nh-plan--year i:nth-child(4) { transition-delay: 180ms; }
.nh.is-seen .nh-plan--year i:nth-child(5) { transition-delay: 240ms; }
.nh.is-seen .nh-plan--year i:nth-child(6) { transition-delay: 300ms; }
.nh.is-seen .nh-plan--year i:nth-child(7) { transition-delay: 360ms; }
.nh.is-seen .nh-plan--year i:nth-child(8) { transition-delay: 420ms; }
.nh.is-seen .nh-plan--year i:nth-child(9) { transition-delay: 480ms; }
.nh.is-seen .nh-plan--year i:nth-child(10) { transition-delay: 540ms; }
.nh.is-seen .nh-plan--year i:nth-child(11) { transition-delay: 600ms; }
.nh.is-seen .nh-plan--year i:nth-child(12) { transition-delay: 660ms; }

/* ---------------------------------------------------- features and stage */

.nh-tour {
  display: grid;
  gap: var(--s-6);
  margin-top: clamp(56px, 2rem + 5vw, 120px);
}
.nh-feats { margin: 0; padding: 0; list-style: none; }
.nh-feat {
  padding: var(--s-5) 0 var(--s-5) var(--s-5);
  border-left: 2px solid var(--on-band-line);
  transition: border-color var(--dur-standard) linear;
}
.nh-feat h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.3; color: var(--muted); transition: color var(--dur-standard) linear; text-wrap: balance; }
.nh-feat p { margin-top: var(--s-2); max-width: 42ch; color: var(--muted); text-wrap: pretty; }
.nh-feat.is-on { border-left-color: var(--on-band-brass); }
.nh-feat.is-on h3 { color: var(--ink); }

.nh-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  container-type: inline-size;
  overflow: hidden;
  border-radius: clamp(18px, 1rem + 0.8vw, 28px);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(201, 163, 102, 0.16), transparent 70%),
    linear-gradient(180deg, #24364F, #17233A);
  box-shadow: inset 0 0 0 1px rgba(246, 239, 228, 0.09), 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

@media (min-width: 960px) {
  .nh-tour { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 1rem + 4vw, 96px); align-items: start; }
  .js .nh-feat { min-height: 42vh; display: flex; flex-direction: column; justify-content: center; }
  .js .nh-stage-wrap { position: sticky; top: max(96px, calc(50vh - 22vw)); }
}
@media (max-width: 959.98px) {
  /* The stage rides at the top of the screen while the list passes under it. */
  .js .nh-stage-wrap {
    order: -1;
    position: sticky;
    top: 72px;
    z-index: 2;
    padding-bottom: var(--s-4);
    background: linear-gradient(var(--band) 85%, transparent);
  }
  .js .nh-feat { min-height: 52vh; }
  .js .nh-feat:last-child { min-height: 40vh; }
}

/* A scene: everything in it is measured in stage widths (cqw). */
.nh-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  color: #1B2A41;
  transition: opacity 0.35s linear, visibility 0s linear 0.35s;
}
.nh-scene.is-on { opacity: 1; visibility: visible; transition: opacity 0.35s linear 0.1s, visibility 0s; }
.nh-scene p { margin: 0; }

.nh-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nh-arc { fill: none; stroke: #C9A366; stroke-width: 1.15; stroke-linecap: round; stroke-dasharray: 0 3.6; opacity: 0.55; }
.nh-ring { fill: none; stroke: #C9A366; stroke-width: 0.5; opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.nh-pin { fill: #C9A366; }

.nh-phone {
  position: absolute;
  width: 15cqw;
  aspect-ratio: 9 / 19;
  padding: 0.6cqw;
  border-radius: 2.6cqw;
  background: #0D1626;
  box-shadow: inset 0 0 0 0.2cqw rgba(246, 239, 228, 0.16), 0 3cqw 5cqw -2cqw rgba(0, 0, 0, 0.6);
}
.nh-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 3.4cqw 1.4cqw 1.4cqw;
  border-radius: 2cqw;
  background: #FBFAF8;
}
.nh-screen::before { content: ""; position: absolute; top: 0.9cqw; left: 50%; height: 1.2cqw; transform: translateX(-50%); background: #0D1626; }
.nh-phone--ios .nh-screen::before { width: 4.2cqw; border-radius: 1cqw; }
.nh-phone--droid .nh-screen::before { width: 1.2cqw; border-radius: 50%; }

.nh-t { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.6cqw; line-height: 1.2; letter-spacing: -0.01em; }
.nh-small { margin-top: 0.8cqw !important; font-size: 1.2cqw; line-height: 1.4; color: #68625B; }
.nh-bar { display: block; width: 88%; height: 0.75cqw; margin-top: 1cqw; border-radius: 1cqw; background: rgba(27, 42, 65, 0.16); }
.nh-bar--s { width: 64%; }
.nh-bar--new { width: 72%; background: #B8935B; transform-origin: left; }
.nh-photo { position: relative; margin-top: 1.4cqw; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1cqw; background: linear-gradient(135deg, #A9BC9F, #B8935B); }
.nh-photo i { position: absolute; inset: 40% 0 0; background: rgba(251, 250, 248, 0.82); clip-path: polygon(0 100%, 30% 25%, 50% 62%, 66% 38%, 100% 100%); }
.nh-photo::after { content: ""; position: absolute; top: 18%; right: 22%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: rgba(251, 250, 248, 0.9); }

.nh-typed { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; }
.nh-caret { display: inline-block; position: relative; font-style: normal; width: 0.22cqw; height: 1.15em; margin-left: 0.15cqw; vertical-align: -0.2em; border-radius: 0.2cqw; background: #9C7A45; }

/* 1 · one vault ------------------------------------------------------- */

.nh-mac { position: absolute; left: 20cqw; top: 8cqw; width: 60cqw; }
.nh-mac-screen {
  display: flex;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0.9cqw solid #0D1626;
  border-radius: 1.8cqw;
  background: #FBFAF8;
  box-shadow: inset 0 0 0 0.15cqw rgba(246, 239, 228, 0.1), 0 4cqw 6cqw -3cqw rgba(0, 0, 0, 0.6);
}
.nh-mac-base { height: 1.6cqw; margin: 0 -4.5cqw; border-radius: 0 0 2.4cqw 2.4cqw / 0 0 1.4cqw 1.4cqw; background: linear-gradient(#41536E, #233149); }
.nh-mac-side { flex: none; width: 11cqw; padding: 3cqw 1.3cqw; background: #F3EDE3; }
.nh-mac-side i { display: block; height: 0.8cqw; margin-bottom: 1.5cqw; border-radius: 1cqw; background: rgba(27, 42, 65, 0.14); }
.nh-mac-side i:nth-child(2n) { width: 70%; }
.nh-mac-side i.on { width: 100%; height: 1.8cqw; margin-inline: -0.5cqw; background: rgba(184, 147, 91, 0.32); }
.nh-mac-note { flex: 1; min-width: 0; padding: 2.6cqw 3.2cqw; font-size: 1.6cqw; line-height: 1.75; }
.nh-mac-note .nh-t { margin-bottom: 0.8cqw; font-size: 2.7cqw; }
.nh-mac-note .nh-photo { width: 62%; }
.nh-s-sync .nh-phone--ios { left: 4.5cqw; top: 33cqw; }
.nh-s-sync .nh-phone--droid { left: 80.5cqw; top: 31cqw; }
.nh-s-sync .nh-phone .nh-t { font-size: 1.5cqw; }

.nh-s-sync.is-on .nh-typed { animation: nh-type 1.1s steps(15, end) 0.5s both; }
.nh-s-sync.is-on .nh-arc { animation: nh-flow 1.1s linear 1.7s both; }
.nh-s-sync.is-on .nh-ring--a { animation: nh-ring 0.8s ease-out 2.5s both; }
.nh-s-sync.is-on .nh-bar--new { animation: nh-grow 0.5s cubic-bezier(0.22, 1.12, 0.36, 1) 2.6s both; }

/* 2 · write together -------------------------------------------------- */

.nh-card {
  position: absolute;
  left: 7cqw; top: 12cqw;
  width: 62cqw;
  padding: 4cqw 4.4cqw 3cqw;
  border-radius: 3cqw;
  background: #FBFAF8;
  box-shadow: 0 4cqw 7cqw -3cqw rgba(0, 0, 0, 0.6);
}
.nh-card-top { display: flex; align-items: center; justify-content: space-between; }
.nh-card-t { font-family: "Fraunces", Georgia, serif; font-size: 4.4cqw; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.nh-faces { position: relative; display: flex; }
.nh-face {
  display: flex; align-items: center; justify-content: center;
  width: 5.2cqw; height: 5.2cqw;
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif; font-size: 2.3cqw; font-weight: 600;
  color: #1B2A41;
}
.nh-face--m { background: #A9BC9F; }
.nh-face--s { margin-left: -1.3cqw; background: #C9A366; box-shadow: 0 0 0 0.45cqw #FBFAF8; }
.nh-bubble {
  position: absolute; right: -2.6cqw; top: -4.4cqw;
  display: flex; gap: 0.5cqw;
  padding: 1cqw 1.3cqw;
  border-radius: 2cqw 2cqw 2cqw 0.4cqw;
  background: #FFFFFF;
  box-shadow: 0 1cqw 2.4cqw -1cqw rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.nh-bubble i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #68625B; }
.nh-line { margin-top: 1.6cqw !important; font-size: 2.7cqw; font-weight: 500; line-height: 1.4; }
.nh-card .nh-caret { width: 0.3cqw; height: 3.6cqw; margin-left: 0.2cqw; vertical-align: -0.8cqw; }
.nh-caret b {
  position: absolute; left: 0; top: 0;
  padding: 0.3cqw 1cqw;
  border-radius: 0 0.8cqw 0.8cqw 0;
  font-size: 1.6cqw; font-weight: 700; line-height: 1.2;
  white-space: nowrap;
  color: #1B2A41;
}
.nh-caret--m, .nh-caret--m b { background: #A9BC9F; }
.nh-caret--s, .nh-caret--s b { background: #C9A366; }
.nh-card-foot {
  display: flex; align-items: center; gap: 1cqw;
  margin-top: 3cqw !important; padding-top: 2cqw;
  border-top: 1px solid rgba(27, 42, 65, 0.12);
  font-size: 1.7cqw; font-weight: 600; color: #68625B;
}
.nh-card-foot svg { width: 2.2cqw; height: 2.2cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nh-s-share-p { left: 75cqw; top: 17cqw; width: 17cqw; }
.nh-s-share-p .nh-bar--m { width: 70%; background: #A9BC9F; transform-origin: left; }
.nh-s-share-p .nh-bar--s2 { width: 50%; background: #C9A366; transform-origin: left; }

.nh-s-share.is-on .nh-typed--m { animation: nh-type 1.4s steps(20, end) 0.5s both; }
.nh-s-share.is-on .nh-typed--s { animation: nh-type 1.1s steps(15, end) 1.2s both; }
.nh-s-share.is-on .nh-bubble { animation: nh-bubble 2.4s linear 0.3s both; }
.nh-s-share.is-on .nh-bubble i { animation: nh-blink 0.9s ease-in-out 0.3s 3 both; }
.nh-s-share.is-on .nh-bubble i:nth-child(2) { animation-delay: 0.45s; }
.nh-s-share.is-on .nh-bubble i:nth-child(3) { animation-delay: 0.6s; }
.nh-s-share.is-on .nh-bar--m { animation: nh-grow 1.4s steps(8, end) 0.8s both; }
.nh-s-share.is-on .nh-bar--s2 { animation: nh-grow 1.1s steps(6, end) 1.5s both; }

/* 3 · encrypted before upload ------------------------------------------ */

.nh-s-seal-p { left: 11cqw; top: 8cqw; width: 19cqw; }
.nh-s-seal-p .nh-t { font-size: 1.9cqw; margin-bottom: 0.6cqw; }
.nh-s-seal-p .nh-small { font-size: 1.3cqw; color: #1B2A41; }
.nh-server {
  position: absolute; left: 69cqw; top: 14cqw;
  display: grid; gap: 1cqw;
  width: 20cqw;
}
.nh-server i {
  position: relative;
  height: 4.2cqw;
  border-radius: 1cqw;
  background: rgba(246, 239, 228, 0.08);
  box-shadow: inset 0 0 0 0.2cqw rgba(246, 239, 228, 0.18);
}
.nh-server i::after { content: ""; position: absolute; right: 1.6cqw; top: 50%; width: 0.9cqw; height: 0.9cqw; margin-top: -0.45cqw; border-radius: 50%; background: #C9A366; }
.nh-cipher {
  margin-top: 1cqw;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.35cqw; line-height: 1.55;
  color: #C2BAAD;
  word-break: break-all;
}
.nh-lockbadge {
  position: absolute; left: 46.6cqw; top: 15.5cqw;
  display: flex; align-items: center; justify-content: center;
  width: 5.4cqw; height: 5.4cqw;
  border-radius: 50%;
  background: #1B2A41;
  box-shadow: 0 0 0 0.3cqw #C9A366;
}
.nh-lockbadge svg { width: 2.8cqw; height: 2.8cqw; fill: none; stroke: #C9A366; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nh-packet {
  position: absolute;
  padding: 0.6cqw 1.2cqw;
  border-radius: 1cqw;
  font-size: 1.5cqw; font-weight: 700; line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
}
.nh-packet--plain { left: 24cqw; top: 26cqw; background: #FBFAF8; color: #1B2A41; }
.nh-packet--sealed { left: 47cqw; top: 19cqw; background: #C9A366; color: #1B2A41; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; }
.nh-cap { position: absolute; top: 54cqw; transform: translateX(-50%); font-size: max(11px, 1.6cqw); font-weight: 600; white-space: nowrap; color: #C2BAAD; }
.nh-cap--l { left: 20.5cqw; }
.nh-cap--r { left: 79cqw; }

.nh-s-seal.is-on .nh-packet--plain { animation: nh-plain 1.4s ease-in-out 0.5s both; }
.nh-s-seal.is-on .nh-packet--sealed { animation: nh-sealed 1.6s ease-in-out 1.5s both; }
.nh-s-seal.is-on .nh-lockbadge { animation: nh-lock 0.6s cubic-bezier(0.22, 1.12, 0.36, 1) 1.45s both; }
.nh-s-seal.is-on .nh-arc { animation: nh-flow-back 2.6s linear 0.5s both; }
.nh-s-seal.is-on .nh-cipher { animation: nh-in 0.4s linear 3s both; }

/* 4 · a new device ----------------------------------------------------- */

.nh-s-pair .nh-phone { top: 9cqw; width: 23cqw; }
.nh-s-pair-a { left: 22.5cqw; }
.nh-s-pair-b { left: 54.5cqw; }
.nh-s-pair .nh-screen { padding: 4.6cqw 2cqw 2cqw; }
.nh-s-pair .nh-t { font-size: 2.3cqw; }
.nh-s-pair .nh-small { font-size: 1.35cqw; }
.nh-code { display: flex; gap: 0.5cqw; margin-top: 1.4cqw !important; }
.nh-code b {
  display: flex; align-items: center; justify-content: center;
  width: 2.7cqw; height: 3.8cqw;
  border-radius: 0.7cqw;
  background: #F1EADF;
  font-size: 2.1cqw; font-weight: 700;
}
.nh-code b:nth-child(3) { margin-right: 0.9cqw; }
.nh-approve {
  display: block;
  margin-top: 3.4cqw;
  padding: 1cqw 0.6cqw;
  border-radius: 3cqw;
  background: #B8935B;
  font-size: 1.35cqw; font-weight: 700; text-align: center;
  opacity: 0;
}
.nh-tick {
  position: absolute; left: 50%; top: 27cqw;
  display: flex; align-items: center; justify-content: center;
  width: 5.6cqw; height: 5.6cqw; margin-left: -2.8cqw;
  border-radius: 50%;
  background: #587154;
}
.nh-tick svg { width: 3.2cqw; height: 3.2cqw; fill: none; stroke: #FBFAF8; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nh-wait { position: absolute; inset: 4.6cqw 2cqw auto; opacity: 0; }
.nh-row { padding: 1cqw 0; border-bottom: 1px solid rgba(27, 42, 65, 0.1); font-size: 1.35cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-list .nh-t { margin-bottom: 0.6cqw; }

.nh-s-pair.is-on .nh-code b { animation: nh-pop 0.45s cubic-bezier(0.22, 1.12, 0.36, 1) both; }
.nh-s-pair.is-on .nh-code b:nth-child(1) { animation-delay: 0.3s; }
.nh-s-pair.is-on .nh-code b:nth-child(2) { animation-delay: 0.38s; }
.nh-s-pair.is-on .nh-code b:nth-child(3) { animation-delay: 0.46s; }
.nh-s-pair.is-on .nh-code b:nth-child(4) { animation-delay: 0.54s; }
.nh-s-pair.is-on .nh-code b:nth-child(5) { animation-delay: 0.62s; }
.nh-s-pair.is-on .nh-code b:nth-child(6) { animation-delay: 0.7s; }
.nh-s-pair.is-on .nh-approve { animation: nh-press 1.2s linear 0.9s both; }
.nh-s-pair.is-on .nh-s-pair-a .nh-tick { animation: nh-pop 0.45s cubic-bezier(0.22, 1.12, 0.36, 1) 2.1s both; }
.nh-s-pair.is-on .nh-arc { animation: nh-flow-back 0.9s linear 2.2s both; }
.nh-s-pair.is-on .nh-wait { animation: nh-hold-out 3s linear both; }
.nh-s-pair.is-on .nh-list { animation: nh-in 0.3s linear 3s both; }
.nh-s-pair.is-on .nh-row { animation: nh-rise 0.4s cubic-bezier(0.22, 1.12, 0.36, 1) both; }
.nh-s-pair.is-on .nh-row:nth-child(2) { animation-delay: 3.05s; }
.nh-s-pair.is-on .nh-row:nth-child(3) { animation-delay: 3.13s; }
.nh-s-pair.is-on .nh-row:nth-child(4) { animation-delay: 3.21s; }
.nh-s-pair.is-on .nh-row:nth-child(5) { animation-delay: 3.29s; }
.nh-s-pair.is-on .nh-row:nth-child(6) { animation-delay: 3.37s; }

/* 5 · 5 GB ------------------------------------------------------------- */

.nh-thumbs { position: absolute; left: 0; right: 0; top: 4cqw; display: flex; justify-content: center; gap: 3cqw; }
.nh-thumb {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  width: 10cqw; height: 12.5cqw;
  overflow: hidden;
  border-radius: 1.2cqw;
  background: #FBFAF8;
  box-shadow: 0 2cqw 3cqw -1.5cqw rgba(0, 0, 0, 0.6);
}
.nh-thumb b { margin-bottom: 1.4cqw; font-size: 1.5cqw; font-weight: 800; color: #1B2A41; }
.nh-thumb--photo { background: linear-gradient(135deg, #A9BC9F, #B8935B); transform: rotate(-6deg); }
.nh-thumb--photo i { position: absolute; inset: 45% 0 0; background: rgba(251, 250, 248, 0.82); clip-path: polygon(0 100%, 30% 25%, 50% 62%, 66% 38%, 100% 100%); }
.nh-thumb--photo::after { content: ""; position: absolute; top: 18%; right: 20%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: rgba(251, 250, 248, 0.9); }
.nh-thumb--pdf { transform: translateY(-1cqw) rotate(2deg); }
.nh-thumb--pdf::before, .nh-thumb--file::before {
  content: ""; position: absolute; left: 1.6cqw; right: 1.6cqw; top: 2cqw; height: 5cqw;
  background: repeating-linear-gradient(rgba(27, 42, 65, 0.18) 0 0.5cqw, transparent 0.5cqw 1.2cqw);
}
.nh-thumb--file { transform: rotate(7deg); background: #EFE6D6; }
.nh-meter {
  position: absolute; left: 17cqw; top: 22cqw;
  width: 66cqw;
  padding: 3cqw 3.6cqw;
  border-radius: 2.6cqw;
  background: #FBFAF8;
  box-shadow: 0 4cqw 7cqw -3cqw rgba(0, 0, 0, 0.6);
}
.nh-meter-h { font-size: 1.5cqw; font-weight: 700; color: #68625B; }
.nh-meter-v { margin-top: 0.4cqw !important; font-family: "Fraunces", Georgia, serif; font-size: 3.6cqw; font-weight: 600; line-height: 1.15; }
.nh-meter-bar { display: flex; height: 1.7cqw; margin-top: 1.6cqw; overflow: hidden; border-radius: 1cqw; background: rgba(27, 42, 65, 0.1); }
.nh-meter-bar::before { content: none; }
.nh-seg { display: block; height: 100%; transform-origin: left; }
.nh-seg--a, .nh-key--a { background: #1B2A41; }
.nh-seg--b, .nh-key--b { background: #8A8278; }
.nh-seg--c, .nh-key--c { background: #B8935B; }
.nh-seg--a { width: 1.2%; }
.nh-seg--b { width: 4.2%; }
.nh-seg--c { width: 30.6%; }
.nh-meter-pc { margin-top: 0.8cqw !important; font-size: 1.4cqw; font-weight: 600; color: #68625B; text-align: right; }
.nh-meter-rows { margin: 1.2cqw 0 0; padding: 0; list-style: none; }
.nh-meter-rows li { display: flex; align-items: center; gap: 1.2cqw; padding: 1cqw 0; border-top: 1px solid rgba(27, 42, 65, 0.1); font-size: 1.6cqw; font-weight: 600; }
.nh-meter-rows span { margin-left: auto; color: #68625B; }
.nh-key { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; }

.nh-s-store.is-on .nh-thumb { animation: nh-drop 0.6s cubic-bezier(0.22, 1.12, 0.36, 1) both; }
.nh-s-store.is-on .nh-thumb--photo { animation-delay: 0.3s; }
.nh-s-store.is-on .nh-thumb--pdf { animation-delay: 0.55s; }
.nh-s-store.is-on .nh-thumb--file { animation-delay: 0.8s; }
.nh-s-store.is-on .nh-seg { animation: nh-grow 0.6s ease-out both; }
.nh-s-store.is-on .nh-seg--a { animation-delay: 1.1s; animation-duration: 0.2s; }
.nh-s-store.is-on .nh-seg--b { animation-delay: 1.3s; animation-duration: 0.3s; }
.nh-s-store.is-on .nh-seg--c { animation-delay: 1.6s; animation-duration: 0.9s; }
.nh-s-store.is-on .nh-meter-pc { animation: nh-in 0.3s linear 2.4s both; }

/* 6 · leaving ---------------------------------------------------------- */

.nh-server--sm { left: 70cqw; top: 9cqw; width: 15cqw; gap: 0.8cqw; }
.nh-server--sm i { height: 3.2cqw; }
.nh-icloud { position: absolute; left: 70cqw; top: 43cqw; width: 15cqw; }
.nh-icloud svg { width: 100%; height: auto; fill: rgba(246, 239, 228, 0.08); stroke: #C9A366; stroke-width: 1.6; stroke-linejoin: round; }
.nh-s-leave-p { left: 30cqw; top: 7cqw; width: 24cqw; }
.nh-s-leave-p .nh-screen { padding: 5cqw 2.2cqw 2cqw; }
.nh-s-leave-p .nh-t { font-size: 2.3cqw; }
.nh-s-leave-p .nh-small { font-size: 1.4cqw; }
.nh-leave-a { position: absolute; inset: 5cqw 2.2cqw auto; opacity: 0; }
.nh-prog { height: 1cqw; margin: 2cqw 0 1cqw; overflow: hidden; border-radius: 1cqw; background: rgba(27, 42, 65, 0.1); }
.nh-prog i { display: block; height: 100%; background: #B8935B; transform-origin: left; }
.nh-leave-b { padding-top: 2cqw; text-align: center; }
.nh-leave-b .nh-tick { position: static; margin: 0 auto 2cqw; }

.nh-s-leave.is-on .nh-arc { animation: nh-flow-back 1.6s linear 0.3s both; }
.nh-s-leave.is-on .nh-arc--late { animation: nh-flow-back 1s linear 2.4s both; }
.nh-s-leave.is-on .nh-prog i { animation: nh-grow 1.6s ease-in-out 0.3s both; }
.nh-s-leave.is-on .nh-leave-a { animation: nh-hold-out 2.2s linear both; }
.nh-s-leave.is-on .nh-leave-b { animation: nh-in 0.35s linear 2.2s both; }
.nh-s-leave.is-on .nh-leave-b .nh-tick { animation: nh-pop 0.45s cubic-bezier(0.22, 1.12, 0.36, 1) 2.3s both; }
.nh-s-leave.is-on .nh-icloud svg { animation: nh-glow 0.8s ease-out 3.2s both; }

/* ------------------------------------------------------------- keyframes */

@keyframes nh-type { from { max-width: 0; } to { max-width: var(--tw, 12em); } }
@keyframes nh-flow { 0% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: 14.4; opacity: 0.55; } }
@keyframes nh-flow-back { 0% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -21.6; opacity: 0.55; } }
@keyframes nh-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes nh-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nh-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nh-hold-out { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nh-bubble { 0% { opacity: 0; transform: translateY(0.6cqw); } 10%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes nh-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes nh-plain {
  0% { opacity: 0; transform: translate(0, 1cqw); }
  15% { opacity: 1; transform: translate(2cqw, -2cqw); }
  80% { opacity: 1; transform: translate(17cqw, -7cqw); }
  100% { opacity: 0; transform: translate(20cqw, -7.4cqw) scale(0.8); }
}
@keyframes nh-sealed {
  0% { opacity: 0; transform: scale(0.8); }
  15% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: translate(14cqw, -0.5cqw); }
  100% { opacity: 0; transform: translate(16cqw, 0) scale(0.8); }
}
@keyframes nh-lock { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes nh-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes nh-press { 0% { opacity: 1; transform: none; } 55% { transform: none; } 65% { transform: scale(0.94); } 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes nh-rise { from { opacity: 0; transform: translateY(1.2cqw); } to { opacity: 1; transform: none; } }
@keyframes nh-drop { from { opacity: 0; translate: 0 -8cqw; } to { opacity: 1; translate: 0 0; } }
@keyframes nh-glow { 0% { fill: rgba(246, 239, 228, 0.08); } 50% { fill: rgba(201, 163, 102, 0.4); } 100% { fill: rgba(201, 163, 102, 0.16); } }

/* Reduce Motion: no movement at all — every scene is its finished picture,
   and switching scenes is a plain cut. */
@media (prefers-reduced-motion: reduce) {
  .vc *, .nh * { animation: none !important; transition-delay: 0s !important; }
  .vc-note { display: none; }
}

/* Until the stage is in view, scene one holds its first frame. */
.nh.is-waiting .nh-scene * { animation-play-state: paused !important; }

.nh-s-share-p .nh-small { font-size: 1.15cqw; color: #1B2A41; }
.nh-s-seal-p .nh-photo, .nh-s-share-p .nh-photo { margin-top: 1.6cqw; }
.nh-leave-rows { margin-top: 2.4cqw !important; text-align: left; }
.nh-leave-rows .nh-row { display: flex; justify-content: space-between; gap: 1cqw; font-size: 1.3cqw; }
.nh-leave-rows .nh-row span { color: #68625B; font-weight: 500; }
.nh-cap--srv { left: 77.5cqw; top: 22.5cqw; }
.nh-cap--cloud { left: 77.5cqw; top: 54cqw; }
