/* ════════════════════════════════════════════════════════════════════════
   REALWALK · The Listing Book
   A studio for property storytelling. Editorial brokerage aesthetic —
   Cormorant Garamond display, DM Sans body, JetBrains Mono for data.
   Warm cocoa-ink ground, brass accent, magazine-grade composition.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Ground — warm cocoa-ink, not blue-black. The page should feel printed. */
  --bg:        #0e0b07;
  --bg-2:      #16110a;
  --bg-3:      #1d160e;
  --bg-card:   #16110a;

  /* Foreground — warm cream */
  --text:        #f4ecdb;
  --text-dim:    rgba(244, 236, 219, 0.74);
  --text-faint:  rgba(244, 236, 219, 0.44);
  --text-mute:   rgba(244, 236, 219, 0.20);

  --line:    rgba(244, 236, 219, 0.10);
  --line-2:  rgba(244, 236, 219, 0.18);
  --line-3:  rgba(244, 236, 219, 0.30);

  /* Brass accent — antique gold of the brokerage placard. Used confidently
     but not constantly. */
  --accent:        #c8a24c;
  --accent-soft:   #e2c580;
  --accent-deep:   #9e7a2c;
  --accent-glow:   rgba(200, 162, 76, 0.22);

  --success: #6c9b6f;
  --error:   #c25b4f;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 8px 24px -10px rgba(0, 0, 0, 0.55);
  --shadow:    0 24px 60px -16px rgba(0, 0, 0, 0.70);
  --shadow-lg: 0 60px 140px -30px rgba(0, 0, 0, 0.85);

  /* Type — Cormorant for headlines + body of editorial copy, DM Sans for
     UI / prose, JetBrains Mono for plates and figures. */
  --serif: "Cormorant Garamond", ui-serif, "New York", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max-w:    1240px;
  --max-w-narrow: 760px;
  --pad-page: clamp(20px, 4.5vw, 56px);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--bg); }

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font: 16px/1.6 var(--sans);
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Buttons ──────────────────────────────────────────────────────── */

button, input, textarea, select {
  font: inherit; color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  outline: none;
  letter-spacing: -0.005em;
}
button { cursor: pointer; }

/* Primary CTA — solid cream pill, very confident */
button.primary {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500; font-size: 14.5px;
  letter-spacing: 0.04em;
  transition: transform .2s ease, background .2s ease, box-shadow .3s ease;
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.5);
}
button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6);
}
button.primary:active { transform: translateY(0); }

/* Accent CTA — brass, used for the marquee CTA only */
button.accent, button.ember {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.04em;
  transition: transform .2s ease, background .2s ease, box-shadow .3s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 22px -6px rgba(200, 162, 76, 0.5);
}
button.accent:hover:not(:disabled),
button.ember:hover:not(:disabled) {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 18px 40px -10px rgba(200, 162, 76, 0.55);
}
button.accent:active, button.ember:active { transform: translateY(0); }

/* Outline / ghost — used as the secondary CTA */
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-3);
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500; font-size: 14.5px;
  letter-spacing: 0.04em;
  transition: border-color .2s ease, background .2s ease;
}
button.ghost:hover:not(:disabled) {
  border-color: var(--text);
  background: rgba(244, 236, 219, 0.04);
}

button.subtle {
  background: transparent; border: 1px solid transparent;
  color: var(--text-dim); padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  transition: color .15s ease, background .15s ease;
}
button.subtle:hover { color: var(--text); background: rgba(244, 236, 219, 0.04); }

button:disabled, button[aria-disabled="true"] { opacity: 0.45; cursor: default; }

button.ghost.danger {
  color: var(--ember, #d4624a);
  border-color: rgba(212, 98, 74, 0.5);
}
button.ghost.danger:hover:not(:disabled) {
  border-color: var(--ember, #d4624a);
  background: rgba(212, 98, 74, 0.08);
}
.delete-confirm-input {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
}

/* Inputs (used by app screens) */
input, textarea, select {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 12px 14px;
}
textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }

/* ─── Type utilities ───────────────────────────────────────────────── */

.eyebrow, .label, .plate {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.muted { color: var(--text-faint); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.err { color: var(--error); font-size: 13.5px; }
.ok { color: var(--success); font-size: 13.5px; }

/* Editorial small caps tag */
.smallcaps {
  font-family: var(--sans); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 11px; color: var(--text-faint);
}

/* ─── Shell ─────────────────────────────────────────────────────────── */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* ─── Masthead (topbar) ─────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 11, 7, 0.80);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px var(--pad-page) 16px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.brand-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  margin-left: 4px;
}

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text-dim);
  padding: 9px 14px;
  font-family: var(--sans);
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .15s ease;
  border-radius: 4px;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }
.nav .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
}
.nav .chip .v { color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
  .topbar-inner { padding: 14px var(--pad-page); gap: 12px; }
  .brand { font-size: 22px; }
  .brand-tag { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 8px; font-size: 11.5px; }
}
@media (max-width: 480px) {
  .nav a:not(.active) + a:not(.active) { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   LANDER · The Listing Book
   ════════════════════════════════════════════════════════════════════ */

.lander main { display: block; width: 100%; }

/* Subtle grain over everything to feel printed */
.lander::after {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 25% 0%, rgba(200, 162, 76, 0.05), transparent 50%),
    radial-gradient(circle at 75% 100%, rgba(200, 162, 76, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-page);
  position: relative; z-index: 1;
}
.container--narrow {
  max-width: var(--max-w-narrow); margin: 0 auto;
  padding: 0 var(--pad-page);
}

/* ─── Hero (full-bleed editorial spread) ───────────────────────────── */

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 780px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 60px);
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2400&q=85");
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.05);
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 11, 7, 0.35) 0%, rgba(14, 11, 7, 0.15) 30%, rgba(14, 11, 7, 0.55) 70%, rgba(14, 11, 7, 0.95) 100%),
    linear-gradient(90deg, rgba(14, 11, 7, 0.55) 0%, transparent 60%);
}

.hero-grain {
  position: absolute; inset: 0;
  filter: url(#grain);
  opacity: 0.45;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero-meta .pin { color: var(--accent); }
.hero-meta .pipe { width: 1px; height: 12px; background: var(--line-2); }

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 9.4vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 clamp(20px, 3vw, 32px);
  max-width: 16ch;
  /* Subtle staged reveal */
  animation: hero-rise 1.1s cubic-bezier(.16,.6,.25,1) both;
}
.hero-headline .line { display: block; }
.hero-headline em {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 400;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 0 clamp(28px, 4vw, 40px);
  animation: hero-rise 1.2s .12s cubic-bezier(.16,.6,.25,1) both;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  animation: hero-rise 1.3s .24s cubic-bezier(.16,.6,.25,1) both;
}

.hero-foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
  align-items: end;
}
@media (min-width: 720px) {
  .hero-foot {
    grid-template-columns: 1fr auto;
    gap: 36px;
  }
}
.hero-foot .scroll-hint {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-foot .scroll-hint::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}

/* ─── Section grammar ──────────────────────────────────────────────── */

.section {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0;
  z-index: 1;
}
.section-num {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-num .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: none;
}
.section-num .rule {
  flex: 1; height: 1px; background: var(--line-2);
  max-width: 240px;
}

.section h2.editorial {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  max-width: 18ch;
}
.section h2.editorial em {
  font-style: italic;
  color: var(--accent-soft);
}
.section .lede {
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 clamp(40px, 6vw, 60px);
}

/* ─── Featured Listing (the sample.mp4 as a brokerage marquee) ─────── */

.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 920px) {
  .featured { grid-template-columns: 5fr 4fr; gap: clamp(36px, 5vw, 72px); }
}

.featured-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  border-radius: 2px;
  background: #000;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
@media (min-width: 920px) {
  .featured-frame { max-width: none; }
}
.featured-frame::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(244, 236, 219, 0.12);
  pointer-events: none;
  z-index: 2;
}
.featured-frame::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}
.featured-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.featured-frame .corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--accent);
  z-index: 3;
}
.featured-frame .corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.featured-frame .corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.featured-frame .corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.featured-frame .corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.video-unmute {
  position: absolute; right: 18px; bottom: 18px;
  z-index: 5;
  background: rgba(14, 11, 7, 0.80);
  color: var(--text);
  border: 1px solid rgba(244, 236, 219, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  backdrop-filter: blur(8px);
}
.video-unmute:hover { background: rgba(14, 11, 7, 0.95); transform: translateY(-1px); }

.featured-card {
  display: grid; gap: clamp(18px, 2.4vw, 28px);
  padding-top: clamp(0px, 1vw, 24px);
}
.featured-card .card-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.featured-card .card-meta .sep { color: var(--text-faint); margin: 0 10px; }
.featured-card .address {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--text);
}
.featured-card .address em { font-style: italic; color: var(--accent-soft); }
.featured-card .address-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  margin-top: 6px;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 18px 0;
}
@media (min-width: 480px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
}
.spec-strip .item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 12px;
  border-right: 1px solid var(--line);
}
.spec-strip .item:last-child,
.spec-strip .item:nth-child(2n) { border-right: none; }
@media (min-width: 480px) {
  .spec-strip .item:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec-strip .item:last-child { border-right: none; }
}
.spec-strip .v {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1; color: var(--text);
}
.spec-strip .v em { font-style: italic; color: var(--accent-soft); }
.spec-strip .k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}

.feature-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 40ch;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.featured-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ─── Capabilities (the four jobs the AI does) ────────────────────── */

.capabilities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
@media (min-width: 720px) {
  .capabilities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .capabilities { grid-template-columns: repeat(4, 1fr); }
}

.capability {
  position: relative;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 36px) clamp(36px, 4vw, 56px);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: clamp(280px, 32vw, 360px);
  background: var(--bg);
  isolation: isolate;
  transition: background .4s ease;
}
.capability::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(200, 162, 76, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: -1;
}
.capability:hover::before { opacity: 1; }

.capability.featured {
  background: linear-gradient(160deg, rgba(200, 162, 76, 0.08) 0%, transparent 60%), var(--bg-2);
}
.capability.featured::after {
  content: "Headline feature";
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 9px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.capability .cap-plate {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}
.capability .cap-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.capability .cap-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 4px 0 0;
}
.capability .cap-body {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  margin-top: auto;
  padding-top: 20px;
  max-width: 32ch;
}

/* ─── Manifesto (editorial brand statement) ────────────────────────── */

.manifesto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 10vw, 110px) 0;
}
@media (min-width: 920px) {
  .manifesto { grid-template-columns: minmax(220px, 280px) 1fr; gap: 100px; }
}
.manifesto .manifesto-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex; gap: 14px; align-items: flex-start;
}
.manifesto .manifesto-tag::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--accent);
  margin-top: 8px;
  flex: 0 0 auto;
}
.manifesto-body {
  font-family: var(--serif);
}
.manifesto-body p {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 32ch;
}
.manifesto-body p:last-of-type { margin-bottom: 0; }
.manifesto-body p em { font-style: italic; color: var(--accent-soft); }
.manifesto-body .first p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 4.2em;
  line-height: 0.86;
  float: left;
  margin: 0.06em 0.12em -0.05em 0;
  color: var(--accent);
}
.manifesto-signoff {
  margin-top: 32px;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
}
.manifesto-signoff .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
}

/* ─── Catalogue (the listing-card grid for app screenshots) ────────── */

.catalogue {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3.5vw, 40px);
}
@media (min-width: 720px) {
  .catalogue { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 48px); }
}
@media (min-width: 1100px) {
  .catalogue { grid-template-columns: repeat(3, 1fr); }
}

.listing {
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
  isolation: isolate;
}
.listing-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  isolation: isolate;
}
.listing-photo img,
.listing-photo .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,.6,.25,1);
}
.listing:hover .listing-photo img,
.listing:hover .listing-photo .bg { transform: scale(1.04); }
.listing-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 11, 7, 0.55) 100%);
  pointer-events: none;
}
.listing-photo .badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 11px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(14, 11, 7, 0.78);
  color: var(--text);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.listing-photo .badge.brass {
  border-color: var(--accent);
  color: var(--accent);
}
.listing-photo .device-overlay {
  position: absolute;
  bottom: 0; right: 24px;
  width: 38%;
  max-width: 180px;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(244, 236, 219, 0.18);
  border-bottom: none;
  background: #0a0a0c;
  overflow: hidden;
  box-shadow: 0 -16px 40px -10px rgba(0, 0, 0, 0.7);
  z-index: 2;
}
.listing-photo .device-overlay img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.listing-photo .device-overlay::after {
  display: none;
}

.listing-info { display: grid; gap: 4px; }
.listing-info .listing-meta {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}
.listing-info .listing-meta .pin { color: var(--accent); }
.listing-info .listing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.listing-info .listing-title em { font-style: italic; color: var(--accent-soft); }
.listing-info .listing-foot {
  display: flex; gap: 14px;
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
.listing-info .listing-foot .sep { color: var(--text-mute); }

/* ─── Process (numbered editorial spread) ──────────────────────────── */

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 720px) {
  .process-row {
    grid-template-columns: 80px 1fr 1.2fr;
    gap: clamp(24px, 3vw, 60px);
    align-items: center;
  }
}
.process-row .roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0;
}
.process-row .copy h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.process-row .copy h3 em { font-style: italic; color: var(--accent-soft); }
.process-row .copy p {
  font-family: var(--sans);
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 36ch;
}
.process-row .vis {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2);
}
.process-row .vis img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,.6,.25,1);
}
.process-row:hover .vis img { transform: scale(1.04); }
.process-row .vis::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line-2);
  pointer-events: none;
}

/* ─── Mac Download — big centered showpiece ───────────────────────── */

.mac-download {
  position: relative;
  isolation: isolate;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(200, 162, 76, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow: hidden;
  text-align: center;
}
.mac-download::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(200, 162, 76, 0.05) 0, transparent 25%),
    radial-gradient(circle at 90% 80%, rgba(158, 122, 44, 0.06) 0, transparent 30%);
  pointer-events: none;
  z-index: -1;
}
.mac-download-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
}

.mac-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(200, 162, 76, 0.06);
}

.mac-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--text);
}
.mac-headline em { font-style: italic; color: var(--accent-soft); }

.mac-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0;
}

/* The big button — centered, brass, unmissable */
.mac-button {
  display: inline-flex; align-items: center;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(16px, 2.2vw, 24px) clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 65%, var(--accent-deep) 100%);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  margin: clamp(10px, 1.6vw, 18px) 0 clamp(2px, 0.4vw, 4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 12px 30px -8px rgba(200, 162, 76, 0.55),
    0 4px 12px -2px rgba(0, 0, 0, 0.4);
  transition: transform .25s cubic-bezier(.16,.6,.25,1), box-shadow .35s ease, filter .25s ease;
  position: relative;
  overflow: hidden;
}
.mac-button::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.30) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s cubic-bezier(.16,.6,.25,1);
  pointer-events: none;
}
.mac-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.36) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 24px 50px -10px rgba(200, 162, 76, 0.65),
    0 8px 18px -4px rgba(0, 0, 0, 0.45);
}
.mac-button:hover::before { transform: translateX(110%); }
.mac-button:active { transform: translateY(-1px); filter: brightness(0.97); }

.mac-button-glyph {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1;
  color: var(--bg);
  opacity: 0.85;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}
.mac-button-copy {
  display: flex; flex-direction: column;
  text-align: left;
  line-height: 1.1;
}
.mac-button-eyebrow {
  font-family: var(--mono);
  font-size: clamp(9.5px, 0.9vw, 11px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bg);
  opacity: 0.62;
  margin-bottom: 4px;
}
.mac-button-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: -0.005em;
  color: var(--bg);
}
.mac-button-arrow {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--bg);
  opacity: 0.78;
  transition: transform .25s ease;
}
.mac-button:hover .mac-button-arrow { transform: translateY(2px); }

.mac-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}
.mac-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-mute);
  display: inline-block;
}

/* Bonus second sample — a small video next to a copy block */
.mac-bonus {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
@media (min-width: 720px) {
  .mac-bonus { grid-template-columns: 220px 1fr; gap: 40px; }
}
.bonus-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 16px;
  background: #000;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bonus-frame::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--accent);
  opacity: 0.25;
  pointer-events: none;
  border-radius: 16px;
}
.bonus-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bonus-copy { display: grid; gap: 10px; }
.bonus-tag {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.bonus-copy h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text);
}
.bonus-copy h3 em { font-style: italic; color: var(--accent-soft); }
.bonus-copy p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
  max-width: 44ch;
}

/* ─── Studio (cross-device showcase, editorial) ────────────────────── */

.studio-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
@media (min-width: 920px) {
  .studio-spread { grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 80px); }
}

.studio-text h2.editorial { max-width: 14ch; }
.studio-text .lede { max-width: 44ch; }

.devices-stack {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; align-items: end;
}
.devices-stack .device {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0c;
  border: 1px solid rgba(244, 236, 219, 0.18);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .5s cubic-bezier(.16,.6,.25,1);
}
.devices-stack .device:nth-child(1) { transform: translateY(20px); }
.devices-stack .device:nth-child(2) { transform: translateY(-8px); z-index: 2; }
.devices-stack .device:nth-child(3) { transform: translateY(28px); }
.devices-stack:hover .device:nth-child(1) { transform: translateY(10px); }
.devices-stack:hover .device:nth-child(2) { transform: translateY(-18px); }
.devices-stack:hover .device:nth-child(3) { transform: translateY(18px); }
.devices-stack .device img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.devices-stack .device .label {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(14, 11, 7, 0.85);
  color: var(--text);
  border: 1px solid rgba(244, 236, 219, 0.18);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.download-row {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.download-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(244, 236, 219, 0.02);
  font-family: var(--sans); font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  font-size: 13.5px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.download-link:hover {
  border-color: var(--accent);
  background: rgba(200, 162, 76, 0.05);
  transform: translateY(-1px);
}
.download-link .ico {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.download-link .small {
  display: block;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1px;
  font-weight: 500;
}
.download-link .big {
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

/* ─── Specifications (technical foundation) ────────────────────────── */

.specs-table {
  display: grid; gap: 0;
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.specs-table .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .specs-table .row {
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: baseline;
  }
}
.specs-table .row .k {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.specs-table .row .v {
  font-family: var(--serif);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 400;
}
.specs-table .row .v b {
  color: var(--text); font-weight: 500;
}

/* ─── Membership (pricing, brokerage-club style) ───────────────────── */

.membership {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .membership { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.tier {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.tier::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.tier.featured::before { opacity: 1; }
.tier.featured {
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(200, 162, 76, 0.10), transparent 60%),
    var(--bg-2);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -20px rgba(200, 162, 76, 0.18);
}
.tier .tier-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
}
.tier.featured .tier-tag { color: var(--accent); }
.tier .tier-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tier .tier-name em { font-style: italic; color: var(--accent-soft); }
.tier .tier-price {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.tier .tier-price em { font-style: italic; color: var(--accent-soft); font-weight: 400; }
.tier .tier-price .unit {
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  font-style: normal;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier .tier-blurb {
  font-family: var(--serif); font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  max-width: 36ch;
}
.tier .tier-list {
  display: grid; gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
}
.tier .tier-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}
.tier .tier-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--mono);
}
.tier .tier-foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ─── Concierge (closing CTA) ──────────────────────────────────────── */

.concierge {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--pad-page);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.concierge-photo {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=2000&q=85");
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: saturate(0.85) contrast(1.05);
}
.concierge-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 50% 50%, rgba(14, 11, 7, 0.55), rgba(14, 11, 7, 0.96) 80%),
    linear-gradient(180deg, rgba(14, 11, 7, 0.92), rgba(14, 11, 7, 0.85));
}
.concierge .small-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}
.concierge h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 18ch;
  color: var(--text);
}
.concierge h2 em { font-style: italic; color: var(--accent-soft); }
.concierge p.lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 auto 36px;
}
.concierge .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Colophon (footer, brokerage-style) ───────────────────────────── */

.footer-refined {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  padding: clamp(56px, 8vw, 88px) var(--pad-page) clamp(36px, 5vw, 60px);
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.footer-refined .grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
@media (min-width: 720px) {
  .footer-refined .grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 56px; }
}
.footer-refined h4 {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px; font-weight: 500;
}
.footer-refined ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-refined ul li {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}
.footer-refined ul a {
  color: var(--text-dim);
  transition: color .15s ease;
}
.footer-refined ul a:hover { color: var(--accent); }
.footer-refined .brand-col .brand {
  font-size: 28px;
  margin-bottom: 18px;
}
.footer-refined .brand-col p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim); font-size: 16px;
  line-height: 1.55;
  margin: 0 0 14px; max-width: 36ch;
}
.footer-refined .brand-col .small {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  display: block; margin-top: 18px;
}
.footer-refined .legal-row {
  max-width: var(--max-w); margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid; gap: 18px;
}
@media (min-width: 720px) { .footer-refined .legal-row { grid-template-columns: 1fr auto; align-items: end; } }
.footer-refined .legal-row .compliance {
  font-family: var(--sans);
  font-size: 12px; color: var(--text-faint);
  line-height: 1.7; max-width: 80ch;
}
.footer-refined .legal-row .copyright {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ─── Reveal-on-scroll ─────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.16,.6,.25,1), transform 1s cubic-bezier(.16,.6,.25,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════════════
   POST-LOGIN SURFACES (auth + app pages)
   These power signed-in screens. Keep the editorial flavor but make
   them functional / form-driven. Untouched-conceptually from before.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Auth screens ─────────────────────────────────────────────────── */

.auth-screen {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid; place-items: center;
  padding: clamp(40px, 6vw, 80px) var(--pad-page);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(45% 50% at 18% 8%, rgba(200, 162, 76, 0.12), transparent 60%),
    radial-gradient(50% 55% at 85% 92%, rgba(200, 162, 76, 0.06), transparent 60%),
    var(--bg);
}
.auth-screen::before, .auth-screen::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.auth-screen::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  top: -120px; right: -100px;
}
.auth-screen::after {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(158, 122, 44, 0.20), transparent 60%);
  bottom: -100px; left: -80px;
}

.auth-card {
  width: 100%; max-width: 460px;
  position: relative;
  background: linear-gradient(180deg, rgba(29, 22, 14, 0.85) 0%, rgba(22, 17, 10, 0.92) 100%);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 4vw, 44px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 60px 120px -30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.auth-card .auth-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 500; font-size: 18px;
  color: var(--text); letter-spacing: -0.005em;
  margin-bottom: 32px;
}
.auth-card .auth-brand .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.auth-card h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 40px);
  letter-spacing: -0.012em; line-height: 1.05;
  margin: 0 0 8px;
  color: var(--text);
}
.auth-card h1 em { font-style: italic; color: var(--accent-soft); }
.auth-card .lede {
  font-family: var(--serif); font-style: italic;
  color: var(--text-dim); margin: 0 0 28px; font-size: 16px; line-height: 1.55;
}
.auth-card form { display: grid; gap: 16px; }
.auth-card label { display: block; }
.auth-card label .label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
}
.auth-card input { width: 100%; padding: 14px 16px; font-size: 15px; }
.auth-card .submit { margin-top: 12px; padding: 15px 22px; font-size: 14.5px; width: 100%; }
.auth-card .switch { color: var(--text-dim); font-size: 14px; margin-top: 28px; text-align: center; }
.auth-card .switch a { color: var(--accent); font-weight: 500; }
.auth-card .err { margin-top: 14px; }

/* ─── App pages (post-login) ───────────────────────────────────────── */

.app-page {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--pad-page) clamp(60px, 8vw, 100px);
}
.app-page .crumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.app-page h1.page-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.012em;
  margin: 0 0 8px;
  color: var(--text);
}
.app-page h1.page-title em { font-style: italic; color: var(--accent-soft); }
.app-page .page-sub { color: var(--text-dim); margin: 0 0 32px; font-size: 15px; max-width: 56ch; }

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.panel h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 22px; letter-spacing: -0.014em;
  margin: 0 0 12px;
}
.panel .panel-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 14px; line-height: 1.55; }

.price-matrix {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0 26px;
  overflow-x: auto;
}
.price-matrix-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) repeat(3, minmax(76px, 1fr));
  min-width: 420px;
  border-top: 1px solid var(--line);
}
.price-matrix-row:first-child { border-top: 0; }
.price-matrix-row > div {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}
.price-matrix-row.head > div {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
.price-matrix-row > div:not(:first-child) {
  text-align: right;
}

/* ─── Generic layout helpers ──────────────────────────────────────── */

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 8px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

label.field .label { display: block; margin-bottom: 6px; }
label.field input,
label.field textarea,
label.field select { width: 100%; padding: 12px 14px; }
label.field.inline { display: flex; align-items: center; gap: 12px; }
label.field.inline .label { margin: 0; }

/* Pill toggles */
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  color: var(--text-dim); font-size: 13.5px;
  background: var(--bg-2); transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.toggle:hover { border-color: var(--line-2); color: var(--text); }
.toggle[aria-pressed="true"] {
  background: var(--text); color: var(--bg);
  border-color: var(--text); font-weight: 500;
}
.toggle .sub { color: var(--text-faint); font-size: 11.5px; }
.toggle[aria-pressed="true"] .sub { color: rgba(14, 11, 7, 0.6); }

/* Card-style choices */
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; cursor: pointer;
  background: var(--bg-2); transition: all .15s ease;
  text-align: left;
}
.choice:hover { border-color: var(--line-2); }
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(200, 162, 76, 0.06);
}
.choice .title { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 4px; }
.choice .blurb { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.choice[aria-pressed="true"] .title { color: var(--accent); }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.photo-card {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  transition: border-color .15s ease, transform .15s ease;
}
.photo-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .idx {
  position: absolute; left: 8px; top: 8px;
  background: rgba(14, 11, 7, 0.78);
  color: #fff; font-family: var(--mono);
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.14em;
}
.photo-card .x {
  position: absolute; right: 8px; top: 8px;
  background: rgba(14, 11, 7, 0.78);
  color: #fff; width: 24px; height: 24px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  display: grid; place-items: center; line-height: 1; font-size: 14px;
}
.photo-card .x:hover { background: var(--error); }
.photo-card.dropping { outline: 2px dashed var(--accent); outline-offset: 2px; }

.dropzone {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r);
  padding: 40px 22px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s ease;
  background: var(--bg-2);
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(200, 162, 76, 0.04);
}
.dropzone strong { color: var(--text); font-weight: 500; font-family: var(--serif); font-size: 18px; }

.scene {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .scene { grid-template-columns: 220px 1fr; gap: 24px; } }
.scene:last-child { border-bottom: none; }
.scene .thumb {
  aspect-ratio: 4 / 3; background: var(--bg-3);
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  max-width: 280px;
}
.scene .thumb img { width: 100%; height: 100%; object-fit: cover; }
.scene .thumb .idx {
  position: absolute; left: 8px; top: 8px;
  background: rgba(14, 11, 7, 0.78);
  color: #fff; font-family: var(--mono);
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.14em;
}
.scene .body { display: grid; gap: 10px; }

/* Generation progress */
.progress-wrap { text-align: center; padding: 60px 24px; }
.progress-wrap .phase {
  font-family: var(--serif); font-weight: 400; font-size: 30px;
  letter-spacing: -0.012em; margin: 0 0 8px;
}
.progress-wrap .sub { color: var(--text-dim); margin: 0 0 28px; }
.progress-bar {
  height: 4px; background: var(--bg-3); border-radius: 999px;
  overflow: hidden; max-width: 480px; margin: 0 auto 22px;
}
.progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
  width: 0%;
  transition: width .8s ease;
}
.progress-meta {
  font-family: var(--mono); color: var(--text-faint);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}

/* Result video */
.result-wrap { text-align: center; padding: 24px 0; }
.result-wrap video {
  width: 100%; max-width: 880px; margin: 0 auto;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: var(--shadow);
}
.result-wrap .actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* History list */
.tour-list { display: grid; gap: 10px; }
.tour-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .25s ease;
}
@media (min-width: 720px) { .tour-row { grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; } }
.tour-row:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tour-row .title { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.tour-row .meta {
  font-family: var(--mono); color: var(--text-faint);
  font-size: 11px; letter-spacing: 0.18em;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.20em; text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: var(--bg-2);
}
.pill.green { color: var(--success); border-color: rgba(108, 155, 111, 0.32); }
.pill.red { color: var(--error); border-color: rgba(194, 91, 79, 0.32); }
.pill.ember, .pill.amber { color: var(--accent); border-color: rgba(200, 162, 76, 0.40); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Stepper */
.stepper {
  display: flex; gap: 4px;
  padding: 6px 10px; margin-bottom: 22px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; overflow-x: auto;
}
.stepper button {
  background: transparent; border: none;
  color: var(--text-dim);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: color .14s ease, background .14s ease;
}
.stepper button:hover { color: var(--text); }
.stepper button[aria-current="true"] {
  background: var(--text); color: var(--bg); font-weight: 500;
}
.stepper .num { font-family: var(--mono); font-size: 10.5px; opacity: 0.6; }
.stepper button[aria-current="true"] .num { color: rgba(14, 11, 7, 0.6); opacity: 1; }

/* Toasts */
.toasts {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  max-width: 360px;
  animation: toast-in .2s ease;
}
.toast.err { background: var(--error); color: #fff; }
.toast.ok { background: var(--success); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Spinner */
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(244, 236, 219, 0.18);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
.spin.lg { width: 22px; height: 22px; border-width: 2.5px; }
.spin.ember { border-color: rgba(200, 162, 76, 0.18); border-top-color: var(--accent); }
.spin.light { border-color: rgba(244, 236, 219, 0.32); border-top-color: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Selfie row */
.selfie-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.selfie-row .preview {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line-2);
  background: var(--bg-3);
}
.selfie-row .placeholder {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-3); border: 1px dashed var(--line-2);
  display: grid; place-items: center;
  color: var(--text-faint); font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.voice-upload-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 14px;
}
.voice-upload-row .spin {
  margin-right: 8px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-headline, .hero-lede, .hero-cta { animation: none; }
}

/* ─── Tour generation status — editorial card mirroring the lander ───── */

.gen-card {
  position: relative;
  max-width: 720px;
  margin: 16px auto 32px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at top left, rgba(246, 120, 59, .08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    var(--panel, #131722);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  padding: 56px 52px 48px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 30px 80px -20px rgba(0,0,0,.55);
  animation: gen-card-in 0.55s cubic-bezier(.2, .9, .25, 1.02) both;
}
@keyframes gen-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated tint stripe at the top, with an ember-bright sweep travelling
   across it on a slow loop. Mirrors the way the lander hero feels alive. */
.gen-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gen-tint, var(--ember, #f6783b));
  opacity: .9;
}
.gen-card::after {
  content: "";
  position: absolute;
  top: 0; left: -25%;
  width: 50%; height: 3px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 230, 200, .85),
    transparent);
  animation: gen-sweep 3.8s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes gen-sweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(300%); }
}
.gen-card.tint-agent   { --gen-tint: linear-gradient(90deg, #6ea4ff, #c2b9ff); }
.gen-card.tint-stage   { --gen-tint: linear-gradient(90deg, #b8a47a, #f6c977); }
.gen-card.tint-ember   { --gen-tint: linear-gradient(90deg, #f6783b, #ffae5e); }
.gen-card.tint-paper   { --gen-tint: linear-gradient(90deg, #f5f1ea, #d6cfc1); }
.gen-card.tint-neutral { --gen-tint: linear-gradient(90deg, #5a6076, #8d8576); }

.gen-head {
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 18px;
}
.gen-icon {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px; line-height: 1;
  color: var(--ember, #f6783b);
  background:
    radial-gradient(circle at 35% 35%, rgba(246, 120, 59, .22), rgba(246, 120, 59, .06));
  border: 1px solid rgba(246, 120, 59, 0.38);
  flex-shrink: 0;
  animation: gen-icon-breathe 2.6s ease-in-out infinite;
}
.gen-icon::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(246, 120, 59, .45);
  opacity: 0;
  animation: gen-icon-ring 2.6s ease-out infinite;
}
@keyframes gen-icon-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes gen-icon-ring {
  0%   { transform: scale(0.85); opacity: 0.55; }
  60%  { opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.tint-agent   .gen-icon { color: #c2b9ff; background: radial-gradient(circle at 35% 35%, rgba(110, 164, 255, .22), rgba(110, 164, 255, .06)); border-color: rgba(194, 185, 255, .42); }
.tint-agent   .gen-icon::before { border-color: rgba(194, 185, 255, .5); }
.tint-stage   .gen-icon { color: #f6c977; background: radial-gradient(circle at 35% 35%, rgba(184, 164, 122, .22), rgba(184, 164, 122, .06)); border-color: rgba(246, 201, 119, .42); }
.tint-stage   .gen-icon::before { border-color: rgba(246, 201, 119, .5); }
.tint-paper   .gen-icon { color: #f5f1ea; background: radial-gradient(circle at 35% 35%, rgba(245, 241, 234, .18), rgba(245, 241, 234, .04)); border-color: rgba(245, 241, 234, .35); }
.tint-paper   .gen-icon::before { border-color: rgba(245, 241, 234, .42); }
.tint-neutral .gen-icon { color: #c8c0aa; background: radial-gradient(circle at 35% 35%, rgba(141, 133, 118, .22), rgba(141, 133, 118, .06)); border-color: rgba(141, 133, 118, .4); }
.tint-neutral .gen-icon::before { border-color: rgba(141, 133, 118, .5); }

.gen-head-text { flex: 1; min-width: 0; }
.gen-eyebrow {
  margin: 0 0 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--paper-faint, rgba(245, 241, 234, .42));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.gen-title {
  margin: 0;
  /* Match the lander's serif display headline. */
  font-family: var(--serif, "Cormorant Garamond", "Iowan Old Style", Georgia, serif);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -1.2px;
  color: var(--paper, #f5f1ea);
  line-height: 1.04;
  /* Subtle slide-in on each phase change (key swap forces re-render) */
  animation: gen-title-in 0.45s cubic-bezier(.2, .9, .25, 1.02) both;
}
@keyframes gen-title-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gen-cancel {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(246, 120, 59, .55);
  color: var(--ember, #f6783b);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}
.gen-cancel:hover  { background: rgba(246, 120, 59, .12); }
.gen-cancel:active { transform: scale(0.97); }

.gen-sub {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--paper-dim, rgba(245, 241, 234, .65));
  line-height: 1.45;
  animation: gen-title-in 0.45s cubic-bezier(.2, .9, .25, 1.02) both;
  animation-delay: 0.05s;
}

.gen-scenes {
  display: flex; gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.scene-tile {
  flex: 1 1 0;
  min-width: 56px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--paper-faint, rgba(245, 241, 234, .35));
  transition:
    transform 0.32s cubic-bezier(.2, .9, .25, 1.02),
    border-color 0.32s ease,
    background 0.32s ease,
    color 0.32s ease,
    box-shadow 0.4s ease;
  animation: scene-tile-in 0.45s cubic-bezier(.2, .9, .25, 1.02) both;
}
/* Stagger entrance per tile so they cascade in left-to-right. */
.scene-tile:nth-child(1) { animation-delay: 0.08s; }
.scene-tile:nth-child(2) { animation-delay: 0.14s; }
.scene-tile:nth-child(3) { animation-delay: 0.20s; }
.scene-tile:nth-child(4) { animation-delay: 0.26s; }
.scene-tile:nth-child(5) { animation-delay: 0.32s; }
.scene-tile:nth-child(6) { animation-delay: 0.38s; }
.scene-tile:nth-child(7) { animation-delay: 0.44s; }
.scene-tile:nth-child(8) { animation-delay: 0.50s; }
.scene-tile:nth-child(n+9) { animation-delay: 0.56s; }

@keyframes scene-tile-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.scene-tile.active {
  background: rgba(246, 120, 59, .14);
  border-color: var(--ember, #f6783b);
  color: var(--ember, #f6783b);
  transform: translateY(-2px) scale(1.05);
  animation: scene-tile-in 0.45s cubic-bezier(.2, .9, .25, 1.02) both, scene-tile-pulse 2.0s ease-in-out infinite;
}
.scene-tile.done {
  background: rgba(110, 220, 130, .10);
  border-color: rgba(110, 220, 130, .5);
  color: rgba(190, 235, 200, .92);
}
.scene-tile.done .scene-tile-num::after { content: "  ✓"; opacity: 0.7; }

@keyframes scene-tile-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246, 120, 59, .45); }
  50%      { box-shadow: 0 0 0 9px rgba(246, 120, 59, 0); }
}

.gen-bar {
  height: 5px;
  border-radius: 3px;
  margin-top: 12px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.gen-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #f6783b, #ffae5e);
  transition: width 0.6s cubic-bezier(.2, .9, .25, 1.02);
  position: relative;
}
/* Shimmer travelling along the filled portion of the bar — same idea as the
   sweep at the top of the card but tighter. */
.gen-bar > div::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: gen-bar-shimmer 1.8s ease-in-out infinite;
}
@keyframes gen-bar-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(120%); }
}

@media (max-width: 640px) {
  .gen-card { padding: 36px 24px 32px; border-radius: 24px; }
  .gen-head { gap: 16px; }
  .gen-icon { width: 64px; height: 64px; font-size: 24px; }
  .gen-title { font-size: clamp(32px, 8vw, 44px); }
  .scene-tile { min-width: 42px; font-size: 11px; }
}

/* Per-photo "Remove furniture" pill on the wizard photo step */
.photo-card { position: relative; }
.photo-unfurnished {
  position: absolute;
  bottom: 8px; left: 8px;
  appearance: none;
  background: rgba(7, 9, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper, #f5f1ea);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.photo-unfurnished:hover {
  background: rgba(7, 9, 18, 0.78);
  border-color: rgba(255, 255, 255, 0.32);
}
.photo-unfurnished.on {
  background: rgba(246, 120, 59, 0.18);
  border-color: var(--ember, #f6783b);
  color: var(--ember, #f6783b);
}
.photo-card.unfurnished img {
  opacity: 0.85;
}

/* Master "Remove furniture · all rooms" toggle above the photo grid */
.unfurnished-all {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  appearance: none;
  background: var(--panel, #131722);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  color: var(--paper, #f5f1ea);
  padding: 14px 16px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  margin-top: 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.unfurnished-all:hover { border-color: rgba(255,255,255,.18); }
.unfurnished-all.on {
  background: rgba(246, 120, 59, 0.08);
  border-color: rgba(246, 120, 59, 0.4);
}
.unfurnished-all-icon {
  font-size: 18px;
  color: var(--paper-faint, rgba(245, 241, 234, .42));
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  width: 22px; text-align: center;
  flex-shrink: 0;
}
.unfurnished-all.on .unfurnished-all-icon,
.unfurnished-all.mixed .unfurnished-all-icon {
  color: var(--ember, #f6783b);
}
.unfurnished-all-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.unfurnished-all-text strong {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--paper, #f5f1ea);
}
.unfurnished-all-text span {
  font-size: 11px;
  color: var(--paper-faint, rgba(245, 241, 234, .42));
}
.unfurnished-all-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ember, #f6783b);
  padding: 4px 8px;
  border: 1px solid rgba(246, 120, 59, 0.55);
  border-radius: 999px;
  flex-shrink: 0;
}
