/* Shared styles for Agence Rizz multi-page site — matches home tokens */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Bricolage+Grotesque:opsz,wght@12..96,300..800&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Dovde';
  src: url('../fonts/Dovde-Black.woff2') format('woff2'),
       url('../fonts/Dovde-Black.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Dovde';
  src: url('../fonts/Dovde-Thin.woff2') format('woff2'),
       url('../fonts/Dovde-Thin.woff') format('woff');
  font-weight: 100; font-style: normal; font-display: swap;
}

:root {
  --bg: #f1ede4;
  --bg-soft: #e9e4d6;
  --ink: #0c0b09;
  --ink-2: #2a2823;
  --muted: #6b675c;
  --line: rgba(12,11,9,0.14);
  --accent: #ff5c1a;
  --accent-ink: #0c0b09;
  --display: "Instrument Serif", "Times New Roman", serif;
  --brand: "Dovde", "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { padding: 0 32px; max-width: 1440px; margin: 0 auto; }
@media (min-width: 900px) { .wrap { padding: 0 56px; } }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ─── Fixed logo (top-left) — matches home FixedLogo ─── */
.rz-fixed-logo {
  position: fixed; top: 22px; left: 26px; z-index: 90;
  display: inline-flex; align-items: flex-end; gap: 6px;
  text-decoration: none;
  transition: opacity .35s ease, transform .35s ease;
}
.rz-fixed-logo__word {
  font-family: var(--brand); font-weight: 900;
  font-size: 44px; color: var(--accent);
  line-height: 0.78; letter-spacing: -0.04em;
}
.rz-fixed-logo__badges {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; line-height: 1;
  letter-spacing: 0.02em; text-transform: lowercase;
  margin-bottom: 2px;
}
.rz-fixed-logo__badge {
  padding: 3px 5px 2px; border-radius: 2px;
}
.rz-fixed-logo__badge--accent { background: var(--accent); color: var(--accent-ink); }
.rz-fixed-logo__badge--ink    { background: var(--ink);    color: var(--bg); }
/* Logo stays visible — no fade on scroll
body.is-scrolled .rz-fixed-logo {
  opacity: 0; transform: translateY(-6px); pointer-events: none;
}
*/

/* compact back-to-top pill (replaces logo when scrolled) */
.rz-top-pill {
  position: fixed; top: 26px; left: 26px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 12px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.rz-top-pill__dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
body.is-scrolled .rz-top-pill {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

/* ─── Top nav bar (logo + centered pill + CTA) ─── */
.rz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; align-items: center;
  padding: 22px 24px;
  pointer-events: none;
  transition: padding .3s ease;
}
body.is-scrolled .rz-nav { padding: 14px 24px; }

/* Centered pill menu */
.rz-pillnav {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.18);
}
.rz-pillnav ul, .rz-pillnav__ul {
  list-style: none;
  margin: 0; padding: 0;
  display: inline-flex; align-items: center; gap: 0;
}
.rz-pillnav li {
  list-style: none;
  margin: 0; padding: 0;
  display: inline-flex;
  align-items: center;
}
.rz-pillnav li::marker { content: ''; }
/* Decorative dot separator between menu items (not before the first) */
.rz-pillnav li + li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin: 0 2px;
  opacity: 0.55;
  flex-shrink: 0;
}
.rz-pillnav a {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
}
.rz-pillnav a:hover { background: var(--ink); color: var(--bg); }
.rz-pillnav a.is-active { background: var(--ink); color: var(--bg); }

/* CTA on the right (Travaillons ensemble) */
.rz-nav__cta {
  pointer-events: auto;
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.rz-nav__cta:hover { background: var(--accent); color: var(--accent-ink); }
.rz-nav__cta__dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.rz-nav__cta:hover .rz-nav__cta__dot { background: var(--ink); color: var(--accent); transform: rotate(-45deg); }

/* Mobile: hide pill + CTA, show hamburger */
.rz-nav__btn {
  display: none;
  pointer-events: auto;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--ink);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  color: var(--ink);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
@media (max-width: 820px) {
  .rz-pillnav, .rz-nav__cta { display: none; }
  .rz-nav { justify-content: flex-end; }
  .rz-nav__btn { display: flex; }
}
.rz-nav__icon { width: 18px; height: 12px; position: relative; display: block; }
.rz-nav__bar {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; border-radius: 1px;
  transition: transform .3s ease, top .3s ease;
}
.rz-nav__bar--top { top: 0; }
.rz-nav__bar--bot { top: 10.5px; }
body.is-menu-open .rz-nav__btn { background: var(--ink); color: var(--bg); }
body.is-menu-open .rz-nav__bar--top { top: 5.25px; transform: rotate(45deg); }
body.is-menu-open .rz-nav__bar--bot { top: 5.25px; transform: rotate(-45deg); }

/* ─── Full-screen overlay menu ─── */
.rz-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  display: flex; flex-direction: column;
  padding: 120px 56px 56px;
}
body.is-menu-open .rz-overlay { opacity: 1; pointer-events: auto; }
.rz-overlay__label { color: rgba(255,255,255,0.5); margin-bottom: 40px; }
.rz-overlay__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rz-overlay__list a {
  display: block;
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--bg);
  transform: translateY(40px); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease, color .25s ease, font-style .25s ease;
}
body.is-menu-open .rz-overlay__list a { transform: translateY(0); opacity: 1; }
body.is-menu-open .rz-overlay__list li:nth-child(1) a { transition-delay: 0.10s; }
body.is-menu-open .rz-overlay__list li:nth-child(2) a { transition-delay: 0.16s; }
body.is-menu-open .rz-overlay__list li:nth-child(3) a { transition-delay: 0.22s; }
body.is-menu-open .rz-overlay__list li:nth-child(4) a { transition-delay: 0.28s; }
body.is-menu-open .rz-overlay__list li:nth-child(5) a { transition-delay: 0.34s; }
.rz-overlay__list a:hover {
  color: var(--accent);
  font-family: var(--display); font-style: italic;
}
.rz-overlay__list a.is-active { color: var(--accent); }
.rz-overlay__foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.rz-overlay__foot .mono { color: rgba(255,255,255,0.5); }

/* ─── Hero block ─── */
.page-hero {
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95; letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.page-hero h1 em {
  font-family: var(--display); font-style: italic;
  color: var(--accent);
}
.page-hero .lead {
  font-size: 20px; line-height: 1.5;
  max-width: 640px; color: var(--ink-2);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .3s ease, color .3s ease, transform .25s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arr {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: transform .25s ease, background .3s ease, color .3s ease;
}
.btn--accent .arr { background: var(--accent-ink); color: var(--accent); }
.btn:hover .arr { transform: rotate(-45deg); background: var(--bg); color: var(--ink); }
.btn--accent:hover .arr { background: var(--bg); color: var(--ink); }

/* ─── Footer ─── */
.foot {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot__row {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}

/* ─── Services index — bento domino grid (edge-to-edge) ─── */
.svc-section {
  background: var(--ink);
  position: relative;
  padding: 0;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .svc-card { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 240px; }
  .svc-card[data-svc="07"] { min-height: 380px !important; }
}

.svc-card {
  background: var(--bg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, background .3s ease, color .3s ease, z-index 0s linear .45s;
  position: relative;
  overflow: hidden;
  /* domino entry — clean fall, no leftover rotation */
  opacity: 0;
  animation: svc-domino .65s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes svc-domino {
  0%   { opacity: 0; transform: translateY(48px); }
  100% { opacity: 1; transform: translateY(0); }
}
.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -20px rgba(12,11,9,0.45);
  z-index: 2;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, z-index 0s;
}
.svc-card:hover .svc-card__arrow { transform: rotate(-45deg); }

/* bento layout — 3 rows, varied widths by importance, all aligned cleanly */
.svc-card[data-svc="07"] { grid-column: 1 / 8;  grid-row: 1 / 3;  animation-delay: 0.05s; }   /* huge L — signature, spans 2 rows */
.svc-card[data-svc="01"] { grid-column: 8 / 13; grid-row: 1 / 2;  animation-delay: 0.14s; }   /* top-right */
.svc-card[data-svc="02"] { grid-column: 8 / 13; grid-row: 2 / 3;  animation-delay: 0.23s; }   /* mid-right */
.svc-card[data-svc="03"] { grid-column: 1 / 5;  grid-row: 3 / 4;  animation-delay: 0.32s; }   /* bottom-1 */
.svc-card[data-svc="04"] { grid-column: 5 / 9;  grid-row: 3 / 4;  animation-delay: 0.40s; }   /* bottom-2 */
.svc-card[data-svc="05"] { grid-column: 9 / 13; grid-row: 3 / 4;  animation-delay: 0.48s; }   /* bottom-3 */
.svc-card[data-svc="06"] { grid-column: 1 / 13; grid-row: 4 / 5;  animation-delay: 0.56s; min-height: 200px; }  /* full-width band */

/* signature card content scaling */
.svc-card[data-svc="07"] {
  padding: 52px;
  justify-content: space-between;
}
.svc-card[data-svc="07"] .svc-card__name {
  font-size: clamp(48px, 5.4vw, 84px);
  letter-spacing: -0.035em; line-height: 0.95;
}
.svc-card[data-svc="07"] .svc-card__tag  { font-size: 26px; }
.svc-card[data-svc="07"] .svc-card__items { font-size: 16px; gap: 10px; }
.svc-card[data-svc="07"] .svc-card__arrow { width: 56px; height: 56px; }

.svc-card[data-svc="06"] {
  flex-direction: row; align-items: center;
  gap: 48px; padding: 32px 52px;
  flex-wrap: wrap;
}
.svc-card[data-svc="06"] > div { flex: 0 0 auto; }
.svc-card[data-svc="06"] .svc-card__name { font-size: clamp(28px, 3vw, 44px); margin-top: 0; }
.svc-card[data-svc="06"] .svc-card__items { margin-top: 0; flex-direction: row; gap: 24px; }
.svc-card[data-svc="06"] .svc-card__items li::before { content: ""; margin: 0; }
.svc-card[data-svc="06"] .svc-card__items li {
  padding-left: 14px; position: relative; opacity: 0.75;
}
.svc-card[data-svc="06"] .svc-card__items li::after {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; transform: translateY(-50%); opacity: 0.5;
}

/* ── tone variants — domino chain (DARK → light → DARK → light → DARK → ACCENT → DARK) ── */
.svc-card--ink {
  background: var(--ink); color: var(--bg);
}
.svc-card--ink .svc-card__tag { color: var(--accent); }
.svc-card--ink .svc-card__items { color: rgba(244,240,230,0.7); }
.svc-card--ink .svc-card__items li::before { color: var(--accent); opacity: 1; }
.svc-card--ink .svc-card__arrow { background: rgba(255,255,255,0.08); color: var(--bg); }

.svc-card--ink-soft {
  background: var(--ink-2); color: var(--bg);
}
.svc-card--ink-soft .svc-card__tag { color: var(--accent); }
.svc-card--ink-soft .svc-card__items { color: rgba(244,240,230,0.7); }
.svc-card--ink-soft .svc-card__items li::before { color: var(--accent); opacity: 1; }
.svc-card--ink-soft .svc-card__arrow { background: rgba(255,255,255,0.08); color: var(--bg); }

.svc-card--moss {
  background: var(--moss); color: var(--bg);
}
.svc-card--moss .svc-card__tag { color: var(--accent); font-style: italic; }
.svc-card--moss .svc-card__items { color: rgba(244,240,230,0.72); }
.svc-card--moss .svc-card__items li::before { color: var(--accent); opacity: 1; }
.svc-card--moss .svc-card__arrow { background: rgba(255,255,255,0.08); color: var(--bg); }

.svc-card--accent {
  background: var(--accent); color: var(--accent-ink);
}
.svc-card--accent .svc-card__tag { color: var(--ink); font-style: italic; }
.svc-card--accent .svc-card__items { color: rgba(12,11,9,0.75); }
.svc-card--accent .svc-card__items li::before { color: var(--ink); opacity: 1; }
.svc-card--accent .svc-card__arrow { background: var(--ink); color: var(--accent); }

.svc-card__id {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; opacity: 0.55;
}
.svc-card__name {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 8px;
}
.svc-card__tag {
  font-family: var(--display); font-style: italic;
  font-size: 18px; color: var(--accent);
  margin-top: 4px;
}
.svc-card__items {
  margin-top: auto; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; opacity: 0.85;
}
.svc-card__items li::before { content: "→ "; opacity: 0.5; }
.svc-card__arrow {
  position: absolute; top: 28px; right: 28px;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .svc-card { animation: none; opacity: 1; transform: none; }
}

/* ─── Service detail ─── */
.svc-detail__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 80px 0;
  align-items: start;
}
@media (max-width: 900px) { .svc-detail__intro { grid-template-columns: 1fr; gap: 32px; } }
.svc-detail__lead { font-size: 22px; line-height: 1.5; color: var(--ink-2); }
.svc-detail__lead p + p { margin-top: 18px; }
.svc-detail__side {
  background: var(--ink); color: var(--bg);
  padding: 32px;
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 24px;
}
.svc-detail__side h3 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.6; font-weight: 400;
}
.svc-detail__side ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc-detail__side li {
  padding: 14px 0;
  border-top: 1px solid rgba(246,244,239,0.14);
  font-size: 15px;
  display: flex; gap: 12px; align-items: baseline;
}
.svc-detail__side li::before {
  content: "▸"; color: var(--accent); font-size: 11px;
}

.svc-block {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.svc-block__head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 40px;
}
.svc-block__num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.svc-block h2 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
}
.svc-block h2 em { font-family: var(--display); font-style: italic; color: var(--accent); }

.svc-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.svc-step {
  background: var(--bg);
  padding: 28px;
  min-height: 220px;
  display: flex; flex-direction: column;
}
.svc-step__num {
  font-family: var(--display); font-style: italic;
  font-size: 56px; color: var(--accent);
  line-height: 1; margin-bottom: 18px;
}
.svc-step h4 {
  font-size: 17px; font-weight: 600;
  margin-bottom: 10px;
}
.svc-step p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.svc-pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.svc-tier {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg);
  transition: border-color .25s ease, transform .25s ease;
}
.svc-tier:hover { border-color: var(--ink); transform: translateY(-4px); }
.svc-tier__name { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--accent); }
.svc-tier__price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.svc-tier__price span { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.svc-tier__list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.svc-tier__list li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

.svc-cta {
  margin-top: 80px;
  padding: 80px 32px;
  background: var(--ink); color: var(--bg);
  border-radius: 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.svc-cta h2 {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1; letter-spacing: -0.03em;
  max-width: 800px;
}
.svc-cta h2 em { font-family: var(--display); font-style: italic; color: var(--accent); }


/* ─── Showcase sections (service detail pages) ─── */
.svc-showcase { padding: 80px 0; border-top: 1px solid var(--line); }

/* Phone row */
.svc-phone-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; align-items: end; }
.svc-phone {
  background: var(--ink); border-radius: 38px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(12,11,9,.45);
  aspect-ratio: 9/19; position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.svc-phone:hover { transform: rotate(0) translateY(-4px); }
.svc-phone::before {
  content: ""; position:absolute; top:18px; left:50%; transform:translateX(-50%);
  width:30%; height:20px; background:var(--ink); border-radius:14px; z-index:2;
}
.svc-phone image-slot { width: 100%; height: 100%; display:block; border-radius: 28px; overflow: hidden; background: var(--bg-soft); }
.svc-phone__cap { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Browser stack */
.svc-browser-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px; }
.svc-browser {
  background: var(--bg); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(12,11,9,.25);
  transition: transform .35s ease;
}
.svc-browser:hover { transform: translateY(-4px); }
.svc-browser__bar {
  background: var(--bg-soft); padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.svc-browser__dots { display:flex; gap:6px; }
.svc-browser__dots span { width:10px; height:10px; border-radius:50%; background:rgba(12,11,9,.18); }
.svc-browser__url {
  flex: 1;
  background: var(--bg); padding: 5px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.svc-browser image-slot { display:block; aspect-ratio: 16/10; width: 100%; background: var(--bg-soft); }

/* Logo wall */
.svc-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.svc-logo {
  background: var(--bg); border: 1px solid var(--line);
  aspect-ratio: 1/1; padding: 18px; transition: background .25s ease;
  display: flex; align-items: center; justify-content: center;
}
.svc-logo:hover { background: var(--bg-soft); }
.svc-logo image-slot { width: 100%; height: 100%; display: block; }

/* Screen / account card */
.svc-screen-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.svc-screen {
  background: var(--bg); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s ease;
}
.svc-screen:hover { transform: translateY(-4px); }
.svc-screen__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.svc-screen__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.svc-screen image-slot { display:block; aspect-ratio: 4/3; width: 100%; background: var(--bg-soft); }

/* CRM workflow */
.svc-flow {
  background: var(--ink); color: var(--bg);
  padding: 40px;
  border-radius: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  position: relative;
}
.svc-flow__node {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
}
.svc-flow__node .step { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; }
.svc-flow__node .name { font-family: var(--sans); font-size: 20px; font-weight: 500; line-height: 1.15; }
.svc-flow__node .desc { font-size: 13px; opacity: 0.7; line-height: 1.5; margin-top: auto; }
.svc-flow__node--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc-flow__node--accent .step { color: var(--ink); }
.svc-flow__node--accent .desc { color: rgba(12,11,9,0.7); }

/* SEO ranks */
.svc-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.svc-rank {
  background: var(--bg); border-radius: 14px; padding: 24px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.svc-rank__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.svc-rank__pos { display: flex; align-items: baseline; gap: 8px; }
.svc-rank__pos .num { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 64px; line-height: 1; }
.svc-rank__pos .lbl { font-size: 13px; color: var(--muted); }
.svc-rank__query { font-size: 15px; font-style: italic; color: var(--ink-2); }
.svc-rank__bar { height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.svc-rank__bar > span { display:block; height:100%; background: var(--accent); border-radius: 999px; }

/* Lead Focus stack */
.svc-leadflow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.svc-leadflow__lvl {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.svc-leadflow__lvl--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-leadflow__lvl--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.svc-leadflow__lvl .step { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.svc-leadflow__lvl .ttl { font-family: var(--sans); font-size: 22px; font-weight: 500; line-height: 1.15; }
.svc-leadflow__lvl .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.svc-leadflow__lvl .chip { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; }
.svc-leadflow__lvl .chip--out { border: 1px solid currentColor; }
.svc-leadflow__lvl--dark .chip--out { border-color: rgba(255,255,255,0.3); }


/* ─── Site-wide footer (mirrors home page) ────────────────────────── */
.rz-foot {
  padding: 80px 0 36px;
  border-top: 1px solid var(--line);
  margin-top: 120px;
}
.rz-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .rz-foot__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .rz-foot__grid { grid-template-columns: 1fr; }
}
.rz-foot__logo {
  display: block;
  height: 112px;
  width: auto;
  margin-bottom: 26px;
  margin-left: -6px;
}
.rz-foot__pitch {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 320px;
}
.rz-foot__pitch em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
}
.rz-foot__col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
  font-weight: 400;
}
.rz-foot__col ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.rz-foot__col a, .rz-foot__col .v {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s ease;
}
.rz-foot__col a:hover { color: var(--ink); }
.rz-foot__col .v {
  line-height: 1.55;
}
.rz-foot__col .v--strong { color: var(--ink); }
.rz-foot__col .coord {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--muted);
  margin-top: 14px;
}
.rz-foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; margin-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 16px;
}
.rz-foot__bottom p {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}


/* ============================================================================
   FOOTER (uniform on all pages — moved from rizz-home.css)
   ============================================================================ */
.rz-footer {
  padding: 80px 0 36px;
  border-top: 1px solid var(--line);
}
.rz-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: start;
}
.rz-footer__logo {
  display: block;
  height: 112px;
  width: auto;
  margin-bottom: 26px;
  margin-left: -6px;
}
.rz-footer__pitch {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 320px;
}
.rz-footer__pitch em { font-family: var(--display); font-style: italic; color: var(--accent); }
.rz-footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 400;
}
.rz-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0; padding: 0;
}
.rz-footer__col li, .rz-footer__col a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .25s ease;
}
.rz-footer__col li { list-style: none; }
.rz-footer__col a:hover { color: var(--ink); }
.rz-footer__addr {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.rz-footer__geo {
  color: var(--muted);
  margin-top: 14px;
  font-size: 11px;
  font-family: var(--mono);
}
.rz-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
[data-theme="dark"] .rz-footer__logo { content: url('../images/rizz-logo-dark.png'); }
@media (max-width: 900px) {
  .rz-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .rz-footer__grid { grid-template-columns: 1fr; }
}


/* ============================================================================
   MOBILE OPTIMIZATIONS (≤ 820px)
   ============================================================================ */
@media (max-width: 820px) {

  /* 1. Header NOT sticky on mobile — scrolls away with the page */
  .rz-fixed-logo {
    position: absolute;
    top: 18px; left: 18px;
  }
  .rz-fixed-logo__word { font-size: 36px; }

  .rz-nav {
    position: absolute;
    padding: 18px 16px;
  }
  body.is-scrolled .rz-nav { padding: 18px 16px; }

  /* Mobile-only back-to-top button (appears on scroll) */
  .rz-mobile-totop {
    position: fixed;
    bottom: 18px; right: 18px;
    z-index: 95;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ink); color: var(--accent);
    border: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  body.is-scrolled .rz-mobile-totop {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .rz-mobile-totop:hover { background: var(--accent); color: var(--ink); }
  .rz-mobile-totop svg { width: 18px; height: 18px; }
}

/* Hide the mobile totop button on desktop */
@media (min-width: 821px) {
  .rz-mobile-totop { display: none !important; }
}
