/* BRV Tuning - dark gunmetal theme. Tokens first, then components. */
:root {
  --bg: #141417;
  --bg-2: #1b1b1f;
  --card: #222222;
  --card-2: #2a2a2a;
  --line: #333333;
  --line-2: #2b2b2b;
  --ink: #ffffff;
  --muted: #b1b1b1;
  --muted-2: #8a8f94;
  --silver: #d9dde1;
  --gunmetal: #6b7680;
  --gain: #34c759;
  --amber: #ff9f0a;
  --radius: 10px;
  --max: 1120px;
  --gutter: 16px;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain texture + soft vignette: the gothic/John Wick mood, no external image */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--silver); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
mark.ph { background: rgba(255,159,10,.18); color: var(--amber); padding: 0 .25em; border-radius: 3px; font-style: normal; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.note { color: var(--muted-2); font-size: .9rem; margin-top: 1.25rem; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: .75rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20,20,23,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand img { height: 34px; width: auto; }
.nav-desktop { display: none; gap: 22px; margin-left: auto; }
.nav-desktop a, .nav-mobile nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--ink); }
.site-header .portal-link { display: none; }
.nav-mobile { margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile[open] summary { background: var(--card); }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(260px, 90vw); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px #000; }
.nav-mobile nav a { padding: 12px; border-radius: 6px; color: var(--silver); }
.nav-mobile nav a:hover { background: var(--card-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: linear-gradient(180deg, #eef1f4, #c9ced3); color: #0b0b0d; }
.btn-primary:hover { background: #ffffff; color: #000; }
/* light buttons need a dark sheen, otherwise a white sweep disappears on silver */
.btn-primary { --sheen-rgb: 0,0,0; --sheen-a: .22; }
.btn-ghost { background: var(--card-2); border-color: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--card-3); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }

/* shimmer: every button sweeps on hover; .btn-loop also sweeps on a loop.
   Moves with transform (not left), starts fully transparent, and uses
   sheen colours with alpha 0 at the edges so nothing paints dark before the sweep. */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 45%;
  height: 140%;
  background: linear-gradient(100deg, rgba(var(--sheen-rgb, 255,255,255), 0) 0%, rgba(var(--sheen-rgb, 255,255,255), var(--sheen-a, .38)) 50%, rgba(var(--sheen-rgb, 255,255,255), 0) 100%);
  transform: translate3d(-160%, 0, 0) skewX(-20deg);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.btn:hover::after { animation: shimmer-once 1s ease-out 1 forwards; }
.btn-loop::after { animation: shimmer-loop 3.2s ease-in-out infinite; }
@keyframes shimmer-once {
  0% { transform: translate3d(-160%, 0, 0) skewX(-20deg); opacity: 1; }
  100% { transform: translate3d(330%, 0, 0) skewX(-20deg); opacity: 1; }
}
@keyframes shimmer-loop {
  0% { transform: translate3d(-160%, 0, 0) skewX(-20deg); opacity: 1; }
  40% { transform: translate3d(330%, 0, 0) skewX(-20deg); opacity: 1; }
  41% { opacity: 0; }
  100% { transform: translate3d(330%, 0, 0) skewX(-20deg); opacity: 0; }
}

/* hero */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; overflow: clip; }
/* slanted photo collage behind the hero, tinted dark so the copy stays readable */
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  gap: 10px;
  transform: skewX(-12deg);
  pointer-events: none;
}
.hero-collage figure { margin: 0; flex: 1 1 0; min-width: 0; height: 100%; overflow: hidden; border-radius: 6px; }
.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewX(12deg) scale(1.15);
  filter: grayscale(.35) contrast(1.05) brightness(.55);
}
.hero-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,23,.98) 0%, rgba(20,20,23,.88) 38%, rgba(20,20,23,.55) 70%, rgba(20,20,23,.7) 100%),
    linear-gradient(180deg, rgba(20,20,23,.6) 0%, rgba(20,20,23,0) 25%, rgba(20,20,23,0) 75%, rgba(20,20,23,.9) 100%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 1; }
.hero-logo-wrap { order: -1; display: flex; justify-content: center; }
.hero-logo { width: min(200px, 60%); height: auto; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
.lede .line { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gain); margin-right: 8px; vertical-align: middle; }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line-2); }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero { padding: 56px 0 28px; border-bottom: 1px solid var(--line-2); }
.cta-band { padding: 64px 0; background-color: #222226; background-image: linear-gradient(160deg, #3a3f45 0%, #26282c 45%, #161618 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta-inner p { color: var(--muted); }
.cta-inner .btn { margin-top: 8px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { background: var(--card); border: 0; border-radius: var(--radius); padding: 22px; }
.steps .num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--gunmetal); color: var(--silver); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps.compact { margin-top: 12px; margin-bottom: 28px; grid-template-columns: 1fr; gap: 12px; }
.two-col > div > h2 { margin-bottom: 16px; }
.two-col > div > .price-list { margin-top: 0; }
.action-row { margin: 0; }
.note { margin-bottom: 0; }

/* service cards */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 0; border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { background: var(--card-2); transform: translateY(-2px); color: var(--ink); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 16px; }
.card-price { color: var(--silver); font-weight: 600; font-size: .95rem; }

/* price list */
.price-list { list-style: none; padding: 0; margin: 20px 0 0; border: 0; border-radius: var(--radius); background: var(--card); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.price-row:last-child { border-bottom: 0; }
.pr-name { color: var(--silver); font-size: .95rem; }
.pr-price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* master + slave side by side on the pricing grid */
.price-row.dual { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px; }
.price-row.dual .pr-price { text-align: right; }
.price-row.price-head { padding-top: 10px; padding-bottom: 10px; background: var(--card-2); }
.price-row.price-head .pr-price { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.pr-slave { color: var(--silver); }
@media (max-width: 480px) {
  .price-row.dual { grid-template-columns: minmax(0, 1fr) 76px 76px; gap: 8px; padding: 12px 14px; }
  .price-row.dual .pr-name { font-size: .88rem; }
}
.tag { display: inline-block; margin-left: 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.price-group { margin-bottom: 44px; }
.list-title { margin-bottom: 28px; }
.price-group h2 { font-size: 1.2rem; margin-bottom: 0; }
.vol-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 0; }
.vol-table caption { text-align: left; color: var(--muted); padding: 0 0 8px; font-size: .9rem; }
.vol-table th, .vol-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.vol-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* breadcrumbs + prose */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #0f0f12; padding: 56px 0 28px; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.foot-emblem { width: 150px; height: auto; opacity: .85; margin-bottom: 14px; }
.motto { color: var(--ink); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; font-weight: 600; margin: 0 0 10px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-list a { color: var(--muted); text-decoration: none; }
.foot-list a:hover { color: var(--ink); }
.legal-line { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: .8rem; color: var(--muted-2); }
.legal-line p { margin-bottom: .6em; }
.legal-line a { color: var(--muted); }

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .section { padding: 84px 0; }
}
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .site-header .portal-link { display: inline-flex; margin-left: 8px; }
  .nav-mobile { display: none; }
  .hero-grid { grid-template-columns: 1fr minmax(260px, 340px); }
  .hero-logo-wrap { order: 0; justify-content: flex-end; }
  .hero-logo { width: 100%; }
  .two-col { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 96px 0 88px; }
}
@media (max-width: 719px) {
  .hero-collage figure:nth-child(n+4) { display: none; }
  .hero-collage { gap: 8px; }
  .hero-collage::after { background: rgba(20,20,23,.84); }
  .price-row { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn::after { animation: none !important; display: none; }
}

/* texture overlay: grain image over the hero, alternate sections, CTA band and footer */
.hero,
.section.alt,
.site-footer { position: relative; isolation: isolate; }
.hero::after,
.section.alt::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/img/grunge/grain-specks.png") center / 480px repeat;
  opacity: .22;
  mix-blend-mode: screen;
}
.hero::after { z-index: 0; }
.hero-grid { z-index: 2; }
