:root {
  --ink: #0c0a09;
  --ink-2: #13100e;
  --paper: #f4efe6;
  --muted: #cfc6b8;
  --quiet: #a39a8c;
  --line: rgba(244, 239, 230, 0.13);
  --brass: #d7b483;
  --rose: #e0a9b1;
  --carmine: #9d3b3a;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--paper);
  background:
    radial-gradient(900px 560px at 86% -6%, rgba(157, 59, 58, 0.2), transparent 60%),
    radial-gradient(700px 420px at -10% 18%, rgba(215, 180, 131, 0.06), transparent 55%),
    var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: #9d3b3a; color: var(--paper); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--paper);
  color: #1a100e;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}
.eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.prose { display: grid; gap: 14px; color: var(--muted); }
.prose p { max-width: 58ch; }
.quiet-prose { color: var(--quiet); }
.gloss { margin-top: 4px; font-size: 13px; color: var(--quiet); }
.fine { margin-top: 14px; max-width: 46ch; font-size: 13px; color: var(--quiet); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--paper);
  color: #1a100e;
  box-shadow: 0 10px 30px -12px rgba(244, 239, 230, 0.45);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(244, 239, 230, 0.02); border-color: rgba(244, 239, 230, 0.26); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(244, 239, 230, 0.06); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.ring { width: 22px; height: 22px; color: var(--brass); }

.wash {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.wash p {
  position: absolute;
  left: -4vw;
  top: 16vh;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26vw;
  line-height: 0.8;
  color: rgba(244, 239, 230, 0.03);
  white-space: nowrap;
  user-select: none;
}
#site { position: relative; z-index: 1; overflow-x: clip; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2));
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(12, 10, 9, 0.84);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.nav-bar { display: flex; align-items: center; gap: 26px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 38px; padding: 0 16px; font-size: 13px; box-shadow: none; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
}
#story, #paths, #screens, #hand, #questions, #list, #device { scroll-margin-top: 84px; }

/* Hero */
.hero { padding: 24px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  border: 1px solid rgba(215, 180, 131, 0.42);
  color: var(--brass);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pill-hot { border-color: rgba(196, 86, 78, 0.75); color: #f3ddd8; background: rgba(157, 59, 58, 0.14); }
.title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(68px, 8.4vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fbf6ee 30%, #d9c6a6 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.knife {
  display: block;
  max-width: 12em;
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.meaning {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.dek {
  max-width: 44ch;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
}
.door-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
}
.door-key span { display: inline-flex; align-items: baseline; gap: 8px; }
.door-key strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--paper);
}
.hero-actions { margin-top: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--quiet);
}
.reassure span { margin-inline: 6px; color: var(--brass); }
.hero-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: 8% -30% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(157, 59, 58, 0.28), rgba(215, 180, 131, 0.06) 60%, transparent);
  filter: blur(20px);
}
.phone-caption {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li {
  padding: 32px 24px 30px;
  border-left: 1px solid var(--line);
}
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5vw, 62px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: oldstyle-nums;
}
.facts span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.facts em {
  display: block;
  margin-top: 8px;
  max-width: 26ch;
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.facts-section + .section { border-top: 0; }
.vow-top, .hand-grid, .questions-grid, .list-grid, .section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.vow-top, .section-head { align-items: end; margin-bottom: 52px; }

.cast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.person {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.role {
  margin: 6px 0 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.person p:last-child { color: var(--muted); font-size: 15px; max-width: 44ch; }

.mono {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2a211c, #120e0c);
  box-shadow: 0 0 0 1px rgba(215, 180, 131, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--brass);
}
.mono[data-tone="rose"] {
  background: radial-gradient(circle at 30% 25%, #2e1a1d, #140b0d);
  box-shadow: 0 0 0 1px rgba(224, 169, 177, 0.65);
  color: var(--rose);
}
.mono[data-tone="slate"] {
  background: radial-gradient(circle at 30% 25%, #1e2229, #0e1013);
  box-shadow: 0 0 0 1px rgba(185, 194, 207, 0.55);
  color: #c4ccd8;
}
.mono[data-tone="paper"] {
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.5);
  color: var(--paper);
}
.mono-lg { width: 56px; height: 56px; font-size: 24px; }
.mono-lg[lang="it"] { font-size: 19px; }

/* Paths */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.035), rgba(244, 239, 230, 0.01));
  overflow: hidden;
}
.path::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 180, 131, 0.6), transparent);
}
.path h3 { font-size: clamp(38px, 4vw, 54px); line-height: 1; margin-bottom: 10px; }
.path-line {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--paper);
}
.path p:not([class]) { color: var(--muted); max-width: 50ch; }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 22px 0 0;
  border: 0;
  background: none;
  color: var(--brass);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.text-btn span { transition: transform 0.2s ease; }
.text-btn:hover { color: var(--paper); }
.text-btn:hover span { transform: translateX(3px); }

/* Screens */
.screens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 56px);
  padding: 0 24px 12px;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.shot:nth-child(1) { transform: rotate(-4deg) translateY(22px); }
.shot:nth-child(3) { transform: rotate(4deg) translateY(22px); }
.shot figcaption {
  max-width: 220px;
  margin-top: 26px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.35;
}
.shot figcaption span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

/* How it plays */
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.steps span {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--brass);
  line-height: 1;
}
.steps h3 { font-style: normal; font-size: 26px; margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 48ch; }

.specimen {
  position: sticky;
  top: 100px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.04), rgba(244, 239, 230, 0.01));
}
.specimen figure + figure { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.specimen figcaption {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.specimen blockquote {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.specimen-phone blockquote {
  display: inline-block;
  font-family: var(--system);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #2c2c2e;
}
.specimen-lock blockquote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--system);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.1);
}
.specimen-lock svg { width: 14px; height: 14px; color: var(--brass); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--brass);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  max-width: 62ch;
  margin: -6px 0 20px;
  color: var(--muted);
}

/* List */
.list-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.04), rgba(244, 239, 230, 0.01));
}
.field { display: block; }
.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.field input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 18px;
}
.field input::placeholder { color: rgba(244, 239, 230, 0.32); }
.field input:focus { outline: none; border-bottom-color: var(--brass); }
.field input:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.doors {
  margin: 24px 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.doors legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.door { position: relative; display: block; cursor: pointer; }
.door input { position: absolute; opacity: 0; }
.door span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.door:hover span { border-color: rgba(244, 239, 230, 0.3); }
.door strong { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 18px; }
.door small { color: var(--quiet); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.door input:checked + span {
  border-color: var(--brass);
  background: rgba(215, 180, 131, 0.08);
}
.door input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.confirm strong { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 28px; display: block; margin-bottom: 8px; }
.confirm p { color: var(--muted); }
.confirm .btn { margin-top: 18px; }

/* Footer */
.footer { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: end;
}
.footer .wordmark { font-size: 36px; }
.footer-line { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--paper); }
.footer-fine { grid-column: 1 / -1; margin-top: 0; max-width: none; }

/* Phone shell: bezel, radii, and island from the iPhone frame.
   Outer radius 46, inset 9, screen radius 38, island 90×26. */
.device {
  --shell-h: clamp(600px, calc(100dvh - 150px), 720px);
  position: relative;
  height: var(--shell-h);
  aspect-ratio: 408 / 862;
  width: auto;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #2b2722 0%, #0d0c0b 42%, #1d1a16 100%);
  box-shadow:
    0 0 0 1px rgba(212, 180, 140, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -36px rgba(157, 59, 58, 0.45);
}
.device.is-buzz { animation: buzz 0.36s linear 2; }
@keyframes buzz {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px) rotate(-0.35deg); }
  40% { transform: translateX(2px) rotate(0.35deg); }
  60% { transform: translateX(-1.5px); }
  80% { transform: translateX(1.5px); }
}
.hw {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9a9084, #4a433c 45%, #2a2622);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.hw-silent { left: -4px; top: 13%; height: 4%; }
.hw-vol-up { left: -4px; top: 19%; height: 7%; }
.hw-vol-down { left: -4px; top: 27.5%; height: 7%; }
.hw-power { right: -4px; top: 21%; height: 11%; }
.device-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: var(--system);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  container: glass / size;
}
.stage { position: absolute; inset: 0; display: none; }
.stage.is-on { display: block; }

/* Apartment */
.stage-apartment { background: #0c0806; }
.apt-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.swifts { animation: swifts 26s linear infinite; }
@keyframes swifts {
  0% { transform: translate(-40px, 8px); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(12px, -6px); }
  90% { opacity: 1; }
  100% { transform: translate(70px, 4px); opacity: 0; }
}
.curtain, .hanging-dress { transform-box: fill-box; transform-origin: 50% 0; }
.curtain-r { animation: sway-r 7s ease-in-out infinite alternate; }
.curtain-l { animation: sway-l 9s ease-in-out infinite alternate; }
.hanging-dress { animation: dress-sway 7s ease-in-out infinite alternate; }
@keyframes sway-r { to { transform: skewX(-1.8deg); } }
@keyframes sway-l { to { transform: skewX(0.7deg); } }
@keyframes dress-sway { to { transform: rotate(-1.2deg); } }
.sun-glow { animation: sun-glow 6s ease-in-out infinite alternate; }
@keyframes sun-glow { from { opacity: 0.8; } to { opacity: 1; } }
.motes circle { animation: mote 10s ease-in-out infinite; }
.motes circle:nth-child(2) { animation-delay: -2s; }
.motes circle:nth-child(3) { animation-delay: -4s; }
.motes circle:nth-child(4) { animation-delay: -6s; }
.motes circle:nth-child(5) { animation-delay: -8s; }
@keyframes mote {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(6px, -18px); opacity: 0.7; }
}

/* Palazzo */
.stage-palazzo {
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255, 226, 186, 0.14), transparent 70%),
    linear-gradient(180deg, #14110f, #0b0908);
}
.palazzo-light {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(255, 232, 204, 0.18), transparent 82%);
  clip-path: polygon(34% 0, 66% 0, 88% 100%, 12% 100%);
}
.panel {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 40%;
  height: 34%;
  transform: translateX(-50%);
  padding: 7px;
  border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px;
  background: linear-gradient(180deg, #3a3126, #221c15);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(215, 180, 131, 0.2);
}
.panel::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(100% + 18px);
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(215, 180, 131, 0.22), transparent);
  filter: blur(6px);
}
.panel-gold {
  position: relative;
  height: 100%;
  border-radius: 50% 50% 2px 2px / 25% 25% 2px 2px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 248, 230, 0.6), transparent 30%),
    radial-gradient(circle at 42% 28%, rgba(255, 236, 200, 0.8), transparent 44%),
    linear-gradient(180deg, #f3ddb0, #b18445 48%, #f0d7a4 72%, #6d5124);
}
.saint { position: absolute; inset: 14% 10% 0; width: 80%; height: 86%; }
.stanchions {
  position: absolute;
  left: 12%;
  width: 76%;
  top: 50%;
}

/* Lock screen */
.stage-lock { background: #120709; overflow: hidden; }
.lock-wall {
  position: absolute;
  inset: -24px;
  background:
    radial-gradient(circle at 22% 66%, rgba(255, 196, 128, 0.55) 0 4%, transparent 4.8%),
    radial-gradient(circle at 72% 58%, rgba(255, 170, 120, 0.42) 0 6%, transparent 6.8%),
    radial-gradient(circle at 48% 78%, rgba(215, 120, 110, 0.45) 0 5%, transparent 5.8%),
    radial-gradient(circle at 86% 82%, rgba(255, 214, 160, 0.38) 0 3.5%, transparent 4.2%),
    radial-gradient(circle at 12% 88%, rgba(255, 150, 120, 0.3) 0 7%, transparent 7.8%),
    radial-gradient(circle at 62% 92%, rgba(255, 200, 140, 0.28) 0 8%, transparent 8.8%),
    radial-gradient(circle at 34% 50%, rgba(255, 210, 150, 0.22) 0 3%, transparent 3.6%),
    radial-gradient(120% 70% at 50% 100%, #5e1f29 0%, #24090f 55%, #0b0506 100%);
  filter: blur(7px) saturate(1.1);
}
.stage-lock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 40%);
}
.lock-top {
  position: absolute;
  z-index: 1;
  top: 50px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 244, 240, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.lock-pad { width: 15px; height: 15px; margin-bottom: 6px; opacity: 0.9; }
.lock-date { font-size: 16px; font-weight: 600; opacity: 0.88; }
.lock-clock {
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.lock-widget {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  text-shadow: none;
}
.lock-widget svg { width: 13px; height: 13px; color: var(--brass); }

/* Screen off */
.stage-dark { background: radial-gradient(80% 50% at 50% 100%, #0d0b0a, #000 70%); }

/* Messages */
.stage-thread.is-on { display: flex; flex-direction: column; }
.thread-app { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: #000; }
.thread-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 48px 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 22, 24, 0.94);
}
.thread-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0a84ff;
}
.thread-back:disabled { opacity: 0.3; cursor: default; }
.thread-video { justify-self: center; color: #0a84ff; }
.thread-who { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.thread-who .mono { width: 40px; height: 40px; font-size: 18px; }
.thread-who strong { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.thread-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 180px;
  scrollbar-width: none;
}
.thread-body::-webkit-scrollbar { display: none; }
.thread-when {
  margin: 4px 0 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}
.bubble {
  width: fit-content;
  max-width: 80%;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.33;
  animation: bubble-in 0.28s ease both;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.bubble p { margin: 0; }
.bubble.her { background: #3a3a3c; border-bottom-left-radius: 6px; }
.bubble.me {
  margin-left: auto;
  margin-top: 10px;
  background: linear-gradient(180deg, #3b95ff 0%, #0a7cff 100%);
  border-bottom-right-radius: 6px;
}
.bubble.her + .bubble.me, .bubble.me + .bubble.her { margin-top: 10px; }
.bubble .gloss { margin-top: 2px; color: rgba(255, 255, 255, 0.6); font-size: 11.5px; }
.bubble.photo { width: 62%; padding: 0; overflow: hidden; }
.bubble.photo .gloss { padding: 7px 11px 9px; font-style: italic; }
.photo-img {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(60% 34% at 54% 14%, rgba(255, 214, 160, 0.75), transparent 72%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, #4a3a30, #1d1613 78%, #2b221d);
  filter: blur(0.6px) saturate(0.9);
}
.photo-img svg { width: 100%; height: 100%; }
.bubble.typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  animation: none;
}
.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: dot 1.1s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.receipt {
  margin: 3px 4px 0;
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

/* Status, island, glass */
.status {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 26px 0 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
  transition: opacity 0.3s ease;
}
.device-screen[data-scene="thread"] .status { background: rgba(22, 22, 24, 0.94); }
.device-screen[data-scene="lock"] .status { background: none; }
.device-screen[data-scene="lock"] .status-time { visibility: hidden; }
.device-screen[data-scene="dark"] .status { opacity: 0; }
.status-time { font-variant-numeric: tabular-nums; }
.sigs { display: flex; align-items: center; gap: 5px; }
.status-batt {
  position: relative;
  width: 25px;
  height: 12px;
  padding: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3.5px;
}
.status-batt::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 3.5px;
  width: 1.5px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.45);
}
.status-batt span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 1.5px;
  background: #fff;
}
.island {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 8px;
  width: 90px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: #fff;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.island.is-live { width: 128px; }
.island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.island.is-live .island-dot { opacity: 1; }
.island-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.home-bar {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 7px;
  width: 108px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.86);
  pointer-events: none;
}
.device-screen[data-scene="dark"] .home-bar { opacity: 0.25; }
.glare {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 16%, transparent 30%);
}

/* Novel layer */
.vn-ui {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 26px;
}
.vn-ui.is-enter .rise { animation: rise 0.45s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.vn-ui[data-layout="cover"] {
  top: 36%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.86) 56%);
}
.vn-ui[data-layout="talk"],
.vn-ui[data-layout="end"] {
  padding-top: 80px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45) 18%, rgba(8, 6, 5, 0.95) 42%);
}
.vn-loc, .vn-you, .vn-name, .vn-line, .vn-aside, .vn-kicker, .vn-title, .vn-deck {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}
.vn-ui[data-layout="end"] { background: none; }
.vn-ui[data-layout="notes"] {
  padding-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.82));
}
.vn-ui[data-layout="thread"] {
  padding: 26px 12px 24px;
  background: linear-gradient(180deg, transparent, #000 22px);
}
.vn-ui.is-waiting .choices,
.vn-ui.is-waiting .vn-end {
  opacity: 0;
  visibility: hidden;
}
.choices, .vn-end { transition: opacity 0.35s ease; }

.vn-mark { color: var(--brass); }
.vn-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.vn-kicker .vn-mark { width: 14px; height: 14px; margin: 0; }
.vn-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: 48px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.vn-deck {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.38;
  color: rgba(244, 239, 230, 0.84);
}
.vn-loc {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
}
.vn-you {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: rgba(244, 239, 230, 0.66);
}
.vn-you span {
  margin-right: 7px;
  font-family: var(--system);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}
.vn-name {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.vn-line {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.vn-ui[data-layout="end"] .vn-line { font-size: 17px; margin-top: 6px; }
.vn-aside {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.42;
  color: rgba(244, 239, 230, 0.76);
}
.vn-end {
  margin: 14px 0 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(215, 180, 131, 0.25);
}
.vn-ui[data-layout="thread"] .vn-end { margin-top: 0; }
.vn-foot {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.42;
  color: rgba(244, 239, 230, 0.72);
}
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choice {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 32px 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(244, 239, 230, 0.15);
  background: rgba(244, 239, 230, 0.07);
  color: var(--paper);
  text-align: left;
  text-decoration: none;
  font-family: var(--system);
  font-size: 13.5px;
  line-height: 1.35;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.choice::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 18px;
  color: rgba(244, 239, 230, 0.4);
}
.choice:hover { background: rgba(244, 239, 230, 0.13); border-color: rgba(244, 239, 230, 0.28); }
.choice:active { transform: scale(0.985); }
.choice.solid {
  padding-right: 13px;
  background: var(--paper);
  color: #1a100e;
  text-align: center;
  border-color: transparent;
  font-weight: 600;
}
.choice.solid::after, .choice.quiet::after { content: none; }
.choice.quiet {
  min-height: 32px;
  padding: 6px;
  background: none;
  border-color: transparent;
  color: var(--brass);
  text-align: center;
}
.vn-end + .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.vn-end + .choices .choice:not(.quiet) { padding-inline: 10px; text-align: center; }
.vn-end + .choices .choice::after { content: none; }
.vn-end + .choices .quiet { grid-column: 1 / -1; }
.composer {
  display: flex;
  align-items: center;
  margin-top: 10px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.32);
}

.notes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 13px 11px 11px;
  border-radius: 20px;
  background: rgba(40, 32, 34, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
}
.note-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(180deg, #67e46a, #27c25a);
  color: #fff;
}
.note-icon svg { width: 22px; height: 22px; }
.note header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.note strong { font-size: 13.5px; font-weight: 600; }
.note time { font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.note p[lang="it"] { margin-top: 1px; font-size: 13.5px; line-height: 1.33; }
.note .gloss { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }

@container glass (max-height: 640px) {
  .lock-top { top: 44px; }
  .lock-clock { font-size: 64px; }
  .lock-widget { display: none; }
}
@container glass (max-height: 560px) {
  .lock-date, .lock-pad { display: none; }
  .lock-clock { font-size: 52px; }
}

/* Screenshots: full-size phones scaled into fixed slots. */
.shot-slot {
  --still: 0.56;
  width: calc(331px * var(--still));
  height: calc(700px * var(--still));
}
.device.device-still {
  --shell-h: 700px;
  width: 331px;
  transform: scale(var(--still));
  transform-origin: 0 0;
  box-shadow:
    0 0 0 1px rgba(212, 180, 140, 0.22),
    0 50px 90px -30px rgba(0, 0, 0, 0.95);
}

/* Gate */
.gate {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(600px 400px at 50% 40%, rgba(157, 59, 58, 0.18), transparent 70%),
    #0c0a09;
}
.gate-card { width: min(440px, 100%); text-align: center; }
.gate-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(60px, 10vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.gate-copy { margin: 16px auto 24px; max-width: 36ch; color: var(--muted); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gate .ring { width: 28px; height: 28px; margin: 0 auto 18px; }

@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { display: contents; }
  .hero-text { order: 1; }
  .hero-phone { order: 2; margin-top: 8px; }
  .hero-actions { order: 3; margin-top: 8px; }
  .title { font-size: clamp(68px, 18vw, 108px); }
  .vow-top, .hand-grid, .questions-grid, .list-grid, .section-head, .paths { grid-template-columns: 1fr; }
  .vow-top, .section-head { gap: 20px; }
  .specimen { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { border-left: 0; padding-left: 0; }
  .facts li:nth-child(odd) { border-right: 1px solid var(--line); }
  .facts li:nth-child(even) { padding-left: 24px; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .device { --shell-h: clamp(560px, 76dvh, 680px); }
  .screens {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 24px 20px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .shot { flex: none; scroll-snap-align: center; }
  .shot:nth-child(1), .shot:nth-child(3) { transform: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 24px 20px;
    background: #0c0a09;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 14px; }
  .nav-links a::after { content: none; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .nav { padding-inline: 16px; }
  .section { padding: 72px 0; }
  .cast { grid-template-columns: 1fr; gap: 28px; }
  .person { grid-template-columns: 48px 1fr; gap: 14px; }
  .mono-lg { width: 48px; height: 48px; font-size: 21px; }
  .path { padding: 26px 22px 24px; }
  .doors { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .list-card, .specimen { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .screens { padding-inline: 16px; }
  .shot-slot { --still: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
