/* 大艺术家 landing page
   Spacing, radius and type values follow a fixed scale; see tokens below. */

:root {
  /* Palette: Van Gogh persona from DailyVanGogh/Art/ArtistPersona.swift */
  --paper: #F8F5EB;
  --card: #FFFDF7;
  --sunk: #EFEADB;
  --ink: #203640;
  --ink-hover: #2D4955;
  --muted: #56636B;
  --gold: #D9A94A;
  --gold-ink: #8A6216;
  --line: rgba(32, 54, 64, 0.12);
  --line-strong: rgba(32, 54, 64, 0.24);

  /* Spacing scale */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius scale */
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; }
p, li, dd { text-wrap: pretty; }
::selection { background: rgba(217, 169, 74, 0.35); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-lg);
}

.skip {
  position: absolute;
  left: var(--s-200);
  top: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-300);
}

.eyebrow {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  margin-bottom: var(--s-200);
}

.section { padding: var(--s-900) 0; }

.section-head { max-width: 680px; margin-bottom: var(--s-600); }

.section-title {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
  max-width: 680px;
  margin-top: var(--s-300);
}
.lead.small { font-size: 16px; line-height: 24px; margin-top: var(--s-200); }

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease);
}
.btn i { font-size: 20px; }
.btn .icon-apple { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; margin-top: -2px; }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: var(--s-100) var(--s-300); }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--card); border-color: var(--ink); }

/* Navigation */
.nav-wrap {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--s-200);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(248, 245, 235, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: 0 8px 32px rgba(32, 54, 64, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: var(--r-lg); }
.nav-links { display: flex; gap: var(--s-50); }
.nav-links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(32, 54, 64, 0.06); }
.nav-links a[aria-current="true"] { color: var(--ink); background: rgba(32, 54, 64, 0.08); font-weight: 600; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.lang-switch:hover { color: var(--ink); background: rgba(32, 54, 64, 0.06); }
.lang-switch i { font-size: 16px; }
.mobile-menu .menu-lang { display: none; }
@media (max-width: 720px) {
  /* No room in the bar on phones; the menu carries the switch instead */
  .nav .lang-switch { display: none; }
  .mobile-menu .menu-lang { display: list-item; }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle:hover { background: rgba(32, 54, 64, 0.06); }
.menu-toggle .bar {
  position: absolute;
  left: 12px;
  top: 19px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: currentColor;
  transition: transform 500ms var(--ease);
}
.menu-toggle .bar:first-child { transform: translateY(-4px); }
.menu-toggle .bar:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .bar:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: var(--s-900) var(--s-300) var(--s-600);
  background: rgba(248, 245, 235, 0.94);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--s-75); }
.mobile-menu li {
  opacity: 0;
  transform: translateY(var(--s-300));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu li a:not(.btn) {
  display: block;
  padding: var(--s-75) 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-menu li a[aria-current="true"] { color: var(--gold-ink); }
.mobile-menu li .btn { margin-top: var(--s-300); width: 100%; padding: var(--s-100) var(--s-300); }

/* Hero */
.hero { padding: var(--s-900) 0 var(--s-700); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-700);
  align-items: center;
  margin-top: var(--s-600);
}
.hero-title {
  max-width: 680px;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: var(--s-50);
}
.hero-sub {
  max-width: 680px;
  margin-top: var(--s-300);
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}
.hero-actions { margin-top: var(--s-500); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-100); }
.hero-note { font-size: 14px; line-height: 20px; color: var(--muted); }

.stats {
  display: flex;
  gap: var(--s-500);
  margin-top: var(--s-600);
  padding-top: var(--s-300);
}
.stats div { display: flex; flex-direction: column-reverse; gap: var(--s-25); }
.stats dt { font-size: 14px; line-height: 20px; color: var(--muted); }
.stats dd { font-size: 24px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-visual { position: relative; height: 640px; }
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 272px;
  padding: var(--s-75);
  background: #16252C;
  border-radius: var(--r-3xl);
  box-shadow: 0 32px 64px rgba(32, 54, 64, 0.22), 0 8px 16px rgba(32, 54, 64, 0.12);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.phone img { border-radius: var(--r-2xl); }

/* Painting wall: two columns drifting in opposite directions behind the phone.
   Each track holds its list twice; shifting by half (plus half a gap) loops seamlessly. */
.wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.wall-up { grid-column: 1; }
.wall-down { grid-column: 3; }
.wall-track {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  will-change: transform;
  animation: wall-up 64s linear infinite;
}
.wall-down .wall-track { animation-name: wall-down; animation-duration: 72s; }
.hero-visual:hover .wall-track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--s-75))); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - var(--s-75))); } to { transform: translateY(0); } }
.wall-card {
  padding: var(--s-75);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.wall-card img { width: 100%; border-radius: var(--r-lg); }
.wall-card span {
  display: block;
  padding: var(--s-75) var(--s-50) var(--s-25);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wall-down .wall-card span { text-align: right; }
.today-chip {
  position: absolute;
  right: var(--s-300);
  top: var(--s-500);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-200);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: 0 8px 24px rgba(32, 54, 64, 0.12);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.today-chip i { color: var(--gold); font-size: 20px; }

/* Museum strip */
.museums { padding: var(--s-500) 0; background: var(--sunk); }
.museums-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); margin-bottom: var(--s-200); }
.sr-sprite { position: absolute; overflow: hidden; }
.museum-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.museum-track { display: flex; width: max-content; animation: museum-scroll 56s linear infinite; }
.museum-marquee:hover .museum-track { animation-play-state: paused; }
@keyframes museum-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.museum-list { display: flex; flex: none; gap: var(--s-600); padding-right: var(--s-600); }
.museum-list li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  white-space: nowrap;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: rgba(32, 54, 64, 0.72);
}
.museum-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--card);
  color: var(--ink);
}
.museum-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: center; }
.split-reverse > :first-child { order: 1; }
.split-reverse > :last-child { order: 2; }

/* Line sketches in the museum icon style: ink strokes, gold for the one thing each drawing points at */
.sketch {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sketch .faint { stroke-opacity: 0.35; }
.sketch .accent { stroke: var(--gold); }
.sketch .dot { fill: var(--gold); stroke: none; }
.sketch .shade { fill: currentColor; fill-opacity: 0.14; stroke: none; }

/* Three promises, quiet footnotes under the reading: small sketch, small type, no cards */
.promises { margin-top: var(--s-400); padding-top: var(--s-300); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-200); }
.promises li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-wrap: pretty;
}
.promises b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); opacity: 0.8; }
.promise-art { width: 48px; flex: none; height: auto; aspect-ratio: 3 / 2; color: var(--muted); }

/* Why: a short head, then the reading takes the stage. Six notes flank the painting,
   each numbered to a pin on the canvas and tagged with what it looks at */
.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: end; margin-bottom: var(--s-600); }
.why-head .lead { margin-top: 0; text-wrap: pretty; }
.reading {
  padding: var(--s-400);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  box-shadow: 0 24px 48px rgba(32, 54, 64, 0.06);
}
.reading-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-50) var(--s-200); margin-bottom: var(--s-400); }
.reading-kicker { flex-basis: 100%; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-ink); }
.reading h3 { font-size: 24px; line-height: 32px; }
.reading-meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.reading-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-400); align-items: center; }
.reading-art { position: relative; margin: 0; }
.reading-art img { width: 100%; height: auto; border-radius: var(--r-xl); }
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(255, 253, 247, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease), background-color 300ms var(--ease);
}
.pin.is-active { background: var(--gold); transform: translate(-50%, -50%) scale(1.2); }
.notes { display: flex; flex-direction: column; gap: var(--s-75); }
.note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-100);
  padding: var(--s-100);
  border-radius: var(--r-xl);
  transition: background-color 300ms var(--ease);
}
.note.is-active { background: var(--sunk); }
.note-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.note.is-active .note-num { background: var(--gold); border-color: var(--gold); }
.note h4 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-50) var(--s-75); font-size: 16px; line-height: 24px; }
.note-lens { display: inline-flex; align-items: center; gap: var(--s-50); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.note-lens svg { width: 16px; height: 16px; stroke-width: 2; }
.note p { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }
.reading-foot { margin-top: var(--s-400); font-size: 12px; line-height: 16px; color: var(--muted); }

/* Feature groups: the painting first, then its story */
.feature-group + .feature-group { margin-top: var(--s-300); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-400);
  padding: var(--s-400);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  overflow: hidden;
}
.card-icon { font-size: 32px; color: var(--gold); margin-bottom: var(--s-200); display: block; }
.card h3 { font-size: 20px; line-height: 28px; }
.card p { margin-top: var(--s-75); color: var(--muted); }

/* Day deck: five days fanned like a hand of cards. --i is the offset from today (-2..2), --d its distance;
   cards spread with the offset, outer ones tilt more and sit lower, and today stays on top */
.day-deck {
  --card-w: 168px;
  --step: 72px;
  --spread: 0px;
  display: grid;
  justify-items: center;
  margin-top: auto;
  padding: var(--s-200) 0 var(--s-300);
}
.day-card {
  grid-area: 1 / 1;
  width: var(--card-w);
  padding: var(--s-75);
  background: #FFFFFF;
  border-radius: var(--r-3xl);
  box-shadow: 0 12px 28px rgba(32, 54, 64, 0.14);
  transform: translate(calc(var(--i) * (var(--step) + var(--spread))), calc(var(--d) * var(--d) * 5px)) rotate(calc(var(--i) * 7deg));
  transition: transform 500ms var(--ease);
}
.day-card:nth-child(1) { --i: -2; --d: 2; z-index: 1; }
.day-card:nth-child(2) { --i: -1; --d: 1; z-index: 2; }
.day-card:nth-child(3) { --i: 0; --d: 0; z-index: 3; }
.day-card:nth-child(4) { --i: 1; --d: 1; z-index: 2; }
.day-card:nth-child(5) { --i: 2; --d: 2; z-index: 1; }
.card-widget:hover .day-deck { --spread: 8px; }
.card-widget:hover .day-card.is-today { transform: translateY(-6px); }
.day-card img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: var(--r-2xl); }
.day-date, .day-title { display: block; padding-inline: var(--s-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-date { padding-top: var(--s-75); font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day-title { padding-bottom: var(--s-25); font-size: 14px; line-height: 20px; font-weight: 600; }
.is-today .day-date { color: var(--gold-ink); font-weight: 600; }
/* Side cards only show their exposed edge: the date sits on that side and the title stays out of view */
.day-card:not(.is-today) img { filter: saturate(0.7); }
.day-card:not(.is-today) .day-title { color: transparent; }
.day-card:not(.is-today) .day-date { padding-inline: 0; }
.day-card:nth-child(n+4) .day-date { text-align: right; }

/* Story card: a short head with the numbers beside it, then the four sections laid out wide,
   each with its own crop of the painting and what that section actually says */
.card-wide .card-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-600); }
.card-wide .toc-mock { margin-top: 0; }
.story-facts { display: flex; gap: var(--s-400); flex: none; }
.story-facts li { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; color: var(--muted); }
.story-facts b { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.toc-mock {
  margin-top: auto;
  padding: var(--s-300);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease);
}
.card-reading:hover .toc-mock { transform: translateY(-4px); }
.toc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 20px; line-height: 28px; font-weight: 600; }
.toc-en { font-size: 12px; line-height: 16px; letter-spacing: 0.16em; color: var(--muted); }
.toc-title { margin-top: var(--s-50); font-size: 14px; line-height: 20px; color: var(--muted); }
.toc-list { margin-top: var(--s-300); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-200); }
.toc-list li {
  display: flex;
  flex-direction: column;
  padding: var(--s-75) var(--s-75) var(--s-200);
  background: var(--card);
  border-radius: var(--r-xl);
}
.toc-list h4, .toc-list p { padding-inline: var(--s-75); }
.toc-list h4 { margin-top: var(--s-200); font-size: 16px; line-height: 24px; font-weight: 600; text-wrap: balance; }
.toc-list p { margin-top: var(--s-75); font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }
.toc-list span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--sunk);
  color: var(--gold-ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}
/* Each section gets a crop of the real painting: --z scales it, --x/--y place the detail */
.toc-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: url("assets/art/starry_night_large.jpg") var(--x) var(--y) / var(--z) auto no-repeat;
}
.toc-thumb span { position: absolute; left: var(--s-75); bottom: var(--s-75); box-shadow: 0 0 0 2px var(--card); font-style: normal; }
.toc-list li:nth-child(1) .toc-thumb { --z: 240%; --x: 62%; --y: 92%; }  /* the village and steeple, as seen */
.toc-list li:nth-child(2) .toc-thumb { --z: 220%; --x: 50%; --y: 30%; }  /* the swirling sky, as imagined */
.toc-list li:nth-child(3) .toc-thumb { --z: 260%; --x: 16%; --y: 50%; }  /* the cypress */
.toc-list li:nth-child(4) .toc-thumb { --z: 300%; --x: 98%; --y: 6%; }  /* the moon */
.toc-foot { display: flex; align-items: center; gap: var(--s-75); margin-top: var(--s-300); font-size: 14px; line-height: 20px; color: var(--muted); }
.toc-foot i { font-size: 20px; color: var(--gold); }

/* Art Map: land is a dot grid, each collection a gold dot sized by its painting count.
   Labels sit on a zero-size anchor at the museum's position; --x/--y come from its coordinates. */
.art-map { position: relative; margin-top: auto; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-land { stroke: rgba(32, 54, 64, 0.2); stroke-width: 3.4; stroke-linecap: round; }
.map-pins circle { fill: var(--gold); fill-opacity: 0.8; }
.map-labels li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.map-labels li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold-ink);
  border-radius: var(--r-full);
}
.map-labels span {
  position: absolute;
  display: flex;
  gap: var(--s-50);
  padding: var(--s-25) var(--s-75);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.map-labels b { font-weight: 600; color: var(--ink); }
.map-labels em { font-style: normal; }
.map-labels .is-up span { transform: translate(-50%, calc(-100% - 10px)); }
.map-labels .is-down span { transform: translate(-50%, 14px); }
.map-labels .is-left span { transform: translate(calc(-100% - 10px), -50%); }
.map-labels .is-right span { transform: translate(10px, -50%); }
/* Phones: the map is too narrow for counts, so labels keep only the city; the figure's aria-label has both */
@media (max-width: 480px) {
  .map-labels em { display: none; }
}

/* Devices: iPad and iPhone Duo mockups. Each screen is a container, so its contents scale with the
   device like a screenshot would; type inside uses container units rather than the page type scale.
   --u is one screen unit: the Duo's smaller canvas uses a larger unit, the way a phone renders text larger. */
.devices { overflow: hidden; }
.device-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--s-900) var(--s-700) 0;
}
.ipad {
  padding: var(--s-100);
  background: #16252C;
  border-radius: var(--r-3xl);
  box-shadow: 0 32px 64px rgba(32, 54, 64, 0.22), 0 8px 16px rgba(32, 54, 64, 0.12);
}
.ipad-screen, .duo-screen {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 46% 1fr;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
}
.ipad-screen { --u: 1cqw; aspect-ratio: 4 / 3; border-radius: var(--r-xl); }
.pane-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(1.6 * var(--u));
  padding: 0 calc(3.2 * var(--u)) calc(6 * var(--u)) calc(4 * var(--u));
}
.pane-art img { width: 100%; border-radius: calc(0.4 * var(--u)); box-shadow: 0 calc(1.6 * var(--u)) calc(3.2 * var(--u)) rgba(32, 54, 64, 0.18); }
.pane-hint { display: flex; align-items: center; gap: calc(0.6 * var(--u)); font-size: calc(1.3 * var(--u)); line-height: 1.4; color: var(--muted); }
.pane-read {
  position: relative;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 80%, transparent 96%);
}
.pane-scroll { padding: calc(6 * var(--u)) calc(5 * var(--u)) calc(12 * var(--u)) calc(2.4 * var(--u)); animation: pane-read 26s var(--ease) infinite alternate; }
@keyframes pane-read {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(-38%); }
}
.m-kicker { font-size: calc(1.2 * var(--u)); line-height: 1.4; letter-spacing: 0.1em; color: var(--gold-ink); font-weight: 600; }
.m-title { margin-top: calc(0.6 * var(--u)); font-size: calc(3.6 * var(--u)); line-height: 1.2; font-weight: 500; }
.m-sub { font-size: calc(1.4 * var(--u)); line-height: 1.4; color: var(--muted); }
.m-meta { display: flex; align-items: center; gap: calc(0.6 * var(--u)); margin-top: calc(0.8 * var(--u)); font-size: calc(1.5 * var(--u)); line-height: 1.4; }
.m-museum {
  display: flex;
  align-items: center;
  gap: calc(1.4 * var(--u));
  margin-top: calc(2.4 * var(--u));
  padding: calc(1.6 * var(--u)) calc(2 * var(--u));
  background: var(--card);
  border-radius: calc(1.6 * var(--u));
  font-size: calc(2 * var(--u));
}
.m-museum div { flex: 1; display: flex; flex-direction: column; gap: calc(0.3 * var(--u)); }
.m-museum b { font-size: calc(1.4 * var(--u)); line-height: 1.4; font-weight: 600; }
.m-museum span { font-size: calc(1.1 * var(--u)); line-height: 1.4; color: var(--muted); }
.m-story { display: flex; justify-content: space-between; align-items: baseline; margin-top: calc(3.2 * var(--u)); font-size: calc(2.3 * var(--u)); line-height: 1.3; font-weight: 500; }
.m-en { font-size: calc(1.1 * var(--u)); letter-spacing: 0.16em; color: var(--muted); }
.m-h { margin-top: calc(2.4 * var(--u)); font-size: calc(1.7 * var(--u)); line-height: 1.4; font-weight: 600; color: #3E6B57; }
.m-p { margin-top: calc(1.2 * var(--u)); font-size: calc(1.5 * var(--u)); line-height: 1.75; }
.m-tabs {
  position: absolute;
  left: 50%;
  bottom: calc(2 * var(--u));
  display: flex;
  gap: calc(0.4 * var(--u));
  padding: calc(0.6 * var(--u));
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: 0 calc(1.2 * var(--u)) calc(2.4 * var(--u)) rgba(32, 54, 64, 0.12);
  transform: translateX(-50%);
}
.m-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.2 * var(--u));
  padding: calc(0.6 * var(--u)) calc(2 * var(--u));
  border-radius: var(--r-full);
  font-size: calc(1.1 * var(--u));
  line-height: 1.3;
  color: var(--muted);
}
.m-tabs i { font-size: calc(2.2 * var(--u)); color: var(--ink); }
.m-tabs .on { background: var(--sunk); color: var(--ink); }

/* iPhone Duo, unfolded and turned sideways, on the Today page: painting card on the left,
   the day's introduction on the right, tab bar along the right edge. Mondrian persona colors.
   Positions follow a 1820 × 1280 simulator screenshot, so 1cqw is about 18px of it. */
.duo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  padding: var(--s-75);
  background: #16252C;
  border-radius: var(--r-3xl);
  box-shadow: 0 32px 64px rgba(32, 54, 64, 0.26), 0 8px 16px rgba(32, 54, 64, 0.14);
}
.duo-screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1820 / 1280;
  overflow: hidden;
  background: #FAF9F5;
  color: #242424;
  border-radius: var(--r-2xl);
}
.t-caps { font-size: 1cqw; line-height: 1.4; letter-spacing: 0.3em; font-weight: 500; }
.t-card {
  position: absolute;
  left: 4.3cqw;
  top: 2.5cqw;
  width: 37.6cqw;
  height: 61.6cqw;
  display: flex;
  flex-direction: column;
  background: #FCFBF8;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 3.3cqw;
  box-shadow: 0 1.2cqw 3cqw rgba(36, 36, 36, 0.05);
}
.t-card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.8cqw 1.9cqw; font-size: 1cqw; line-height: 1.4; color: #6B6862; }
.t-card-head .t-caps { color: #242424; }
.t-art { flex: 1; display: flex; align-items: center; padding: 0 1.2cqw; }
.t-art img { width: 100%; box-shadow: 0 1.4cqw 2.4cqw rgba(36, 36, 36, 0.14); }
.t-card-foot { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2.1cqw 1.8cqw; }
.t-card-foot div { display: flex; flex-direction: column; gap: 0.4cqw; }
.t-card-foot b { font-size: 2.2cqw; line-height: 1.2; font-weight: 600; }
.t-card-foot span { font-size: 1.3cqw; line-height: 1.4; color: #6B6862; }
.t-card-foot i { font-size: 1.9cqw; }
.t-museum {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  margin: 0 2.1cqw;
  padding: 1.4cqw 0 1.8cqw;
  border-top: 1px solid rgba(36, 36, 36, 0.12);
  font-size: 1.1cqw;
  line-height: 1.4;
  color: #6B6862;
}
.t-museum i { font-size: 1.4cqw; }
.t-col {
  position: absolute;
  left: 46.2cqw;
  top: 0;
  bottom: 0;
  width: 40.4cqw;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.t-scroll { padding: 5.6cqw 0 14cqw; animation: today-read 22s var(--ease) infinite alternate; }
@keyframes today-read {
  0%, 14% { transform: translateY(0); }
  86%, 100% { transform: translateY(-16%); }
}
.t-head { display: flex; justify-content: space-between; align-items: flex-start; }
.t-head .t-caps { color: #6B6862; }
.t-brand { margin-top: 0.8cqw; font-size: 3.1cqw; line-height: 1.2; font-weight: 600; }
.t-slogan { margin-top: 1.2cqw; font-size: 1.3cqw; line-height: 1.4; color: #6B6862; }
.t-persona { display: flex; flex-direction: column; align-items: flex-end; gap: 1.2cqw; }
.t-persona img { width: 6.2cqw; height: 6.2cqw; border-radius: var(--r-full); border: 0.2cqw solid rgba(189, 53, 53, 0.4); }
.t-persona span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.2cqw; line-height: 1.4; color: #6B6862; }
.t-body { margin-top: 2.6cqw; font-size: 1.65cqw; line-height: 1.73; }
.t-link { display: flex; align-items: center; gap: 1cqw; margin-top: 3.4cqw; font-size: 1.55cqw; line-height: 1.4; }
.t-link i { font-size: 1.8cqw; }
.t-quote { display: flex; align-items: baseline; gap: 1.4cqw; margin-top: 3.6cqw; font-size: 1.65cqw; line-height: 1.4; font-weight: 500; }
.t-quote span { font-size: 2.4cqw; line-height: 1; color: #BD3535; }
.t-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6cqw;
  margin-top: 3.4cqw;
  padding: 0 2cqw;
  background: #262626;
  border-radius: 2.2cqw;
  font-size: 1.55cqw;
  line-height: 1.4;
  color: #FAF9F5;
}
.t-btn i { font-size: 2cqw; }
.t-foot { display: flex; justify-content: space-between; margin-top: 2.6cqw; font-size: 1.2cqw; line-height: 1.4; color: #6B6862; }
.t-foot span { display: flex; align-items: center; gap: 0.8cqw; }
.t-status { position: absolute; right: 2.8cqw; top: 3cqw; display: flex; flex-direction: column; align-items: center; gap: 0.4cqw; }
.t-status b { font-size: 1.55cqw; line-height: 1.2; font-weight: 600; }
.t-status i { font-size: 3cqw; }
.t-tabs {
  position: absolute;
  right: 2.6cqw;
  bottom: 2.5cqw;
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  padding: 0.4cqw;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 36, 36, 0.1);
  border-radius: var(--r-full);
  box-shadow: 0 1cqw 2.4cqw rgba(36, 36, 36, 0.08);
}
.t-tabs span { display: grid; place-items: center; width: 4.2cqw; height: 4.6cqw; border-radius: var(--r-full); }
.t-tabs i { font-size: 2.2cqw; }
.t-tabs .on { background: #ECEBE7; }

.device-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: 0 8px 16px rgba(32, 54, 64, 0.08);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.device-tag i { font-size: 20px; color: var(--gold); }
.device-tag-ipad { left: var(--s-300); bottom: var(--s-200); }
.device-tag-duo { right: calc(33% + var(--s-200)); bottom: var(--s-200); }

.device-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-300);
  margin-top: var(--s-700);
}
.device-points i { display: block; margin-bottom: var(--s-200); font-size: 32px; color: var(--gold); }
.device-points h3 { font-size: 18px; line-height: 28px; }
.device-points p { margin-top: var(--s-75); color: var(--muted); }

/* Puzzle */
.puzzle-section { background: var(--sunk); }
.puzzle-status { margin: var(--s-300) 0 var(--s-200); font-weight: 600; min-height: 24px; }
.puzzle-frame {
  padding: var(--s-200);
  background: var(--card);
  border-radius: var(--r-3xl);
  box-shadow: 0 24px 48px rgba(32, 54, 64, 0.1);
}
.puzzle {
  position: relative;
  /* Portrait paintings narrow the board instead of growing taller than ~560px */
  width: min(100%, calc(560px * var(--puzzle-ratio, 1.263)));
  margin-inline: auto;
  aspect-ratio: var(--puzzle-ratio, 600 / 475);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #16252C;
}
.tile {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% / 3);
  height: calc(100% / 3);
  padding: 0;
  border: 0;
  background-image: var(--puzzle-img, url("assets/art/starry_night.jpg"));
  background-size: 300% 300%;
  box-shadow: inset 0 0 0 1px rgba(248, 245, 235, 0.55);
  cursor: default;
  transition: transform 500ms var(--ease), opacity 500ms var(--ease), box-shadow 500ms var(--ease);
}
.tile.movable { cursor: pointer; }
.tile.movable:hover { opacity: 0.88; }
.tile:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 0; z-index: 1; }
.tile.hole { opacity: 0; pointer-events: none; }
.puzzle.solved .tile { box-shadow: none; cursor: default; }
.puzzle.solved .tile.hole { opacity: 1; }
.puzzle-caption { margin-top: var(--s-100); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }

/* Tagline reveal */
.tagline { padding: var(--s-900) 0; }
.tagline-text {
  max-width: 680px;
  font-size: 36px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tagline-text .w { opacity: 0.3; transition: opacity 500ms var(--ease); }
.tagline-text .w.on { opacity: 1; }

/* Gallery */
.gallery-section .section-head { margin-bottom: var(--s-500); }
.gallery-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--s-300), calc((100vw - 1200px) / 2 + var(--s-300)));
  padding: 0 0 var(--s-300);
  scrollbar-width: thin;
}
.gallery-scroll:focus-visible { outline-offset: -2px; }
/* Auto drift moves scrollLeft a fraction of a pixel per frame, which snapping would undo */
.gallery-scroll.is-drifting { scroll-snap-type: none; scrollbar-width: none; }
.gallery-scroll.is-drifting::-webkit-scrollbar { display: none; }
.gallery {
  display: flex;
  gap: var(--s-200);
  width: max-content;
  padding: 0 max(var(--s-300), calc((100vw - 1200px) / 2 + var(--s-300)));
}
.art-card {
  width: 264px;
  scroll-snap-align: start;
  padding: var(--s-75);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease);
}
.art-card:hover { transform: translateY(-4px); }
.art-frame {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sunk);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.art-frame img { max-height: 100%; width: auto; }
.art-meta { padding: var(--s-100) var(--s-75) var(--s-75); }
.art-meta h3 { font-size: 16px; line-height: 24px; }
.art-meta p { font-size: 14px; line-height: 20px; color: var(--muted); }
/* A card with its own artwork page: the title link covers the whole card */
.art-card:has(.art-link) { position: relative; }
.art-link { display: inline-flex; align-items: center; gap: var(--s-50); text-decoration: none; }
.art-link i { font-size: 16px; color: var(--gold-ink); }
.art-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2xl); }
.reading-foot a { margin-left: var(--s-75); color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Personas */
.personas { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-100); }
.persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-200) var(--s-75);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.persona:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.persona:active { transform: scale(0.98); }
.persona[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.persona img { width: 64px; height: 64px; border-radius: var(--r-full); }
.persona-name { font-size: 16px; line-height: 24px; font-weight: 600; }
.persona-theme { font-size: 12px; line-height: 16px; color: var(--muted); }

.persona-detail {
  margin-top: var(--s-300);
  padding: var(--s-400);
  border-radius: var(--r-3xl);
  background: var(--p-paper, var(--card));
  color: var(--p-ink, var(--ink));
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-300) var(--s-500);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.persona-detail .inner { transition: opacity 300ms var(--ease); }
.persona-detail.swap .inner { opacity: 0; }
.persona-detail .en { font-size: 12px; line-height: 16px; letter-spacing: 0.16em; font-weight: 600; opacity: 0.7; }
.persona-detail .tag { font-size: 30px; line-height: 36px; font-weight: 600; margin-top: var(--s-75); }
.persona-detail .desc { margin-top: var(--s-200); max-width: 680px; line-height: 28px; }
.persona-detail .checkin {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  margin-top: var(--s-300);
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: var(--p-gold, var(--gold));
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.swatches { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-100); }
.swatches .dots { display: flex; }
.swatches .dots span { width: 40px; height: 40px; border-radius: var(--r-full); border: 2px solid var(--p-paper, var(--card)); }
.swatches .dots span + span { margin-left: calc(var(--s-100) * -1); }
.swatches p { font-size: 14px; line-height: 20px; font-weight: 600; }

/* Pricing */
.pricing { background: var(--sunk); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-300); max-width: 880px; margin-inline: auto; }
.plan {
  position: relative;
  padding: var(--s-400);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
}
.plan-label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan h3 { margin-top: var(--s-100); font-size: 28px; line-height: 36px; }
.plan-note { margin-top: var(--s-300); font-size: 14px; line-height: 22px; color: var(--muted); }
.plan ul { margin-top: var(--s-300); display: flex; flex-direction: column; gap: var(--s-100); }
.plan li { display: flex; gap: var(--s-100); align-items: flex-start; }
.plan li i { color: var(--gold); font-size: 20px; margin-top: var(--s-25); flex: none; }
.plan-member { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-member .plan-label, .plan-member .plan-note { color: rgba(248, 245, 235, 0.72); }
.plans-notice {
  display: flex;
  gap: var(--s-100);
  align-items: flex-start;
  max-width: 880px;
  margin: var(--s-300) auto 0;
  padding: var(--s-200) var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.plans-notice i { font-size: 20px; margin-top: 1px; flex: none; }
.plan-tag {
  position: absolute;
  top: var(--s-400);
  right: var(--s-400);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s-700); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: var(--s-100); }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  transition: border-color 300ms var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-2xl);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: 20px; color: var(--muted); flex: none; transition: transform 500ms var(--ease); }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item .answer { padding: 0 var(--s-300) var(--s-300); color: var(--muted); line-height: 28px; }
.faq-item .answer a { color: var(--ink); font-weight: 600; }

/* Final CTA */
.final { padding: 0 0 var(--s-900); }
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-200);
  padding: var(--s-800) var(--s-300);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
}
.final-inner .lead { margin-top: 0; }
.final-icon { width: 80px; height: 80px; border-radius: var(--r-2xl); box-shadow: 0 16px 32px rgba(32, 54, 64, 0.16); margin-bottom: var(--s-200); }
.final-inner .btn { margin-top: var(--s-200); }

/* Footer */
.footer { padding: var(--s-500) 0 var(--s-600); background: var(--sunk); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-300); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-300); }
.footer-links a { font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { width: 100%; font-size: 12px; line-height: 16px; color: var(--muted); }

/* Artwork pages (art/<slug>/): static, no main.js */
.nav-simple .lang-switch { display: inline-flex; }
.artwork-head { padding-top: calc(var(--s-900) + var(--s-400)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-75); margin-bottom: var(--s-300); font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-75); color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.artwork-title { font-size: 56px; line-height: 64px; letter-spacing: -0.02em; }
.artwork-byline { margin-top: var(--s-200); font-size: 16px; line-height: 24px; font-weight: 500; color: var(--muted); }
.artwork-figure { margin-top: var(--s-600); }
.artwork-figure img { width: 100%; border-radius: var(--r-2xl); box-shadow: 0 24px 48px rgba(32, 54, 64, 0.12); }
.artwork-figure figcaption { margin-top: var(--s-100); font-size: 14px; line-height: 20px; color: var(--muted); }
.artwork-section { padding-bottom: 0; }
.artwork-reading { margin-top: var(--s-500); }
.artwork-reading .note h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-50) var(--s-75); font-size: 16px; line-height: 24px; }
.artwork-angles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); margin-top: var(--s-500); }
.artwork-angle { padding: var(--s-400); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-3xl); }
.artwork-angle h3 { font-size: 20px; line-height: 28px; }
.artwork-angle p { margin-top: var(--s-100); color: var(--muted); line-height: 28px; }
.artwork-prose > * { max-width: 760px; }
.artwork-toc { display: flex; flex-direction: column; gap: var(--s-50); margin: var(--s-400) 0 var(--s-200); padding: var(--s-200); background: var(--sunk); border-radius: var(--r-2xl); }
.artwork-toc a { display: flex; gap: var(--s-100); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); text-decoration: none; font-weight: 500; }
.artwork-toc a:hover { background: var(--card); }
.artwork-toc span, .artwork-part h3 span { font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.artwork-part { padding-top: var(--s-500); }
.artwork-part h3 { display: flex; gap: var(--s-100); font-size: 24px; line-height: 32px; }
.artwork-part p { margin-top: var(--s-200); font-size: 17px; line-height: 30px; }
.artwork-part .artwork-locked { display: flex; align-items: center; gap: var(--s-75); font-size: 15px; line-height: 24px; color: var(--muted); }
.artwork-ref { color: var(--gold-ink); font-size: 14px; text-decoration: none; }
.artwork-sources { display: flex; flex-direction: column; gap: var(--s-200); margin-top: var(--s-400); counter-reset: source; }
.artwork-sources li { position: relative; padding-left: var(--s-400); counter-increment: source; }
.artwork-sources li::before { content: counter(source); position: absolute; left: 0; font-weight: 600; color: var(--gold-ink); }
.artwork-sources li:target { background: var(--sunk); border-radius: var(--r-lg); }
.artwork-sources a { font-weight: 600; text-underline-offset: 3px; }
.artwork-sources p { margin-top: var(--s-50); font-size: 14px; line-height: 22px; color: var(--muted); }
.artwork-page .final { padding-top: var(--s-900); }
.hero-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav { gap: var(--s-200); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-600); margin-top: var(--s-300); }
  .hero-visual { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .split, .faq-grid { grid-template-columns: 1fr; gap: var(--s-600); }
  .why-head { grid-template-columns: 1fr; gap: 0; margin-bottom: var(--s-400); }
  .why-head .lead { margin-top: var(--s-300); }
  .reading-body { grid-template-columns: 1fr 1fr; gap: var(--s-300) var(--s-200); }
  .reading-art { grid-column: 1 / -1; grid-row: 1; }
  .split-reverse > :first-child { order: 0; }
  .device-points { grid-template-columns: repeat(2, 1fr); gap: var(--s-500) var(--s-300); }
  .personas { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day-deck { --card-w: 120px; --step: 44px; }
  .card-widget:hover .day-deck { --spread: 0px; }
}

@media (max-width: 720px) {
  .container { padding: 0 var(--s-200); }
  .section { padding: var(--s-700) 0; }
  .artwork-section { padding-bottom: 0; }
  .artwork-head { padding-top: calc(var(--s-900) + var(--s-200)); }
  .artwork-title { font-size: 40px; line-height: 48px; }
  .artwork-figure { margin-top: var(--s-400); }
  .artwork-angles { grid-template-columns: 1fr; }
  .artwork-angle { padding: var(--s-300); }
  .artwork-page .final { padding-top: var(--s-700); }
  .nav-simple { gap: var(--s-100); }
  .nav-simple .brand, .nav-simple .btn { white-space: nowrap; }
  .hero { padding-bottom: var(--s-600); }
  .hero-title { font-size: 48px; }
  .br-wide { display: none; }
  .section-title { font-size: 30px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 24px; }
  .stats { gap: var(--s-300); }
  .stats dd { font-size: 20px; line-height: 28px; }
  .hero-visual { height: 480px; }
  .phone { width: 200px; }
  .wall { grid-template-columns: 120px 1fr 120px; }
  .wall-card span { display: none; }
  .today-chip { right: 0; top: var(--s-200); }
  .bento, .plans { grid-template-columns: 1fr; }
  .card-wide .card-copy { flex-direction: column; align-items: flex-start; gap: var(--s-300); }
  .toc-list { grid-template-columns: 1fr; }
  .toc-list li { display: grid; grid-template-columns: 80px 1fr; align-items: center; column-gap: var(--s-50); padding-bottom: var(--s-100); }
  .toc-list h4 { margin-top: 0; }
  .toc-list p { grid-column: 1 / -1; }
  .story-facts { gap: var(--s-300); }
  .device-stage { padding: 0 var(--s-500) var(--s-700) 0; }
  .ipad { padding: var(--s-75); border-radius: var(--r-2xl); }
  .ipad-screen { border-radius: var(--r-lg); }
  .duo { width: 60%; padding: var(--s-50); border-radius: var(--r-2xl); }
  .duo-screen { border-radius: var(--r-xl); }
  .device-tag { font-size: 12px; line-height: 16px; padding: var(--s-50) var(--s-75); }
  .device-tag i { font-size: 16px; }
  .device-tag-ipad { left: 0; bottom: 0; }
  .device-tag-duo { display: none; }
  .device-points { grid-template-columns: 1fr; gap: var(--s-400); margin-top: var(--s-600); }
  .card, .reading, .plan { padding: var(--s-300); }
  .plan-tag { top: var(--s-300); right: var(--s-300); }
  .personas { gap: var(--s-75); }
  .persona { padding: var(--s-100) var(--s-50); }
  .persona img { width: 48px; height: 48px; }
  .persona-name { font-size: 12px; line-height: 16px; white-space: nowrap; }
  .persona-theme { display: none; }
  .persona-detail { grid-template-columns: 1fr; padding: var(--s-300); }
  .swatches { align-items: flex-start; }
  .persona-detail .tag { font-size: 24px; line-height: 32px; }
  .tagline { padding: var(--s-700) 0; }
  .tagline-text { font-size: 30px; line-height: 40px; }
  .museum-list li { font-size: 16px; line-height: 24px; }
  .museum-list { gap: var(--s-400); padding-right: var(--s-400); }
  .museum-icon { width: 40px; height: 40px; }
  .museum-icon svg { width: 28px; height: 28px; }
  .promises { grid-template-columns: 1fr; gap: var(--s-100); }
  .reading-body { grid-template-columns: 1fr; gap: var(--s-75); }
  .reading-art { margin-bottom: var(--s-200); }
  .note { padding: var(--s-75) 0; }
  .pin { width: 24px; height: 24px; }
  .faq-item summary { padding: var(--s-200); font-size: 16px; line-height: 24px; }
  .faq-item .answer { padding: 0 var(--s-200) var(--s-200); }
  .final-inner { padding: var(--s-600) var(--s-200); }
  .art-card { width: 232px; }
  .art-frame { height: 176px; }
}

@media (max-width: 400px) {
  /* Artwork pages repeat the CTA at the bottom, so the bar keeps brand and language only */
  .nav-simple .nav-cta { display: none; }
}

@media (max-width: 340px) {
  .hero-title { font-size: 36px; }
  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; }
  .mobile-menu li { transform: none; }
  .tile { transition: opacity 300ms var(--ease); }
  .wall-track { animation: none; }
  .pane-scroll, .t-scroll { animation: none; }
  .museum-marquee { -webkit-mask-image: none; mask-image: none; }
  .museum-track { width: auto; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-300); animation: none; }
  .museum-list { flex-wrap: wrap; flex: 1; gap: var(--s-200) var(--s-400); padding-right: 0; }
  .day-card { transition: none; }
  .card-widget:hover .day-deck { --spread: 0px; }
  .card-widget:hover .day-card.is-today { transform: none; }
  .card-reading:hover .toc-mock, .art-card:hover, .persona:hover { transform: none; }
}

/* App not yet listed: CTA shows a static "coming soon" state */
.btn-soon { cursor: default; pointer-events: none; }
