/* VGM London: shared styles */

:root {
  --wine: #2B0F16;
  --wine-2: #3A1620;
  --burgundy: #7D1F2E;
  --burgundy-dark: #5E1622;
  --blush: #E9C9CE;
  --plate: #FBFAF8;
  --paper: #FFFDF8;
  --stone: #E7E2DC;
  --stone-2: #F2EFEB;
  --ink: #1D1517;
  --muted: #625759;
  --muted-dark: #C9B7BA;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --header: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--blush); }
.form :focus-visible, .dark .plan :focus-visible { outline-color: var(--burgundy); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Type */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.012em; }
h3 { font-size: clamp(23px, 2vw, 29px); line-height: 1.18; }

.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--muted); max-width: 54ch; }
.dark .lead { color: var(--muted-dark); }

.dark { background: var(--wine); color: #fff; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn-outline { color: #fff; }
.dark .btn-outline:hover { background: #fff; color: var(--wine); border-color: #fff; }
.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { background: var(--blush); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.text-link {
  color: var(--burgundy); font-weight: 500; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--burgundy-dark); }
.dark .text-link { color: var(--blush); }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone);
}
.header-inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  letter-spacing: 0.42em; margin-right: -0.42em; text-decoration: none; color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a:hover { color: var(--burgundy); }
.nav a[aria-current="page"] { color: var(--burgundy); font-weight: 600; }
.nav .nav-cta, .nav .nav-login { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .login { font-size: 15px; text-decoration: none; }
.header-actions .login:hover { color: var(--burgundy); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--stone); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn, .header-actions .login { display: none; }
  .nav {
    display: none; position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--plate); border-bottom: 1px solid var(--stone);
    padding: 8px var(--pad) 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--stone); }
  .nav .nav-login { display: block; }
  .nav .nav-cta { display: flex; margin-top: 20px; border: 0; color: #fff; font-size: 16px; }
}

/* Sections */

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); }
.sticky { position: sticky; top: calc(var(--header) + 48px); align-self: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}

/* Hero */

.hero {
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.hero .wrap { width: 100%; }

.vgm {
  font-size: clamp(46px, 7.6vw, 128px); line-height: 1; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; column-gap: 0.24em; row-gap: 0.04em;
}
.vgm .word { display: inline-flex; white-space: nowrap; }
.vgm .cap { color: #fff; }
.vgm .rest {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
  color: var(--blush);
  width: 0; opacity: 0;
  transition: width 1.15s cubic-bezier(.7, 0, .2, 1), opacity .7s ease .3s;
}
.vgm .cap { opacity: 0; transition: opacity .6s ease; }
.hero.is-lit .vgm .cap { opacity: 1; }
.hero.is-open .vgm .rest { opacity: 1; }

.hero-for {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.3vw, 50px); line-height: 1.12; margin-top: 0.28em; color: #fff;
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 72px; margin-top: clamp(40px, 6vw, 72px); align-items: end;
}
.hero-quote { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; }
.hero-quote span { display: block; }
.hero-quote .first { color: var(--muted-dark); }
.hero-text p { color: var(--muted-dark); max-width: 48ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px 44px; font-size: 15px; color: var(--muted-dark);
}
.hero-proof strong { color: #fff; font-weight: 500; }

.hero .later { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.hero.is-done .later { opacity: 1; transform: none; }
.hero.is-done .later.l2 { transition-delay: .15s; }
.hero.is-done .later.l3 { transition-delay: .3s; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Page hero (light, inner pages) */

.page-hero { padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--stone); }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero .hero-actions { margin-top: 36px; }

/* Torn paper edge, shared by docket and tickets */

.torn { position: relative; }
.torn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 14px 10px repeat-x;
}

/* Problem and results docket */

.problem { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.problem h2 { max-width: 13ch; }
.problem .lead + .lead { margin-top: 18px; }
.problem .lead:first-of-type { margin-top: 32px; }

.docket {
  justify-self: end; width: 100%; max-width: 410px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 14px; line-height: 1.5;
  padding: 30px 28px 36px;
  box-shadow: 0 1px 0 var(--stone), 0 24px 48px rgba(43, 15, 22, 0.12);
  transform: rotate(1.4deg);
}
.docket-head { text-align: center; padding-bottom: 18px; border-bottom: 1px dashed #BDB2AC; margin-bottom: 18px; }
.docket-head .mark { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.4em; margin-right: -0.4em; display: block; }
.docket-head span { color: var(--muted); font-size: 13px; }
.docket-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.docket-row .leader { flex: 1; border-bottom: 1px dotted #B3A8A2; transform: translateY(-4px); min-width: 16px; }
.docket-row .val { white-space: nowrap; font-weight: 500; }
.docket-row.big .val { font-size: 26px; color: var(--burgundy); }
.docket-rule { border-top: 1px dashed #BDB2AC; margin: 14px 0; }
.docket-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

@media (max-width: 900px) {
  .problem { grid-template-columns: 1fr; }
  .docket { justify-self: center; }
}

/* Services list */

.service {
  padding: 30px 0; border-top: 1px solid var(--stone);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px;
}
.service:last-child { border-bottom: 1px solid var(--stone); }
.service p { grid-column: 1 / -1; color: var(--muted); max-width: 58ch; }
.tag {
  align-self: center; white-space: nowrap; font-size: 13px; line-height: 1;
  color: var(--burgundy); border: 1px solid #DCC3C8; border-radius: 999px; padding: 7px 12px;
}
.aside-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--stone); color: var(--muted); max-width: 40ch; }

/* Ticket rail */

.rail-section { position: relative; }
.rail-sticky { padding: clamp(80px, 10vw, 120px) 0 clamp(64px, 8vw, 96px); }
.rail-section.pinned .rail-sticky {
  position: sticky; top: var(--header);
  height: calc(100vh - var(--header));
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 32px 0;
}
.rail-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
@media (max-width: 800px) { .rail-head { grid-template-columns: 1fr; } }

.rail-viewport { margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail-viewport::-webkit-scrollbar { display: none; }
.rail-section.pinned .rail-viewport { overflow: visible; }

.rail {
  position: relative; list-style: none; margin: 0;
  display: flex; gap: 28px; width: max-content;
  padding: 52px var(--pad) 40px;
  will-change: transform;
}
.rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 3px;
  background: linear-gradient(#9C8C90, #5C4B50);
}

.ticket {
  position: relative; flex: none; width: min(340px, 80vw);
  background: var(--paper); color: var(--ink);
  padding: 26px 26px 32px; scroll-snap-align: center;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  transform-origin: top center;
}
.ticket::before {
  content: ""; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 42px; border-radius: 5px 5px 10px 10px;
  background: linear-gradient(#C2B5B8, #8E7F83);
}
.ticket:nth-child(1) { transform: rotate(-1.1deg); }
.ticket:nth-child(2) { transform: rotate(0.9deg); }
.ticket:nth-child(3) { transform: rotate(-0.6deg); }
.ticket:nth-child(4) { transform: rotate(1.1deg); }
.ticket:nth-child(5) { transform: rotate(-0.8deg); }

.ticket-top {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed #BDB2AC;
}
.ticket h3 { font-size: 30px; }
.ticket p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.ticket ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed #BDB2AC; font-family: var(--mono); font-size: 13.5px; display: grid; gap: 8px; }
.ticket li::before { content: "+ "; color: var(--burgundy); }

.rail-foot { display: flex; align-items: center; gap: 20px; }
.rail-progress { flex: 1; height: 2px; background: var(--line-dark); overflow: hidden; }
.rail-progress span { display: block; height: 100%; background: var(--blush); transform-origin: left; transform: scaleX(0); }
.rail-hint { font-size: 14px; color: var(--muted-dark); white-space: nowrap; }
.rail-section:not(.pinned) .rail-progress { display: none; }

/* Work */

.case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 80px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--ink);
}
.case:last-of-type { border-bottom: 1px solid var(--ink); }
.case-name { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.015em; }
.case-type { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.case-summary { margin-top: 24px; color: var(--muted); max-width: 46ch; }
.outcomes { list-style: none; margin: 0; padding: 0; align-self: end; }
.outcomes li {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--stone); font-size: 18px;
}
.outcomes li:first-child { border-top: 1px solid var(--stone); }
.outcomes small { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 800px) {
  .case { grid-template-columns: 1fr; }
  .outcomes li { flex-direction: column; gap: 2px; }
}

.names { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 64px; }
.names h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); padding-top: 10px; }
.names ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 36px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.3vw, 32px); }
@media (max-width: 800px) { .names { grid-template-columns: 1fr; } .names h3 { padding-top: 0; } }

/* Capture demo */

.capture-band { background: var(--stone-2); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.capture-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
.capture-grid .lead { margin-top: 24px; }
.capture-points { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; gap: 14px; }
.capture-points li { padding-left: 28px; position: relative; }
.capture-points li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px;
  border-left: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(-45deg);
}
@media (max-width: 900px) { .capture-grid { grid-template-columns: 1fr; } }

.cap-demo {
  position: relative; background: #fff; border: 1px solid var(--stone); border-radius: 22px;
  padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px rgba(43, 15, 22, 0.10);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 24px;
}
.dark .cap-demo { border-color: transparent; color: var(--ink); }
.cap-stage { position: relative; min-height: 250px; border-radius: 14px; background: var(--wine); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cap-stage::before, .cap-stage::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.7);
}
.cap-stage::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.cap-stage::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.cap-receipt {
  width: 72%; background: var(--paper); padding: 14px 12px 18px; font-family: var(--mono); font-size: 11px; line-height: 1.5;
}
.cap-receipt b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cap-receipt .r { display: flex; justify-content: space-between; }
.cap-receipt .t { border-top: 1px dashed #BDB2AC; margin-top: 6px; padding-top: 6px; font-weight: 500; }
.cap-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }

.cap-folders { display: grid; gap: 8px; align-content: center; }
.cap-folder {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; background: var(--plate); border: 1px solid var(--stone);
  font-size: 14px;
}
.cap-folder .n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cap-folder-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }

.cap-pl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cap-pl div { border-top: 1px solid var(--stone); padding-top: 12px; }
.cap-pl > div > span { display: block; font-size: 13px; color: var(--muted); }
.cap-pl strong { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 28px); }
.cap-pl .profit strong { color: var(--burgundy); }
.cap-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.swap .b { opacity: 0; }

.cap-demo.playing .cap-receipt { animation: capReceipt 7s cubic-bezier(.6, 0, .25, 1) infinite; }
.cap-demo.playing .cap-flash { animation: capFlash 7s linear infinite; }
.cap-demo.playing .cap-folder.target { animation: capPulse 7s ease infinite; }
.cap-demo.playing .swap .a { animation: capSwapA 7s linear infinite; }
.cap-demo.playing .swap .b { animation: capSwapB 7s linear infinite; }

@keyframes capReceipt {
  0% { transform: translateY(30px) rotate(-2deg); opacity: 0; }
  12% { transform: translateY(0) rotate(-2deg); opacity: 1; }
  40% { transform: translateY(0) rotate(0deg); opacity: 1; }
  58% { transform: translate(120%, -10%) scale(0.2); opacity: 0; }
  100% { transform: translate(120%, -10%) scale(0.2); opacity: 0; }
}
@keyframes capFlash { 0%, 42% { opacity: 0; } 44% { opacity: 0.8; } 48%, 100% { opacity: 0; } }
@keyframes capPulse {
  0%, 56% { border-color: var(--stone); background: var(--plate); }
  60%, 80% { border-color: var(--burgundy); background: #F6E9EB; }
  90%, 100% { border-color: var(--stone); background: var(--plate); }
}
@keyframes capSwapA { 0%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes capSwapB { 0%, 58% { opacity: 0; } 62%, 100% { opacity: 1; } }

@media (max-width: 560px) {
  .cap-demo { grid-template-columns: 1fr; }
  .cap-stage { min-height: 220px; }
}

/* Packages */

.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.package { padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 16px; border-right: 1px solid var(--stone); }
.package:last-child { border-right: 0; }
.package.featured { background: var(--wine); color: #fff; border-right: 0; border-radius: 0 0 18px 18px; }
.package .badge { font-size: 13px; color: var(--blush); }
.package .for { color: var(--muted); }
.package.featured .for { color: var(--muted-dark); }
.package ul { list-style: none; margin: 8px 0 24px; padding: 20px 0 0; border-top: 1px solid var(--stone); display: grid; gap: 10px; font-size: 16px; }
.package.featured ul { border-top-color: var(--line-dark); }
.package .btn { margin-top: auto; align-self: flex-start; }
.packages-note { margin-top: 28px; color: var(--muted); }
@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr; }
  .package { border-right: 0; border-bottom: 1px solid var(--stone); }
  .package.featured { border-radius: 18px; }
}

/* About */

.about-name { font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.015em; margin-top: 12px; }
.about-role { color: var(--muted); margin-top: 12px; }
.about-body p { font-size: 19px; line-height: 1.65; max-width: 56ch; }
.about-body p + p { margin-top: 18px; color: var(--muted); font-size: 17px; }
.creds { margin: 40px 0 0; padding: 0; }
.creds div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--stone); }
.creds div:last-child { border-bottom: 1px solid var(--stone); }
.creds dt { font-weight: 600; }
.creds dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .creds div { grid-template-columns: 1fr; } }

/* FAQ */

.faq details { border-top: 1px solid var(--stone); }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-grid h2 { font-size: clamp(40px, 5vw, 68px); }
.contact-grid .lead { margin-top: 24px; }
.contact-direct { margin-top: 40px; display: grid; gap: 6px; }
.contact-direct span { color: var(--muted-dark); font-size: 15px; }
.contact-direct a { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); color: #fff; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #D5CAC2; border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 0; border-color: var(--burgundy); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #D5CAC2; border-radius: 999px; font-size: 15px; background: #fff; }
.choice input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form .btn { width: 100%; min-height: 56px; }
.hp { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Capture page */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: step; }
.steps li { padding: 32px 32px 8px 0; counter-increment: step; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--stone); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--burgundy); margin-bottom: 20px; }
.steps p { margin-top: 10px; color: var(--muted); }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--stone); }
}

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ledger-col { border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.ledger-col h3 { font-size: 34px; }
.ledger-col .sub { color: var(--muted-dark); margin-top: 6px; }
.ledger-col dl { margin: 24px 0 0; }
.ledger-col dl div { padding: 16px 0; border-top: 1px solid var(--line-dark); }
.ledger-col dt { font-weight: 600; font-size: 18px; }
.ledger-col dd { margin: 4px 0 0; color: var(--muted-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: #fff; }
.handover-note { margin-top: 24px; border-radius: 18px; background: var(--wine-2); padding: 28px clamp(24px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.handover-note h3 { font-size: 28px; }
.handover-note p { color: var(--muted-dark); margin-top: 6px; }
@media (max-width: 800px) { .ledger { grid-template-columns: 1fr; } }

.clients { background: #fff; border: 1px solid var(--stone); border-radius: 20px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px rgba(43, 15, 22, 0.08); }
.clients-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.clients-head h3 { font-size: 26px; }
.clients-head span { font-size: 12.5px; color: var(--muted); }
.clients table { width: 100%; border-collapse: collapse; font-size: 15px; }
.clients th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--stone); }
.clients td { padding: 14px 8px; border-bottom: 1px solid var(--stone-2); }
.clients td:last-child, .clients th:last-child { text-align: right; font-family: var(--mono); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.status.ok { background: #E4F1E8; color: #2A6340; }
.status.todo { background: #F6E9EB; color: var(--burgundy); }
.table-scroll { overflow-x: auto; }

.billing { border: 0; padding: 4px; margin: 0 0 40px; display: inline-flex; gap: 4px; border-radius: 999px; background: var(--stone); }
.billing label { position: relative; }
.billing input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.billing span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.billing input:checked + span { background: var(--wine); color: #fff; }
.billing input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--stone); background: #fff; border-radius: 22px; padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.plan.dark { border-color: var(--wine); background: var(--wine); color: #fff; }
.plan .for { color: var(--muted); }
.plan.dark .for { color: var(--muted-dark); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price strong { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 5vw, 68px); line-height: 1; }
.price span { color: var(--muted); }
.plan.dark .price span { color: var(--muted-dark); }
.price-note { font-size: 15px; color: var(--burgundy); min-height: 1.6em; }
.plan.dark .price-note { color: var(--blush); }
.plan ul { list-style: none; margin: 8px 0 20px; padding: 20px 0 0; border-top: 1px solid var(--stone); display: grid; gap: 10px; }
.plan.dark ul { border-top-color: var(--line-dark); }
.plan .btn { margin-top: auto; }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* CTA band */

.cta-band { background: var(--burgundy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; flex-wrap: wrap; }
.cta-inner h2 { max-width: 16ch; }
.cta-inner p { margin-top: 16px; color: rgba(255, 255, 255, 0.86); max-width: 48ch; }

/* Thanks */

.thanks { min-height: calc(100vh - var(--header)); display: flex; align-items: center; }
.thanks h1 { font-size: clamp(48px, 7vw, 104px); line-height: 1; }
.thanks p { margin: 24px 0 36px; }

/* Footer */

.site-footer { background: var(--wine); color: var(--muted-dark); padding: clamp(56px, 7vw, 88px) 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-brand .wordmark { color: #fff; }
.footer-brand a.mail { display: inline-block; margin-top: 12px; color: #fff; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.footer-cols h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13.5px; line-height: 1.7; }

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vgm .rest, .vgm .cap, .hero .later { transition: none !important; }
  .cap-receipt, .cap-flash, .cap-folder.target, .swap span { animation: none !important; }
  .cap-receipt { opacity: 1; }
}

.dark .steps li::before { color: var(--blush); }

/* Before and after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.ba .col { border-radius: 18px; padding: clamp(26px, 3vw, 34px) clamp(24px, 3vw, 32px); }
.ba .col.before { background: #F1EDE8; border: 1px solid var(--stone); }
.ba .col.after { background: var(--wine); color: #fff; }
.ba .when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.ba .col.after .when { color: var(--blush); }
.ba h3 { font-size: clamp(22px, 2vw, 26px); margin-top: 6px; }
.ba ul { list-style: none; margin: 22px 0 0; padding: 0; }
.ba li { padding: 15px 0; border-top: 1px solid var(--stone); font-size: 16px; }
.ba .col.after li { border-top-color: var(--line-dark); }
@media (max-width: 820px) { .ba { grid-template-columns: 1fr; } }

/* Three ways */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.way { background: #fff; border: 1px solid var(--stone); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.way.pick { background: var(--wine); color: #fff; border-color: var(--wine); }
.way h3 { font-size: 27px; }
.way .who { color: var(--muted); font-size: 15px; }
.way.pick .who { color: var(--muted-dark); }
.way dl { margin: 6px 0 0; display: grid; gap: 14px; }
.way dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.way.pick dt { color: var(--blush); }
.way dd { margin: 4px 0 0; font-size: 16px; }
.way .row { border-top: 1px solid var(--stone); padding-top: 14px; }
.way.pick .row { border-top-color: var(--line-dark); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* Venue plan */
.map { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.plan { background: #fff; border: 1px solid var(--stone); border-radius: 20px; padding: 18px; }
.plan svg { width: 100%; height: auto; }
.spot { cursor: pointer; }
.spot circle.dot { fill: var(--burgundy); transition: r .2s ease; }
.spot:hover circle.dot, .spot[aria-pressed="true"] circle.dot { r: 19; }
.spot text { font-family: var(--mono); font-size: 15px; fill: #fff; dominant-baseline: central; text-anchor: middle; pointer-events: none; }
.spot:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spot-item { border: 1px solid transparent; border-radius: 14px; padding: 16px 18px; transition: background-color .2s ease, border-color .2s ease; }
.spot-item.on { background: #F6EEEF; border-color: #E0C4C9; }
.spot-item h3 { font-size: 21px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.spot-item .num { font-family: var(--mono); font-size: 13px; color: var(--burgundy); }
.spot-item .title { display: flex; align-items: baseline; gap: 12px; }
.spot-item p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 46ch; }
@media (max-width: 880px) { .map { grid-template-columns: 1fr; } }

.form-error { background: #F6E9EB; color: var(--burgundy-dark); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.form-error a { color: var(--burgundy-dark); font-weight: 600; }
.form .btn[disabled] { opacity: .7; cursor: wait; }

/* Legal pages */
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: 17px; line-height: 1.7; }
