/* ============================================================
   ADVISORY v5 — product-led (A) + technical drawings (B)
   Built from the reference study (agentic-designer-work/docs/reference-study.html):
   - one grotesk for headings (the brand's own Geologica), Inter for text
   - emphasis by a grey continuation, never by coloured italics
   - visuals show the domain: a living roadmap, and FIG drawings
   Loaded after revamp.css. Earlier version: git tag advisory-v4-petal.
   ============================================================ */

html.rv {
  --rv-sans: "Inter", system-ui, sans-serif;
  --rv-serif: "Geologica", "Inter", sans-serif;     /* kept name, now the heading grotesk */
  --rv-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-heading: "Geologica", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-label: "Inter", sans-serif;
  --font-button: "Geologica", sans-serif;

  --adv-ink: #111827;
  --adv-ink2: #4b5563;
  --adv-ink3: #9ca3af;
  --adv-line: #e5e7eb;
  --adv-night: #0e1020;          /* the dark band, a deeper ink */
  --adv-night-line: rgba(255, 255, 255, .1);
}
html.rv body { font-family: "Inter", system-ui, sans-serif; }
html.rv .btn.btn .btn__label { font-family: "Geologica", sans-serif; font-weight: 600; letter-spacing: -.005em; }

/* ---------- type ---------- */
.rv .advH1 {
  margin: 20px 0 22px; font: 600 clamp(42px, 4.9vw, 70px)/1.03 "Geologica", sans-serif;
  letter-spacing: -.035em; color: var(--adv-ink); text-wrap: balance; max-width: 11ch;
}
.rv .advH2 {
  margin: 0; font: 600 clamp(30px, 3vw, 44px)/1.1 "Geologica", sans-serif;
  letter-spacing: -.03em; color: var(--adv-ink); text-wrap: balance;
}
.rv .advH2 span, .rv .advClose__line span { color: var(--adv-ink3); }
.rv .advH2--inv { color: #fff; }
.rv .advLead { margin: 0; max-width: 520px; font: 400 clamp(17px, 1.3vw, 19px)/1.6 "Inter", sans-serif; color: var(--adv-ink2); }
.rv .advBody { margin: 24px 0 0; max-width: 520px; font: 400 17px/1.65 "Inter", sans-serif; color: var(--adv-ink2); }
.rv .advCrumb { margin: 0; display: flex; gap: 8px; font: 500 14px/1 "Inter", sans-serif; color: var(--adv-ink3); }
.rv .advCrumb a { color: var(--adv-ink2); text-decoration: none; }
.rv .advCrumb a:hover { color: var(--rv-brand); }

/* ---------- hero ---------- */
.rv .advHero { padding: calc(80px + clamp(56px, 7vw, 104px)) 0 0; background: #fff; }
.rv .advHero__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.rv .advHero__copy { grid-column: 1 / span 5; }
.rv .advHero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.rv .advTrust { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; margin-top: clamp(72px, 8vw, 112px); padding: 28px 0 clamp(56px, 6vw, 80px); border-top: 1px solid var(--adv-line); font: 500 14px/1 "Inter", sans-serif; color: var(--adv-ink3); }
.rv .advTrust img { height: 26px; width: auto; filter: grayscale(1); opacity: .6; mix-blend-mode: multiply; transition: filter .3s, opacity .3s; }
.rv .advTrust img:hover { filter: none; opacity: 1; }

/* ---------- the living roadmap (A) ---------- */
.rv .advPlan {
  grid-column: 7 / span 6; margin: 0; position: relative;
  background: #fff; border: 1px solid var(--adv-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 30px 60px -30px rgba(17, 24, 39, .22);
  font-family: "Inter", sans-serif;
}
.rv .advPlan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 16px; border-bottom: 1px solid var(--adv-line); }
.rv .advPlan__title { margin: 0; font: 600 15px/1.3 "Geologica", sans-serif; color: var(--adv-ink); letter-spacing: -.01em; }
.rv .advPlan__sub { margin: 4px 0 0; font-size: 12.5px; color: var(--adv-ink3); }
.rv .advPlan__live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--color-surface-brand-secondary-subtle); color: #0f766e; font: 500 12px/1 "Inter", sans-serif; }
.rv .advPlan__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--rv-teal); box-shadow: 0 0 0 0 rgba(41, 204, 178, .5); animation: advLive 2s ease-out infinite; }
@keyframes advLive { 0% { box-shadow: 0 0 0 0 rgba(41, 204, 178, .55); } 100% { box-shadow: 0 0 0 7px rgba(41, 204, 178, 0); } }

.rv .advPlan__body { --name: 196px; position: relative; padding: 4px 20px 18px; }
.rv .advPlan__scale { display: grid; grid-template-columns: var(--name) repeat(4, 1fr); height: 34px; align-items: center; font: 500 11.5px/1 "Inter", sans-serif; color: var(--adv-ink3); }
.rv .advPlan__scale span { padding-left: 8px; border-left: 1px solid var(--adv-line); height: 100%; display: flex; align-items: center; }
.rv .advPlan__scale span:first-child { border: 0; }
.rv .advPlan__rows { list-style: none; margin: 0; padding: 0; position: relative; }
.rv .advPlan__rows::before { /* quarter grid lines behind the bars */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--name); right: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--adv-line) 1px, transparent 1px) 0 0 / 25% 100%;
}
.rv .advPlan__row { position: relative; display: grid; grid-template-columns: var(--name) 1fr; align-items: center; min-height: 56px; border-top: 1px solid #f1f2f5; transition: background .25s; }
.rv .advPlan__row:hover { background: #fafafb; }
.rv .advPlan__name { padding-right: 12px; }
.rv .advPlan__name b { display: block; font: 600 13.5px/1.25 "Inter", sans-serif; color: var(--adv-ink); }
.rv .advPlan__name small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--adv-ink3); }
.rv .advPlan__lane { position: relative; height: 56px; }
.rv .advPlan__bar {
  position: absolute; top: 50%; height: 22px; margin-top: -11px; border-radius: 6px;
  left: calc(var(--s) * 100%); width: calc((var(--e) - var(--s)) * 100%);
  background: #f3f4f6; box-shadow: inset 0 0 0 1px #e5e7eb; overflow: hidden;
}
.rv .advPlan__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--rv-brand); border-radius: inherit; }
.rv .advPlan__row.is-done .advPlan__fill { background: var(--rv-teal); }
.rv .advPlan__row.is-core .advPlan__bar { background: var(--adv-ink); box-shadow: none; }
.rv .advPlan__row.is-core .advPlan__fill { background: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 10px, rgba(255,255,255,.08) 10px 11px); width: 100%; animation: advTick 1.6s linear infinite; }
@keyframes advTick { to { background-position: 11px 0; } }
/* status sits just after the bar (or just before it when the bar ends late), never on top of it */
.rv .advPlan__state {
  position: absolute; top: 50%; transform: translateY(-50%); left: calc(var(--e) * 100% + 8px);
  font: 500 11.5px/1 "Inter", sans-serif; font-style: normal; color: var(--adv-ink3); white-space: nowrap; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.rv .advPlan__row.is-flip .advPlan__state { left: auto; right: calc((1 - var(--s)) * 100% + 8px); }
.rv .advPlan__row.is-active .advPlan__state { color: var(--rv-brand); }
.rv .advPlan__row.is-done .advPlan__state { color: #0f766e; }
.rv .advPlan__row.is-core .advPlan__state { left: 10px; right: auto; color: #fff; }
.rv .advPlan__marks { position: relative; height: 34px; margin-left: var(--name); }
.rv .advPlan__mark { position: absolute; top: 9px; left: calc(var(--at) * 100%); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font: 500 11.5px/1 "Inter", sans-serif; color: var(--adv-ink3); white-space: nowrap; transition: color .3s; }
.rv .advPlan__mark:last-child { transform: translateX(-100%); }
.rv .advPlan__mark i { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--adv-ink3); background: #fff; transition: background .3s, border-color .3s; }
.rv .advPlan__mark.is-passed { color: var(--adv-ink); }
.rv .advPlan__mark.is-passed i { background: var(--rv-brand); border-color: var(--rv-brand); }
.rv .advPlan__now {
  position: absolute; top: 4px; bottom: 18px; width: 0; pointer-events: none;
  left: calc(20px + var(--name) + (100% - 40px - var(--name)) * var(--now, .1));
  border-left: 1.5px solid var(--rv-brand);
}
.rv .advPlan__now span { position: absolute; top: 6px; left: 0; transform: translateX(-50%); padding: 4px 7px; border-radius: 6px; background: var(--rv-brand); color: #fff; font: 600 11px/1 "Inter", sans-serif; white-space: nowrap; }
.rv .advPlan__body.is-scrub { cursor: ew-resize; }
.rv .advPlan__foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--adv-line); background: #fafafb; font-size: 12px; color: var(--adv-ink3); }

/* ---------- technical drawings (B) ---------- */
.rv .advFig { margin: 0; position: relative; border: 1px solid var(--adv-line); border-radius: 16px; background: #fff; padding: 20px; }
.rv .advFig__no { display: block; font: 500 11px/1 "JetBrains Mono", monospace; letter-spacing: .06em; color: var(--adv-ink3); }
.rv .advFig__art svg { display: block; width: 100%; height: auto; overflow: visible; }
.rv .advFig__cap { margin-top: 8px; font-size: 13px; color: var(--adv-ink3); }
.rv [data-adv-fig] { --fig-line: rgba(17, 24, 39, .55); --fig-bg: #fff; --fig-accent: var(--rv-brand); --fig-soft: #eceafb; }
.rv [data-adv-fig] .p { fill: var(--fig-bg); stroke: var(--fig-line); stroke-width: .9; stroke-linejoin: round; }
.rv [data-adv-fig] .p.soft { fill: var(--fig-soft); }
.rv [data-adv-fig] .p.acc { fill: var(--fig-accent); stroke: var(--fig-accent); }
/* accent solids get shaded sides so they read as 3D, not as a flat hexagon */
.rv [data-adv-fig] .p.acc.a1 { fill: color-mix(in srgb, var(--fig-accent) 74%, #000); stroke: color-mix(in srgb, var(--fig-accent) 74%, #000); }
.rv [data-adv-fig] .p.acc.a2 { fill: color-mix(in srgb, var(--fig-accent) 56%, #000); stroke: color-mix(in srgb, var(--fig-accent) 56%, #000); }
.rv [data-adv-fig] .l { fill: none; stroke: var(--fig-line); stroke-width: .9; }
.rv [data-adv-fig] .l.dash { stroke-dasharray: 3 4; }
.rv [data-adv-fig] .dot { fill: var(--rv-teal); }
.rv [data-adv-fig] g.m { transition: transform .9s cubic-bezier(.2, .7, .1, 1), opacity .5s; }
/* draw-in: every stroke traces itself when the figure enters, fills arrive after */
.rv [data-adv-fig] .p, .rv [data-adv-fig] .l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1), fill-opacity .6s .9s; fill-opacity: 0; }
.rv [data-adv-fig].is-drawn .p, .rv [data-adv-fig].is-drawn .l { stroke-dashoffset: 0; fill-opacity: 1; }
.rv [data-adv-fig].is-drawn .l.dash { stroke-dasharray: 3 4; }
@keyframes advFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.rv [data-adv-fig] g.float { animation: advFloat 4.8s ease-in-out infinite; animation-delay: var(--fd, 0s); }

.rv .advView { padding: clamp(96px, 10vw, 152px) 0; background: #fafafb; border-top: 1px solid var(--adv-line); }
.rv .advView__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: center; }
.rv .advView__copy { grid-column: 1 / span 5; }
.rv .advFig--lg { grid-column: 7 / span 6; padding: 22px 26px 22px; }
.rv .advFig--lg .advFig__art { padding: 8px 6% 0; }

/* ---------- services: dark band ---------- */
.rv .advSvc { padding: clamp(96px, 10vw, 144px) 0 clamp(80px, 8vw, 120px); background: var(--adv-night); color: #fff; }
.rv .advSvc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.rv .advSvc__note { margin: 0; max-width: 360px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .55); }
.rv .advSvc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--adv-night-line); border-bottom: 1px solid var(--adv-night-line); }
.rv .advCard { position: relative; padding: 24px 24px 36px; border-left: 1px solid var(--adv-night-line); }
.rv .advCard:first-child { border-left: 0; padding-left: 0; }
.rv .advCard .advFig__no { color: rgba(255, 255, 255, .38); }
.rv .advCard__art { height: 220px; display: grid; place-items: center; margin: 12px 0 20px; }
.rv .advCard__art svg { display: block; width: 100%; max-width: 250px; height: 220px; overflow: visible; }
.rv .advCard__art[data-adv-fig] { --fig-line: rgba(255, 255, 255, .5); --fig-bg: var(--adv-night); --fig-soft: #1d1f3a; --fig-accent: var(--rv-brand); }
.rv .advCard__title { margin: 0 0 10px; font: 600 18px/1.3 "Geologica", sans-serif; letter-spacing: -.01em; color: #fff; }
.rv .advCard__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .58); }
.rv .advCard:hover .advCard__art[data-adv-fig] { --fig-line: rgba(255, 255, 255, .8); }
.rv .advClose { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 56px; }
.rv .advClose__line { margin: 0; font: 600 clamp(26px, 2.6vw, 38px)/1.15 "Geologica", sans-serif; letter-spacing: -.03em; color: #fff; }
.rv .advClose__line span { color: rgba(255, 255, 255, .45); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rv .advHero__copy, .rv .advPlan, .rv .advView__copy, .rv .advFig--lg { grid-column: 1 / span 12; }
  .rv .advPlan { margin-top: 48px; }
  .rv .advH1 { max-width: 14ch; }
  .rv .advSvc__grid { grid-template-columns: repeat(2, 1fr); }
  .rv .advCard:nth-child(3) { border-left: 0; padding-left: 0; }
  .rv .advCard:nth-child(n+3) { border-top: 1px solid var(--adv-night-line); }
}
@media (max-width: 640px) {
  .rv .advPlan__body { --name: 112px; padding: 4px 14px 14px; }
  .rv .advPlan__head { padding: 16px 14px 14px; }
  .rv .advPlan__foot { padding: 12px 14px; }
  .rv .advPlan__name small { display: none; }
  .rv .advPlan__name b { font-size: 12.5px; }
  .rv .advPlan__state { display: none; }
  .rv .advPlan__mark span { display: none; }
  .rv .advPlan__now { left: calc(14px + var(--name) + (100% - 28px - var(--name)) * var(--now, .1)); }
  .rv .advSvc__grid { grid-template-columns: 1fr; }
  .rv .advCard, .rv .advCard:first-child, .rv .advCard:nth-child(3) { border-left: 0; padding: 24px 0 32px; }
  .rv .advCard + .advCard { border-top: 1px solid var(--adv-night-line); }
  .rv .advCard__art { height: 190px; }
  .rv .advCard__art svg { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv [data-adv-fig] .p, .rv [data-adv-fig] .l { transition: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .rv [data-adv-fig] g.float, .rv .advPlan__live i, .rv .advPlan__row.is-core .advPlan__fill { animation: none; }
}

/* white button inside the dark band: fill with brand, never with ink (ink would vanish into the band) */
html.rv .advSvc .btn.btn--solid { --b-fill: var(--rv-brand); --b-fg-h: #fff; --b-tile-h: #fff; --b-arrow-h: var(--rv-brand); }

/* ============================================================
   v5.1 — one dark chapter (Our view + Services), drawings without frames
   ============================================================ */
.rv .advView { background: var(--adv-night); border-top: 0; padding: clamp(112px, 11vw, 168px) 0 clamp(48px, 5vw, 72px); }
.rv .advView .advH2 { color: #fff; font-size: clamp(36px, 3.8vw, 56px); max-width: 12ch; }
.rv .advView .advH2 span { color: rgba(255, 255, 255, .42); }
.rv .advView .advBody { color: rgba(255, 255, 255, .6); }
.rv .advView__copy { grid-column: 1 / span 5; }

/* the drawing stands on the page itself: no card, no border */
.rv .advFig--free { grid-column: 7 / span 6; border: 0; background: none; padding: 0; border-radius: 0; }
.rv .advFig--free .advFig__no { color: rgba(255, 255, 255, .38); }
.rv .advFig--free .advFig__art { padding: 16px 4% 0; }
.rv .advFig--free .advFig__cap { color: rgba(255, 255, 255, .45); margin-top: 16px; }
.rv .advFig--free [data-adv-fig] { --fig-line: rgba(255, 255, 255, .55); --fig-bg: var(--adv-night); --fig-soft: #1d1f3a; --fig-accent: var(--rv-brand); }
.rv .advFig--free:hover [data-adv-fig] { --fig-line: rgba(255, 255, 255, .8); }

/* services continue the same dark chapter */
.rv .advSvc { padding-top: clamp(64px, 6vw, 96px); }
@media (max-width: 1100px) {
  .rv .advView__copy, .rv .advFig--free { grid-column: 1 / span 12; }
}

/* ============================================================
   v5.2 — Our view back on a light page, the drawing carries the colour
   ============================================================ */
.rv .advView { background: #fff; border-top: 1px solid var(--adv-line); padding: clamp(104px, 10vw, 152px) 0; }
.rv .advView .advH2 { color: var(--adv-ink); }
.rv .advView .advH2 span { color: var(--adv-ink3); }
.rv .advView .advBody { color: var(--adv-ink2); }
.rv .advFig--free .advFig__no, .rv .advFig--free .advFig__cap { color: var(--adv-ink3); }
/* line art in brand purple on white: the plates read as glass, the accent block in teal */
.rv .advFig--free [data-adv-fig] { --fig-line: rgba(74, 61, 204, .62); --fig-bg: #fff; --fig-soft: #eceafb; --fig-accent: var(--rv-teal); }
.rv .advFig--free:hover [data-adv-fig] { --fig-line: rgba(74, 61, 204, .9); }
.rv .advFig--free [data-adv-fig] .dot { fill: var(--rv-teal); }
.rv .advSvc { padding-top: clamp(96px, 10vw, 144px); }

/* ---- grey continuations fill in on hover: a soft left-to-right sweep ---- */
.rv .advH2 span, .rv .advClose__line span {
  --sweep-from: var(--adv-ink3); --sweep-to: var(--adv-ink);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--sweep-to) 0 50%, var(--sweep-from) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position 1.1s cubic-bezier(.65, 0, .35, 1);
}
.rv .advH2--inv span, .rv .advClose__line span { --sweep-from: rgba(255, 255, 255, .42); --sweep-to: #fff; }
.rv .advH2:hover span, .rv .advClose__line:hover span { background-position: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .rv .advH2 span, .rv .advClose__line span { transition: none; }
}
/* the section-level grey colour must not override the sweep */
.rv .advView .advH2 span, .rv .advSvc .advH2 span { color: transparent; }

/* ============================================================
   v5.3 — editorial Our view, neutral line art, living entrances
   ============================================================ */
/* line art: graphite on light, white on dark; purple only as the accent */
.rv .advFig--free [data-adv-fig] { --fig-line: rgba(17, 24, 39, .55); --fig-bg: #fff; --fig-soft: #f3f4f6; --fig-accent: var(--rv-brand); }
.rv .advFig--free:hover [data-adv-fig] { --fig-line: rgba(17, 24, 39, .85); }
.rv .advCard__art[data-adv-fig] { --fig-line: rgba(255, 255, 255, .5); --fig-soft: #1a1c2e; }

.rv .advView { padding: clamp(96px, 9vw, 136px) 0 clamp(96px, 9vw, 136px); }
.rv .advView__grid { align-items: center; }
.rv .advView__copy { grid-column: 1 / span 6; }
.rv .advH2--xl { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.04em; max-width: 12ch; }
.rv .advView .advBody { max-width: 480px; margin-top: 28px; }
.rv .advFig--free { grid-column: 7 / span 6; }

/* three pillars: hairline grid, the rule fills purple on hover */

.rv .advSvc__head { margin-bottom: 48px; }

/* roadmap: rows and bars arrive one by one when the card enters */
.rv .advPlan .advPlan__row { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .8s var(--rv-out), background .25s; transition-delay: calc(.45s + var(--i, 0) * .09s); }
.rv .advPlan .advPlan__bar { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--rv-out); transition-delay: calc(.6s + var(--i, 0) * .09s); }
.rv .advPlan.is-in .advPlan__row { opacity: 1; transform: none; }
.rv .advPlan.is-in .advPlan__bar { transform: none; }
.rv .advPlan .advPlan__now, .rv .advPlan .advPlan__marks { opacity: 0; transition: opacity .8s ease 1.1s; }
.rv .advPlan.is-in .advPlan__now, .rv .advPlan.is-in .advPlan__marks { opacity: 1; }

@media (max-width: 1100px) {
  .rv .advView__copy, .rv .advFig--free { grid-column: 1 / span 12; }
}
@media (prefers-reduced-motion: reduce) {
  .rv .advPlan .advPlan__row, .rv .advPlan .advPlan__bar, .rv .advPlan .advPlan__now, .rv .advPlan .advPlan__marks { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   v5.4 — Our view as one screen with pillar tabs; grey line art; night footer
   ============================================================ */
/* line art on light: mostly soft grey, a few key lines in ink, purple only as accent */
.rv .advFig--free [data-adv-fig] { --fig-line: rgba(17, 24, 39, .26); --fig-key: rgba(17, 24, 39, .82); --fig-bg: #fff; --fig-soft: #f3f4f6; --fig-accent: var(--rv-brand); }
.rv .advFig--free:hover [data-adv-fig] { --fig-line: rgba(17, 24, 39, .36); }
.rv [data-adv-fig] .p.key { stroke: var(--fig-key, var(--fig-line)); }
.rv [data-adv-fig] .l.envl { stroke: var(--fig-accent); stroke-width: 1.1; }
.rv [data-adv-fig] g.cube .p { transition: fill .5s ease, stroke .5s ease, opacity .5s ease; }
.rv [data-adv-fig] g.cube.is-acc .p { fill: var(--fig-accent); stroke: var(--fig-accent); }
.rv [data-adv-fig] g.cube.is-acc .p.fz { fill: color-mix(in srgb, var(--fig-accent) 74%, #000); stroke: color-mix(in srgb, var(--fig-accent) 74%, #000); }
.rv [data-adv-fig] g.cube.is-acc .p.fx { fill: color-mix(in srgb, var(--fig-accent) 56%, #000); stroke: color-mix(in srgb, var(--fig-accent) 56%, #000); }
.rv [data-adv-fig] g.cube.is-dim { opacity: .35; transition: opacity .5s ease; }
.rv [data-adv-fig] g.cube { transition: opacity .5s ease; }

/* one viewport: rule on top, statement + tabs left, drawing right */
.rv .advView { min-height: 100svh; display: flex; align-items: center; padding: clamp(64px, 6vw, 96px) 0; }
.rv .advView__inner { width: min(var(--rv-max), 100% - 2 * var(--pad-x)); }
.rv .advView__grid { align-items: center; }
.rv .advView .advBody { margin-top: 22px; font-size: 16px; max-width: 470px; }
.rv .advH2--xl { font-size: clamp(38px, 4.2vw, 62px); }
.rv .advFig--free .advFig__art { padding: 0 2%; }

/* pillar tabs: a timer line fills along the active tab; inactive tabs show their title only */
.rv .advTabs { list-style: none; margin: 40px 0 0; padding: 0; max-width: 500px; }
.rv .advTab { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 0fr; column-gap: 12px; padding: 16px 0 16px; cursor: pointer; outline: none; transition: grid-template-rows .6s cubic-bezier(.65, 0, .35, 1); }
.rv .advTab::before, .rv .advTab::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.rv .advTab::before { background: var(--adv-line); }
.rv .advTab::after { height: 2px; top: -.5px; background: var(--rv-brand); transform: scaleX(var(--t, 0)); transform-origin: left; opacity: 0; transition: opacity .3s; }
.rv .advTab.is-on::after { opacity: 1; }
.rv .advTab:last-child { border-bottom: 1px solid var(--adv-line); }
.rv .advTab__no { grid-row: 1; font: 500 12px/1.9 "JetBrains Mono", monospace; color: var(--adv-ink3); transition: color .4s; }
.rv .advTab__title { grid-row: 1; font: 600 19px/1.35 "Geologica", sans-serif; letter-spacing: -.015em; color: var(--adv-ink3); transition: color .4s; }
.rv .advTab__desc { grid-column: 2; grid-row: 2; overflow: hidden; min-height: 0; font-size: 15px; line-height: 1.55; color: var(--adv-ink2); opacity: 0; transform: translateY(-4px); transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.rv .advTab.is-on { grid-template-rows: auto 1fr; }
.rv .advTab.is-on .advTab__no { color: var(--rv-brand); }
.rv .advTab.is-on .advTab__title { color: var(--adv-ink); }
.rv .advTab.is-on .advTab__desc { opacity: 1; transform: none; padding-top: 6px; transition-delay: .12s; }
.rv .advTab:hover .advTab__title { color: var(--adv-ink); }
.rv .advTab:focus-visible { box-shadow: 0 0 0 2px var(--rv-teal); border-radius: 4px; }

/* the old pillar row is replaced by the tabs */

/* footer + CTA band share the services night tone (the CTA card itself is untouched) */
.rv .lastCta, .rv:not(.sfx) .ft { background: var(--adv-night); }

@media (max-width: 1100px) {
  .rv .advView { min-height: 0; }
  .rv .advTabs { max-width: none; }
  .rv .advFig--free { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv .advTab, .rv .advTab__desc { transition: none; }
}
/* fit Our view inside one screen */
.rv .advView { padding: 40px 0; }
.rv .advView .advTabs { margin-top: 28px; }
.rv .advTab { padding: 13px 0; }
/* primary and secondary sit side by side */
.rv .advHero__actions { gap: 12px; flex-wrap: nowrap; }
@media (max-width: 420px) { .rv .advHero__actions { flex-wrap: wrap; } }
/* logos follow the same entrance as their label (their resting opacity is .6) */
.rv .advTrust img[data-rv-reveal]:not(.is-in) { opacity: 0; }
.rv .advTrust img { transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1), filter .3s; transition-delay: var(--d, 0s); }
.rv .advTrust img.is-in { opacity: .6; }
.rv .advTrust img.is-in:hover { opacity: 1; }
/* small screens: the drawing sits between the copy and the tabs, so it changes in view */
@media (max-width: 1100px) {
  .rv .advView__grid { display: flex; flex-direction: column; align-items: stretch; }
  .rv .advView__copy { display: contents; }
  .rv .advView .advH2 { order: 1; }
  .rv .advView .advBody { order: 2; }
  .rv .advFig--free { order: 3; margin: 24px 0 8px; }
  .rv .advTabs { order: 4; margin-top: 8px; }
}

/* ---- morphing blocks (Our view) ---- */
.rv [data-adv-fig] g.blk .p { transition: fill .6s ease, stroke .6s ease, stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1), fill-opacity .6s .9s; }
.rv [data-adv-fig] g.blk.is-soft .p.ft { fill: var(--fig-soft); }
.rv [data-adv-fig] g.blk.is-key .p { stroke: var(--fig-key, var(--fig-line)); }
.rv [data-adv-fig] g.blk.is-acc .p { fill: var(--fig-accent); stroke: var(--fig-accent); }
.rv [data-adv-fig] g.blk.is-acc .p.fz { fill: color-mix(in srgb, var(--fig-accent) 74%, #000); stroke: color-mix(in srgb, var(--fig-accent) 74%, #000); }
.rv [data-adv-fig] g.blk.is-acc .p.fx { fill: color-mix(in srgb, var(--fig-accent) 56%, #000); stroke: color-mix(in srgb, var(--fig-accent) 56%, #000); }
@keyframes advMarch { to { stroke-dashoffset: -14; } }
.rv [data-adv-fig] g.env .l.envl { animation: advMarch 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rv [data-adv-fig] g.env .l.envl { animation: none; } }

/* ============================================================
   v5.5 — hero stage: isometric floor, live chips, soft tilt
   ============================================================ */
.rv .advStage { grid-column: 7 / span 6; position: relative; perspective: 1600px; }
.rv .advStage .advPlan { grid-column: auto; position: relative; z-index: 1; }
.rv .advStage__floor {
  position: absolute; inset: -16% -14% -22% -12%; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(30deg, transparent 0 47px, rgba(17, 24, 39, .07) 47px 48px),
    repeating-linear-gradient(150deg, transparent 0 47px, rgba(17, 24, 39, .07) 47px 48px);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%);
  animation: advFloor 30s linear infinite;
}
@keyframes advFloor { to { background-position: 96px 0, -96px 0; } }
.rv .advStage__tilt {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.rv .advChip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px;
  background: #fff; border: 1px solid var(--adv-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 18px 40px -18px rgba(17, 24, 39, .28);
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 40px);
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  font-family: "Inter", sans-serif;
}
.rv .advChip small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--adv-ink3); }
.rv .advChip b { display: block; margin-top: 3px; font: 600 14px/1.2 "Geologica", sans-serif; color: var(--adv-ink); letter-spacing: -.01em; white-space: nowrap; }
.rv .advChip--next { top: -26px; left: -34px; }
.rv .advChip--next i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--rv-brand); border-radius: 2px; flex: none; }
.rv .advChip--next b { transition: opacity .3s; }
.rv .advChip--live { right: -30px; bottom: 58px; }
.rv .advChip__ring {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--rv-teal) calc(var(--live, .25) * 1turn), #eef0f3 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%); mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
  transition: --live .6s;
}
@media (max-width: 1100px) { .rv .advStage { grid-column: 1 / span 12; margin-top: 48px; } }
@media (max-width: 640px) { .rv .advChip { display: none; } .rv .advStage__floor { inset: -10% -8%; } }
@media (prefers-reduced-motion: reduce) { .rv .advStage__floor { animation: none; } .rv .advStage__tilt, .rv .advChip { transition: none; } }
/* the stage now carries the entrance: rows, bars and the Today line build when it arrives */
.rv .advStage.is-in .advPlan .advPlan__row { opacity: 1; transform: none; }
.rv .advStage.is-in .advPlan .advPlan__bar { transform: none; }
.rv .advStage.is-in .advPlan .advPlan__now, .rv .advStage.is-in .advPlan .advPlan__marks { opacity: 1; }
.rv .advChip--next { top: -46px; left: -40px; }
.rv .advChip { opacity: 0; translate: 0 10px; transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .6s ease 1.2s, translate .8s cubic-bezier(.16, 1, .3, 1) 1.2s; }
.rv .advStage.is-in .advChip { opacity: 1; translate: 0 0; }
.rv .advStage.is-in .advChip--live { transition-delay: 0s, 1.4s, 1.4s; }
.rv .advChip--live { bottom: -26px; right: -34px; }

/* ============================================================
   FOOTER (revamp pages) — same container as the page, quieter type,
   hairlines instead of a purple slab, the link sweep used across the site.
   The CTA card keeps its design; only its width now matches the page.
   ============================================================ */
.rv .lastCta { padding: clamp(56px, 6vw, 88px) var(--pad-x) 0; }
.rv .lastCta__inner { max-width: var(--rv-max); margin: 0 auto; }
.rv:not(.sfx) .ft__desktop { padding: clamp(72px, 7vw, 104px) var(--pad-x) 56px; gap: 0; }
.rv:not(.sfx) .ft__top, .rv:not(.sfx) .ft__cols { width: 100%; max-width: var(--rv-max); margin: 0 auto; }
.rv:not(.sfx) .ft__tagline { color: rgba(255, 255, 255, .62); font-size: 15px; line-height: 1.6; max-width: 380px; }
.rv:not(.sfx) .ft__badge { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .8); }
.rv:not(.sfx) .ft__reachTitle { font-family: "Geologica", sans-serif; font-weight: 600; letter-spacing: -.02em; }
.rv:not(.sfx) .ft__mail { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .5s cubic-bezier(.65, 0, .35, 1); padding-bottom: 2px; }
.rv:not(.sfx) .ft__mail:hover { background-size: 0 2px; background-position: 100% 100%; }
.rv:not(.sfx) .ft__phone { color: rgba(255, 255, 255, .7); }
.rv:not(.sfx) .ft__social { gap: 10px; }
.rv:not(.sfx) .ft__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); transition: background .3s, border-color .3s; }
.rv:not(.sfx) .ft__social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.rv:not(.sfx) .ft__social img { width: 20px; height: 20px; }
.rv:not(.sfx) .ft__cols { margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); }
.rv:not(.sfx) .ft__colTitle { font: 500 13px/1 "Inter", sans-serif; color: rgba(255, 255, 255, .45); margin-bottom: 20px; }
.rv:not(.sfx) .ft__links a {
  color: rgba(255, 255, 255, .78); font-size: 15px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s cubic-bezier(.65, 0, .35, 1), color .3s;
}
.rv:not(.sfx) .ft__links a:hover { color: #fff; background-size: 100% 1px; }
.rv:not(.sfx) .ft__copyright { background: var(--adv-night); }
.rv:not(.sfx) .ft__copyInner { max-width: var(--rv-max); margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, .1); width: calc(100% - 2 * var(--pad-x)); }
.rv:not(.sfx) .ft__copyText, .rv:not(.sfx) .ft__legal a { color: rgba(255, 255, 255, .5); font-size: 13px; }
.rv:not(.sfx) .ft__legal a { text-decoration: none; transition: color .3s; }
.rv:not(.sfx) .ft__legal a:hover { color: #fff; }
html.rv:not(.sfx) .ft .ft__desktop { padding: clamp(80px, 8vw, 112px) var(--pad-x) 56px; }
@media (max-width: 760px) {
  .rv:not(.sfx) .ft__cols { gap: 40px; }
  .rv:not(.sfx) .ft__col + .ft__col { margin-top: 0; }
  .rv:not(.sfx) .ft__colTitle { margin-bottom: 14px; }
}

/* closing statement + its button, centred */
.rv .advClose { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; }
.rv .advClose__line { max-width: 22ch; }
/* services heading, centred */
.rv .advSvc__head { justify-content: center; text-align: center; }
.rv .advSvc__head .advH2--xl { max-width: none; margin-inline: auto; }

.rv .advBody, .rv .advLead, .rv .advTab__desc, .rv .advCard__desc { text-wrap: pretty; }

/* footer, balanced: two equal columns, both reading from the left */
.rv:not(.sfx) .ft__top { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); row-gap: 28px; align-items: start; }
.rv:not(.sfx) .ft__logo { grid-column: 1; grid-row: 1; }
.rv:not(.sfx) .ft__topRow { display: contents; }
.rv:not(.sfx) .ft__brand { grid-column: 1; grid-row: 2; }
.rv:not(.sfx) .ft__reach { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid rgba(255, 255, 255, .1); }
.rv:not(.sfx) .ft__reachTitle { text-align: left; margin: 0; }
.rv:not(.sfx) .ft__phone { margin: 0; }
.rv:not(.sfx) .ft__social { justify-content: flex-start; }
@media (max-width: 760px) {
  .rv:not(.sfx) .ft__top { grid-template-columns: 1fr; }
  .rv:not(.sfx) .ft__reach { grid-column: 1; grid-row: auto; padding-left: 0; border-left: 0; }
}

/* trust row: compact band with full-bleed hairlines top and bottom (content stays on the grid) */
.rv .advHero { overflow-x: clip; }
.rv .advTrust { position: relative; border-top: 0; padding: 26px 0; margin-bottom: 0; }
.rv .advTrust::before, .rv .advTrust::after { content: ""; position: absolute; left: calc(50% - 50vw); width: 100vw; height: 1px; background: var(--adv-line); pointer-events: none; }
.rv .advTrust::before { top: 0; }
.rv .advTrust::after { bottom: 0; }
/* the trust band already closes the hero: the next section adds no second hairline */
.rv .advHero + section { border-top: 0; }

/* hero v2: hero + trust band fill exactly one screen; the content is centred in the space under the nav */
.rv .advHero, .rv .advHero.rvTall { box-sizing: border-box; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 80px 0 0; }
.rv .advHero > .advHero__grid { flex: 1; align-content: center; padding-block: clamp(24px, 4vh, 56px); }
.rv .advHero > .advTrust, .rv .advHero.rvTall .advTrust { margin-top: 0; flex: none; }
@media (max-width: 900px) { .rv .advHero, .rv .advHero.rvTall { min-height: 0; } .rv .advHero > .advHero__grid { padding-block: 48px 64px; } }
/* hero v2 wins over the older solution padding (solution.css loads later) */
html.rv .advHero, html.rv .advHero.rvTall { padding: 80px 0 0; }
@media (max-width: 900px) { html.rv .advHero, html.rv .advHero.rvTall { padding-top: 80px; } }
/* hero v2.1: hero + trust band = 90vh (a hint of the next section shows) */
html.rv .advHero, html.rv .advHero.rvTall { min-height: 90vh; min-height: 90svh; }
@media (max-width: 900px) { html.rv .advHero, html.rv .advHero.rvTall { min-height: 0; } }
