/* Forge Studio — design system
   Layout + motion modelled on broworks.net, Forge colours, light only. */

:root {
  /* Surfaces */
  --paper:   #ffffff;
  --bg:      #f3eee4;   /* warm cream — alt sections */
  --sand:    #eae4d6;   /* results block */
  --card:    #f8f4ea;   /* cards on white */
  --hero:    #e9c8b3;   /* hero band (ember tint) */
  --tint:    #f4dccb;   /* pills, badges */

  /* Ink */
  --ink:     #16130d;
  --ink-2:   #3d3830;
  --ink-3:   #2a2620;   /* raised surface on dark */
  --mute:    #7a7568;
  --line:    #e2dbcc;

  /* Accent */
  --accent:   #b04a22;  /* burnt sienna */
  --accent-2: #8a3717;

  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --container: 1360px;
  --gutter: 40px;
  --r-card: 24px;
  --r-btn: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Hide untranslated strings until main.js applies the language (no layout shift). */
html.lang-loading [data-i18n],
html.lang-loading [data-i18n-html] { visibility: hidden; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.01em;
}
.kicker { display: block; font-size: 16px; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 20px; }
.lead { font-size: 20px; line-height: 1.45; }

/* ---------- Buttons (directional fill added by motion.js) ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-fill: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 36px;
  border: 0; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 18px; line-height: 1.3; white-space: nowrap;
  transition: color .4s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn .btn-fill {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: 120%; aspect-ratio: 1;
  border-radius: 50%; background: var(--btn-fill); pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .6s var(--ease);
}
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-fill: var(--hero); }
.btn-hero  { --btn-bg: var(--hero); --btn-fg: var(--ink); --btn-fill: var(--tint); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 8px;
  font-size: 15px; line-height: 1.4;
  background: var(--tint); color: var(--ink);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; z-index: 50; top: 16px; left: 0; right: 0;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(100%, 952px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 68px; padding: 0 16px;
  background: #fff; border: 1px solid rgba(22,19,13,.08); border-radius: 24px;
  box-shadow: 0 8px 30px rgba(22,19,13,.05);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 32px; }
.nav-right { justify-content: flex-end; gap: 20px; }
.nav-left a, .nav-right > a:not(.nav-cta) { font-size: 18px; transition: color .2s; }
.nav-left a:hover, .nav-left a.active { color: var(--accent); }
.brand img { height: 34px; width: auto; }
.nav-cta {
  padding: 10px 22px; border-radius: 16px; background: var(--tint); font-size: 18px;
  transition: background .3s;
}
.nav-cta:hover { background: var(--hero); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; justify-self: end; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 6px; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: var(--mute); }
.lang-switch button { border: 0; background: none; padding: 4px 6px; border-radius: 6px; color: inherit; }
.lang-switch button.active { color: var(--ink); font-weight: 600; }

/* Announcement strip under the nav */
.strip {
  width: min(100% - 32px, 952px); margin: 0 auto;
  overflow: hidden; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-size: 16px; text-transform: uppercase; line-height: 24px;
}
.strip a { display: block; }

/* ---------- Marquee (track is duplicated by motion.js) ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-speed, 40s) linear infinite; }
.marquee-track > * { flex: none; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track.pausable { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip .marquee-track > span { padding: 0 24px; }
.strip .marquee-track > span::after { content: "✦"; margin-left: 48px; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.bg-sand  { background: var(--sand); }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 72px; }
.row-head p { font-size: 20px; max-width: 760px; margin-top: 24px; }
.center-head { text-align: center; max-width: 900px; margin: 0 auto 72px; }
.center-head p { font-size: 20px; margin-top: 24px; }
.head-narrow { max-width: 680px; margin-bottom: 72px; }

/* ---------- Home hero + wheel ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero);
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: 98px;
}
.hero-copy { text-align: center; padding: 60px var(--gutter) 0; }
.hero-copy .lead { max-width: 780px; margin: 22px auto 40px; }
.wheel-wrap { position: relative; flex: 1; min-height: 430px; }
.wheel {
  --n: 11; --r: 1500px; --w: 340px; --h: 250px;
  position: absolute; left: calc(50% - var(--w) / 2); top: 56px;
  width: var(--w); height: var(--h);
  display: grid;
  transform-origin: 50% var(--r);
  animation: wheel-spin 140s linear infinite, wheel-intro 1.6s var(--ease) both;
}
.wheel-card {
  grid-area: 1 / 1;
  transform-origin: 50% var(--r);
  transform: rotate(calc(var(--i) * 360deg / var(--n)));
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(22,19,13,.18);
  background: var(--ink);
}
.wheel-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.wheel-card:hover img { transform: scale(1.05); }
@keyframes wheel-spin { to { transform: rotate(-360deg); } }
@keyframes wheel-intro { from { rotate: 40deg; opacity: 0; } to { rotate: 0deg; opacity: 1; } }

/* Pinned hero: content after it slides over (desktop only) */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .hero-stack > .hero { position: sticky; top: min(0px, calc(100vh - 860px)); height: max(100vh, 860px); }
  .hero-stack > :not(.hero) { position: relative; z-index: 1; }
}

/* Subpage hero */
.page-hero { background: var(--hero); padding: 98px 0 120px; text-align: center; }
.page-hero.bg-cream { background: var(--bg); }
.page-hero .container { padding-top: 64px; }
.page-hero h1 { max-width: 980px; margin: 0 auto; }
.page-hero p { max-width: 760px; margin: 24px auto 0; font-size: 20px; }

/* ---------- Logos (template names) ---------- */
.logos { padding: 40px 0; background: var(--paper); }
.logos .marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos .marquee-track { gap: 80px; padding-right: 80px; --marquee-speed: 50s; }
.logo-word { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.logo-word:nth-child(3n+2) { font-family: var(--serif); font-style: italic; }
.logo-word:nth-child(3n) { text-transform: uppercase; letter-spacing: .08em; font-size: 20px; }

/* ---------- Service feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-grid > :nth-child(odd) { margin-top: 48px; }
.feature .media { aspect-ratio: 2 / 1.02; margin-bottom: 40px; }
.feature h3 { margin-bottom: 24px; max-width: 520px; }
.feature p { font-size: 18px; margin-bottom: 32px; max-width: 520px; }
.feature .pill { margin-bottom: 20px; }

/* Media frame used by parallax */
.media { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -12%; height: 124%; will-change: transform; }

/* ---------- Results / odometer ---------- */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; color: var(--accent-2); }
.results-grid h2 { margin-bottom: 32px; }
.results-grid p { font-size: 20px; max-width: 470px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.stat b {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(3.5rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -.02em;
}
.stat > span { display: block; font-size: 20px; margin-top: 8px; max-width: 240px; }
.odo-digit { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: top; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
.odo-strip > span { height: 1.1em; line-height: 1.1em; }

/* ---------- Template cards marquee (testimonial style) ---------- */
.quotes { display: grid; gap: 24px; }
.quotes .marquee-track { gap: 24px; padding-right: 24px; --marquee-speed: 90s; }
.quote-card {
  width: 600px; padding: 32px; border-radius: var(--r-card); background: var(--card);
  display: flex; flex-direction: column; gap: 24px; transition: background .3s;
}
.quote-card:hover { background: var(--sand); }
.quote-card header { display: flex; align-items: center; gap: 18px; }
.quote-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: top left; }
.quote-card b { display: block; font-size: 22px; letter-spacing: -.01em; }
.quote-card small { font-size: 16px; color: var(--ink-2); }
.quote-card p { font-size: 18px; color: var(--ink-2); }

/* ---------- Case cards ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cases-col { display: grid; gap: 32px; }
.case {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-card);
  height: var(--h, 400px); background: var(--ink); color: #fff;
}
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case img[data-parallax] { top: -12%; height: 124%; }
.case:hover img { transform: scale(1.04); }
.case::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22,19,13,.55), rgba(22,19,13,0) 40%, rgba(22,19,13,0) 65%, rgba(22,19,13,.55));
}
.case h3 {
  position: absolute; z-index: 2; left: 36px; top: 32px; right: 36px;
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05;
}
.case .tags { position: absolute; z-index: 2; left: 24px; bottom: 24px; right: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 10px; border-radius: 10px; font-size: 16px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}
.case.thumb img { object-position: top; }

/* ---------- Image trail section ---------- */
.trail-sec { position: relative; overflow: hidden; background: var(--bg); min-height: 1000px; display: flex; align-items: center; }
.trail-sec .center-head { position: relative; z-index: 2; margin-bottom: 0; }
.trail-btn { margin-top: 40px; }
.trail-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail-card {
  position: absolute; width: 260px; aspect-ratio: 4 / 3; margin: -98px 0 0 -130px;
  border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(22,19,13,.2);
  transform: rotate(var(--rot)) scale(0); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.trail-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.trail-card.in  { transform: rotate(var(--rot)) scale(1); opacity: 1; }
.trail-card.out { transform: rotate(calc(var(--rot) * 2)) scale(.6) translateY(80px); opacity: 0; transition-duration: .8s; }

/* Arc transitions (paths drawn by motion.js) */
.arc { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.arc svg { width: 100%; height: 100%; }
.arc path { fill: currentColor; }

/* ---------- Process bento (glass cards) ---------- */
.bento { display: grid; grid-template-columns: 1.08fr .5fr .5fr; grid-template-rows: 400px 460px; gap: 32px; }
.bento > :first-child { grid-row: 1 / 3; }
.bento > :last-child { grid-column: 2 / 4; }
.glass-card { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--ink-2); color: #fff; }
.glass-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glass-card > img[data-parallax] { top: -12%; height: 124%; }
.glass-panel {
  position: absolute; z-index: 1; left: 12px; right: 12px; top: 12px;
  padding: 28px; border-radius: 18px;
  background: rgba(40,34,26,.28); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.glass-panel .num { display: block; font-size: 15px; opacity: .8; margin-bottom: 10px; }
.glass-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); margin-bottom: 16px; }
.glass-panel p { font-size: 17px; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--ink); color: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.faq-col { display: grid; gap: 16px; }
.faq-item { border-radius: var(--r-card); background: var(--ink-3); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 20px 20px 24px; border: 0; background: none; color: #fff; text-align: left;
  font-size: 21px; line-height: 1.25;
}
.faq-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--hero); color: var(--ink);
  display: grid; place-items: center; transition: transform .4s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; font-size: 18px; color: rgba(255,255,255,.75); }

/* ---------- Pricing ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--card); }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 10px; font-size: 16px; transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
[role="tabpanel"][hidden] { display: none; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-card); background: var(--card); }
.tier header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tier h3 { font-size: 26px; }
.tier .tag-line { font-size: 17px; color: var(--ink-2); min-height: 52px; }
.tier .price { font-size: 52px; font-weight: 700; letter-spacing: -.03em; margin: 28px 0 0; }
.tier .unit { font-size: 15px; color: var(--mute); margin-bottom: 28px; }
.tier ul { display: grid; gap: 12px; margin-bottom: 32px; flex: 1; }
.tier li { position: relative; padding-left: 30px; font-size: 17px; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3717' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tier.featured { background: var(--ink); color: #fff; }
.tier.featured .tag-line, .tier.featured .unit { color: rgba(255,255,255,.7); }
.tier.featured .pill { background: var(--hero); }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.addon { padding: 32px; border-radius: var(--r-card); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.addon .letter { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 40px; color: var(--accent); line-height: 1; }
.addon h3 { font-size: 24px; }
.addon p { font-size: 17px; color: var(--ink-2); flex: 1; }
.addon strong { font-weight: 600; }

/* ---------- Templates page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip { border: 0; padding: 10px 18px; border-radius: 12px; background: var(--card); font-size: 16px; transition: background .3s, color .3s; }
.chip:hover { background: var(--sand); }
.chip.active { background: var(--ink); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tpl-grid .case { height: auto; aspect-ratio: 880 / 608; }

/* ---------- Contact ---------- */
.contact-hero { background: var(--bg); padding: 98px 0 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-top: 64px; }
.contact-grid > div > p { font-size: 20px; margin-top: 28px; max-width: 560px; }
.form-card { padding: 32px; border-radius: var(--r-card); border: 1px solid var(--ink-2); background: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 10px;
  background: var(--card); font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-msg { margin-top: 16px; font-size: 16px; min-height: 1.5em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 32px; border-radius: var(--r-card); background: var(--card); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.step .num { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 48px; color: var(--accent); line-height: 1; }
.step p { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }

/* ---------- End: CTA + footer ---------- */
.site-end { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.site-end > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.site-end::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,19,13,.2), rgba(22,19,13,.75)); }
.end-cta { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; padding: 160px 0 120px; }
.end-cta p { font-size: 20px; margin-top: 28px; max-width: 560px; color: rgba(255,255,255,.85); }
.end-cta .actions { display: grid; gap: 16px; justify-items: end; }
.end-cta .actions .btn { min-width: 260px; }
.site-end.no-cta .site-footer { margin-top: 24px; }
.site-footer {
  position: relative; z-index: 1; margin: 0 24px 24px; padding: 56px 48px 32px;
  border-radius: 32px; background: #fff; color: var(--ink);
}
.footer-top { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.footer-top > img { height: 40px; width: auto; }
.footer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.footer-cards > div { padding: 20px 24px; border-radius: 20px; background: var(--card); font-size: 16px; }
.footer-cards b { display: block; font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 15px; color: var(--mute); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .wheel, .marquee-track { animation: none; }
  .btn .btn-fill, .odo-strip { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --gutter: 24px; }
  .section { padding: 88px 0; }
  .nav { grid-template-columns: 1fr auto; padding: 0 8px 0 18px; }
  .nav-toggle { display: block; }
  .nav-left, .nav-right { display: none; }
  .nav.open { row-gap: 8px; padding-bottom: 16px; }
  .nav.open .nav-left, .nav.open .nav-right {
    display: flex; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 16px;
  }
  .nav.open .nav-left { order: 3; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav.open .nav-right { order: 4; flex-direction: row; justify-content: space-between; width: 100%; }
  .brand { order: 1; }
  .nav-toggle { order: 2; }
  .row-head, .results-grid, .contact-grid, .end-cta, .footer-top { grid-template-columns: 1fr; display: grid; }
  .row-head { align-items: start; }
  .feature-grid, .cases, .tpl-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-grid > :nth-child(odd) { margin-top: 0; }
  .tiers, .addons { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento > * { min-height: 420px; }
  .bento > :first-child, .bento > :last-child { grid-row: auto; grid-column: 1 / -1; }
  .trail-sec { min-height: 0; padding: 120px 0; }
  .end-cta .actions { justify-items: start; }
  .wheel { --r: 1100px; --w: 260px; --h: 190px; }
  .wheel-wrap { min-height: 340px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .quote-card { width: 82vw; }
  .tiers, .addons, .steps, .form-row, .footer-cards { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1; }
  .site-footer { margin: 0 12px 12px; padding: 40px 24px 24px; }
  .footer-bottom { flex-direction: column; }
  .btn { padding: 18px 28px; }
  .case { --h: 340px !important; }
  .stats { gap: 32px 24px; }
}
