/* ==========================================================
   Favomotion
   One accent: --blue. Used ONLY for .btn-primary and .accent.
   ========================================================== */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0c0c0e;
  --ink-2: #3b3b41;
  --muted: #74747c;
  --line: #ebebee;
  --surface: #f6f6f8;
  --blue: #1f57ff;
  --blue-hover: #1546db;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(88px, 12vw, 160px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --loop: 7s;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; scroll-margin-top: 72px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); max-width: 16ch; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--ink-2); margin-top: 18px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 19px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s ease, box-shadow .35s var(--ease-out), color .25s ease;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px -8px rgba(31,87,255,.55);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -10px rgba(31,87,255,.6); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary .arrow { transition: transform .35s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 12px 4px;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.link-quiet:hover { background-size: 100% 1px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* Solid on purpose: backdrop-filter blur over playing video causes black and grey tiles in Firefox */
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { font-weight: 650; font-size: 19px; letter-spacing: -0.04em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); letter-spacing: -0.045em; line-height: 1.0; max-width: 12ch; }
.accent {
  color: var(--blue);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.08em;
}
.hero-sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); margin-top: 26px; max-width: 44ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- Hero composition (monochrome on purpose) ----------
   One 10s timeline. Everything eases in and out, and the whole scene
   fades softly before the loop restarts, so there is no visible jump. */
.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(#d9d9de 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: .7;
}
.ui {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(12,12,14,.04), 0 18px 40px -18px rgba(12,12,14,.18);
  will-change: transform;
}
.float-a { animation: float 11s var(--ease-io) infinite; }
.float-b { animation: float 13s var(--ease-io) -4s infinite; }
.float-c { animation: float 12s var(--ease-io) -7s infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }

.ui-main { left: 10%; top: 17%; width: 68%; padding: 18px 18px 20px; z-index: 2; }
.ui-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.ui-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e4e4e8; }
.ui-bar span { margin-left: 10px; height: 8px; width: 38%; border-radius: 6px; background: var(--surface); }
.ui-kpi { display: flex; align-items: baseline; justify-content: space-between; }
.ui-kpi-label { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.ui-kpi-value { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.03em; }
.ui-chip { font-size: 11px; font-weight: 500; color: var(--ink-2); background: var(--surface); padding: 4px 8px; border-radius: 999px; }
.ui-chart { margin-top: 10px; width: 100%; height: auto; overflow: visible; }
.ui-chart .grid { stroke: #f0f0f2; stroke-width: 1; }
.ui-chart .line {
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: draw var(--loop) linear infinite;
}
.ui-chart .area { fill: url(#fade); opacity: 0; animation: areaIn var(--loop) linear infinite; }
.ui-chart .dot { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dotIn var(--loop) linear infinite; }
@keyframes draw {
  0%, 2% { stroke-dashoffset: 400; opacity: 1; animation-timing-function: var(--ease-io); }
  30%  { stroke-dashoffset: 0; }
  89%  { stroke-dashoffset: 0; opacity: 1; animation-timing-function: var(--ease-io); }
  97%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes areaIn {
  0%, 12% { opacity: 0; animation-timing-function: var(--ease-io); }
  34%, 89% { opacity: 1; animation-timing-function: var(--ease-io); }
  97%, 100% { opacity: 0; }
}
@keyframes dotIn {
  0%, 26% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-expo); }
  34%, 89% { opacity: 1; transform: scale(1); animation-timing-function: var(--ease-io); }
  97%, 100% { opacity: 0; transform: scale(.6); }
}

.ui-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.ui-lines span { display: block; height: 7px; border-radius: 6px; background: var(--surface); }
.ui-lines span + span { margin-top: 6px; }
.ui-btn-wrap { position: relative; }
.ui-btn {
  position: relative; overflow: hidden; display: inline-block;
  font-size: 11px; font-weight: 500; color: #fff; background: var(--ink);
  padding: 7px 12px; border-radius: 999px;
  animation: press var(--loop) linear infinite;
}
.ui-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: rgba(255,255,255,.45); transform: scale(0); opacity: 0;
  animation: ripple var(--loop) linear infinite;
}
@keyframes press {
  0%, 41.5% { transform: scale(1); animation-timing-function: var(--ease-io); }
  43.5% { transform: scale(.93); animation-timing-function: var(--ease-expo); }
  48%, 100% { transform: scale(1); }
}
@keyframes ripple {
  0%, 43% { transform: scale(0); opacity: 0; }
  43.5% { transform: scale(0); opacity: 1; animation-timing-function: var(--ease-out); }
  54%, 100% { transform: scale(10); opacity: 0; }
}

/* Cursor: glides in fast from the bottom right, clicks, then fades out in place */
.cursor {
  position: absolute; left: 52%; top: 48%; width: 20px; height: 20px; z-index: 5;
  pointer-events: none; transform-origin: 3px 3px;
  will-change: transform, opacity;
  animation: cursor var(--loop) linear infinite;
}
@keyframes cursor {
  0%, 30% { transform: translate3d(130px, 104px, 0) scale(1); opacity: 0; animation-timing-function: var(--ease-expo); }
  33%     { opacity: 1; }
  41%     { transform: translate3d(0, 0, 0) scale(1); animation-timing-function: var(--ease-io); }
  43.5%   { transform: translate3d(0, 0, 0) scale(.86); animation-timing-function: var(--ease-expo); }
  47%     { transform: translate3d(0, 0, 0) scale(1); }
  48.5%   { opacity: 1; animation-timing-function: var(--ease-io); }
  54%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
}

.ui-toast {
  right: 11%; top: 8%; z-index: 3; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 14px;
  will-change: transform, opacity;
  animation: toast var(--loop) linear infinite;
}
.ui-toast .av { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #2a2a2f, #6d6d75); }
.ui-toast b { display: block; font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.ui-toast small { display: block; font-size: 11px; color: var(--muted); }
@keyframes toast {
  0%, 45% { opacity: 0; transform: translate3d(0, -12px, 0) scale(.97); animation-timing-function: var(--ease-expo); }
  53%     { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  87%     { opacity: 1; transform: translate3d(0, 0, 0) scale(1); animation-timing-function: var(--ease-io); }
  95%, 100% { opacity: 0; transform: translate3d(0, -6px, 0) scale(.99); }
}

.ui-stat { left: 2%; top: 52%; width: 28%; padding: 13px 14px; z-index: 3; }
.ui-stat .ui-kpi-value { font-size: clamp(16px, 1.8vw, 20px); }
.ui-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 8px; }
.ui-bars i { flex: 1; border-radius: 3px; background: #e7e7eb; transform-origin: bottom; transform: scaleY(.15); animation: bar var(--loop) linear infinite; }
.ui-bars i:last-child { background: var(--ink); }
.ui-bars i:nth-child(1) { height: 35%; animation-delay: .06s; }
.ui-bars i:nth-child(2) { height: 52%; animation-delay: .12s; }
.ui-bars i:nth-child(3) { height: 44%; animation-delay: .18s; }
.ui-bars i:nth-child(4) { height: 68%; animation-delay: .24s; }
.ui-bars i:nth-child(5) { height: 100%; animation-delay: .30s; }
@keyframes bar {
  0%, 4% { transform: scaleY(.15); animation-timing-function: var(--ease-expo); }
  28%, 89% { transform: scaleY(1); animation-timing-function: var(--ease-io); }
  98%, 100% { transform: scaleY(.15); }
}

.ui-play { right: 12%; top: 77%; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 9px 14px 9px 9px; border-radius: 999px; }
.ui-play .pbtn { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.ui-play .pbtn::before { content: ""; margin-left: 2px; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.ui-play .track { width: 70px; height: 4px; border-radius: 4px; background: #ececf0; overflow: hidden; }
.ui-play .track i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; animation: progress var(--loop) linear infinite; }
.ui-play small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes progress { 0% { transform: scaleX(0); } 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
/* Videos stay as plain as possible for the browser compositor:
   no rounded clipping, no overflow clip, no transforms, no blur above them.
   Each of these can make Firefox paint black or grey tiles over a paused video. */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.js .work-item.reveal { transform: none; }
.video-placeholder {
  position: absolute; inset: 0; display: none;
  place-content: center; text-align: center; gap: 6px; color: var(--muted); font-size: 14px;
}
.video-placeholder strong { color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.video-frame.is-missing video { visibility: hidden; }
.video-frame.is-missing .video-placeholder { display: grid; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.work-meta h3 { font-size: 19px; letter-spacing: -0.02em; }
.work-meta span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.quote {
  margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface); border-radius: var(--radius);
  transition: transform .6s var(--ease-out), background-color .4s ease;
}
.quote:hover { transform: translateY(-3px); background: #f1f1f4; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: .7; color: #c4c4cb; margin-bottom: 10px; }
.person { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.avatar-letter {
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 25% 15%, #4a4a52 0%, #141417 55%, #000 100%);
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1;
  position: relative; overflow: hidden;
}
.avatar-letter span { transform: translate(-1px, 1px); }
.avatar-letter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 45%); }
.person b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.person small { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(12,12,14,.28); }
.plan-featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-featured .plan-desc, .plan-featured .plan-list li, .plan-featured .from { color: rgba(255,255,255,.66); }
.plan-featured .plan-list li::before { background: #fff; }
.plan-featured .plan-list { border-top-color: rgba(255,255,255,.14); }
.plan-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff;
}
.plan h3 { font-size: 20px; letter-spacing: -0.02em; padding-right: 96px; }
.plan:not(.plan-featured) h3 { padding-right: 0; }
.plan-desc { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.45; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price .from { font-size: 15px; color: var(--muted); }
.price strong { font-size: clamp(36px, 4vw, 46px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.plan-list { list-style: none; margin: 26px 0 30px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.pricing-note { text-align: center; font-size: 14px; color: var(--muted); margin: 28px auto 0; max-width: 70ch; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .06em; margin-bottom: 18px;
}
.step::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out) .2s;
}
.step.is-visible::after { transform: scaleX(1); }
.step h3 { font-size: 22px; letter-spacing: -0.025em; }
.step p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text p { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; letter-spacing: -0.015em; color: var(--ink); }
.about-text p + p { margin-top: 20px; color: var(--ink-2); font-size: 17px; letter-spacing: 0; }

/* ---------- Closing CTA ---------- */
.cta {
  margin-top: var(--section);
  text-align: center;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  border-radius: 28px;
  background: radial-gradient(80% 120% at 50% 0%, #f7f7f9 0%, #fff 70%);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -0.045em; max-width: 15ch; margin: 0 auto; }
.cta p { color: var(--ink-2); margin: 20px auto 0; max-width: 46ch; }
.cta .btn { margin-top: 36px; height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 8vw, 96px); padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; align-items: center; }
.footer-left { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; }
.footer-left .wordmark { font-size: 16px; color: var(--ink); }
.footer a { transition: color .2s ease; }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* ---------- Booking page ---------- */
.book { padding-top: clamp(48px, 7vw, 88px); }
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.book-intro { position: sticky; top: 108px; }
.book-intro h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.045em; max-width: 11ch; }
.next { margin-top: 44px; }
.next h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: nx; }
.next li { counter-increment: nx; display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next li::before { content: "0" counter(nx); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .06em; min-width: 22px; }

.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q + .q, .q + .fields, .fields + .summary { margin-top: 40px; }
.q legend { padding: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tile span {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.tile span::after {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #cfcfd5; background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tile:hover span { border-color: #cfcfd5; transform: translateY(-1px); }
.tile input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 14px 30px -20px rgba(12,12,14,.35); }
.tile input:checked + span::after { border-color: var(--ink); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--ink); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.appear { animation: appear .6s var(--ease-out) both; }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.fields { display: grid; gap: 20px; }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.field label small { font-weight: 400; color: var(--muted); font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a3a3ab; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.summary {
  padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface);
  font-size: 17px; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em;
}
.summary.is-empty { color: var(--muted); }

.calendly-wrap {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .8s var(--ease-out), opacity .6s ease .1s, margin-top .8s var(--ease-out);
}
.calendly-wrap.is-open { grid-template-rows: 1fr; opacity: 1; margin-top: 40px; }
.calendly-inner { overflow: hidden; min-height: 0; }
.consent { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.consent-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.consent-text { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.consent-text a { text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { margin-top: 18px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26262b; transform: translateY(-1px); }
.calendly-frame {
  height: 760px; min-width: 300px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: grid; place-items: center; color: var(--muted); font-size: 14px;
}
.calendly-frame > div { width: 100%; height: 100%; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 40px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 12px; line-height: 1.25; }
.legal h3 { font-size: 18px; letter-spacing: -0.015em; margin: 28px 0 8px; line-height: 1.3; }
.legal h4 { font-size: 16px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal .lang-switch { margin: -24px 0 40px; font-size: 15px; color: var(--muted); }
.legal .lang-switch a { color: var(--ink); }
.legal-note { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink) !important; font-size: 15px !important; }
.legal-lang { scroll-margin-top: 88px; }
.legal-lang [id] { scroll-margin-top: 88px; }
.legal .lang-title { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.035em; margin-top: 0; }
.legal-divider { border: 0; border-top: 1px solid var(--line); margin: 72px 0; }
.legal ul.index { columns: 2; column-gap: 32px; padding-left: 18px; }
.legal ul.index li { break-inside: avoid; margin-bottom: 4px; font-size: 15px; }
.legal ul.m-elements { list-style: none; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 10px; }
.legal ul.m-elements li { font-size: 15px; }
.legal ul.glossary li + li { margin-top: 12px; }
.legal .seal { margin-top: 32px; font-size: 13px; }
.legal .seal, .legal .seal a { color: var(--muted); }
@media (max-width: 720px) { .legal ul.index { columns: 1; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 520px; margin: 0 auto; }
  .quotes, .pricing { grid-template-columns: 1fr; }
  .pricing { max-width: 520px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .book-intro { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .work-grid, .steps { grid-template-columns: 1fr; }
  .work-grid { gap: 40px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-cta { gap: 8px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .ui-play { top: 83%; right: 8%; }
  .tiles { grid-template-columns: 1fr; }
  .tile span { min-height: 60px; }
  .calendly-frame { height: 1000px; }
}

/* ---------- Reduced motion: final, still state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ui-chart .line { stroke-dashoffset: 0; }
  .ui-chart .area, .ui-chart .dot { opacity: 1; }
  .ui-bars i { transform: none; }
  .ui-play .track i { transform: scaleX(.6); }
  .cursor { transform: none; opacity: 1; }
  .ui-toast { opacity: 1; }
  .step::after { transform: scaleX(1); }
}
