/* =====================================================================
   Royalion Developers — shared stylesheet
   Mobile-first. Tokens on :root; sections are commented in page order.
   ===================================================================== */

:root {
  --navy: #0E1A3A;
  --navy-2: #15244D;
  --navy-3: #1E3165;
  --gold: #D4A73C;
  --gold-soft: #F4E7C6;
  --gold-ink: #8A6516;          /* gold for text on light backgrounds (AA contrast) */
  --blue: #478AC9;
  --blue-ink: #2B65A0;          /* blue for text on light backgrounds */
  --blue-soft: #E7F0FA;
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #18203A;
  --muted: #586078;
  --line: #E4DFD3;
  --on-navy: #DCE3F3;
  --on-navy-muted: #A3AECB;
  --wa: #25D366;
  --error: #B42318;
  --success: #17603B;

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 26, 58, .06), 0 8px 24px rgba(14, 26, 58, .08);
  --shadow-lg: 0 2px 4px rgba(14, 26, 58, .08), 0 24px 48px rgba(14, 26, 58, .16);
  --header-h: 68px;
  --gutter: 16px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.on-navy .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.muted { color: var(--muted); }

/* Icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .01em;
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E2B952; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .925rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-ink); text-decoration: none; background: none; border: 0; padding: 0; font-size: inherit; font-family: inherit; cursor: pointer; }
.text-link .i { transition: transform .18s; width: 1em; height: 1em; }
.text-link:hover { color: var(--navy); }
.text-link:hover .i { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(14, 26, 58, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 38px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--navy); cursor: pointer;
}
.nav-toggle .i { width: 24px; height: 24px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px rgba(14, 26, 58, .12);
  padding: 8px var(--gutter) 20px;
  display: none;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav a {
  display: block; padding: 13px 4px; border-bottom: 1px solid #F0ECE3;
  font: 500 1.0625rem var(--font-head); color: var(--navy); text-decoration: none;
}
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--gold-ink); }
.site-nav .btn { display: flex; justify-content: center; padding: 12px 22px; border: 2px solid transparent; margin-top: 16px; width: 100%; color: var(--navy); }
.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 28px;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 1rem; position: relative; }
  .site-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .2s;
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after, .site-nav a.is-active::after { transform: scaleX(1); }
  .site-nav .btn { display: inline-flex; margin: 0; width: auto; padding: 8px 18px; }
  .site-nav .btn::after { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy);
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(71, 138, 201, .28), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(212, 167, 60, .14), transparent 60%),
    var(--navy);
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
}
.hero::before { /* fine gold grid, very subtle */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(212, 167, 60, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 167, 60, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 75%); mask-image: linear-gradient(115deg, transparent 35%, #000 75%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero-tagline {
  font: 500 clamp(1.15rem, 2.4vw, 1.6rem)/1.3 var(--font-head); color: var(--gold);
  margin-bottom: 1.1em; letter-spacing: .01em;
}
.hero-intro { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; margin-bottom: 28px; color: var(--on-navy); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: .95rem; color: var(--on-navy-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .i { color: var(--gold); width: 1.05em; height: 1.05em; }


@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
}

/* ---------- Software ---------- */
.software { background: var(--bg); }

.rfms {
  position: relative; display: grid; gap: 36px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy) 70%);
  color: var(--on-navy); border-radius: 22px; padding: clamp(24px, 4.5vw, 52px);
  border-top: 4px solid var(--gold); margin-bottom: 28px; box-shadow: var(--shadow-lg);
}
.rfms h3 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin-bottom: .1em; }
.rfms .rfms-full { font: 500 1.1rem var(--font-head); color: var(--gold); margin-bottom: 1em; }
.rfms p { color: var(--on-navy); }
.badge-flag {
  display: inline-block; font: 600 .75rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--gold); padding: 7px 12px; border-radius: 99px; margin-bottom: 18px;
}
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B65A0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.on-navy .check-list li::before, .rfms .check-list li::before {
  background-color: rgba(212, 167, 60, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4A73C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.rfms .check-list { margin-bottom: 28px; }
@media (min-width: 640px) and (max-width: 1023px) { .rfms .check-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; } }

.roles-title { font: 600 .8rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 10px; }
.roles { list-style: none; display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 30px; }
.roles li { border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, .03); }
.roles strong { display: block; font: 600 .975rem var(--font-head); color: #fff; }
.roles span { font-size: .875rem; color: var(--on-navy-muted); line-height: 1.35; display: block; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.rfms-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.rfms-cta small { color: var(--on-navy-muted); font-size: .95rem; }

.trial-seal {
  position: absolute; top: -22px; right: clamp(14px, 3vw, 36px);
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 5px var(--navy), 0 0 0 6px rgba(212, 167, 60, .6), var(--shadow);
  font-family: var(--font-head); line-height: 1.05; transform: rotate(8deg);
}
.trial-seal b { font-size: 1.5rem; font-weight: 700; display: block; }
.trial-seal span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* RFMS: intro + screenshot */
.rfms-top { display: grid; gap: 32px; align-items: center; }
.rfms-lead { font: 600 clamp(1.2rem, 2vw, 1.45rem)/1.3 var(--font-head); color: #fff !important; margin-bottom: .6em; }
.rfms-shot { margin: 0; }
.rfms-shot img {
  width: 100%; border-radius: 12px; background: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}
.rfms-shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--on-navy-muted); text-align: center; }
@media (min-width: 1024px) { .rfms-top { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; } }

/* RFMS: feature grid */
.rfms-features { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 32px; }
.rfms-features h4 { color: #fff; font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 20px; }
.rfms-features ul { list-style: none; display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 12px; overflow: hidden; }
.rfms-features li { background: var(--navy); padding: 18px 20px; }
.rfms-features strong { display: block; font: 600 1.025rem var(--font-head); color: var(--gold); margin-bottom: 4px; }
.rfms-features span { font-size: .95rem; line-height: 1.5; color: var(--on-navy); }
@media (min-width: 640px) { .rfms-features ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rfms-features ul { grid-template-columns: repeat(4, 1fr); } }

.rfms-roles { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; }
.rfms-roles .roles { margin-bottom: 12px; }
.roles-note { font-size: .9rem; color: var(--on-navy-muted) !important; margin: 0; }

.products { display: grid; gap: 20px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column;
}
.product-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); margin-bottom: 18px; }
.product-icon .i { width: 26px; height: 26px; }
.product h3 { margin-bottom: .35em; }
.product > p { color: var(--muted); }
.product .check-list { margin: 4px 0 24px; font-size: 1rem; }
.product .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 760px) { .products { grid-template-columns: 1fr 1fr; } }

.product-wide { background: var(--surface); }
@media (min-width: 760px) {
  .product-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: center; }
  .product-wide .check-list { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}
.live-example {
  border-radius: 12px; padding: 24px; background: var(--bg); border: 1px dashed #CFC6AF;
}
.live-example small { font: 600 .75rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.live-example a.site { display: block; font: 600 1.35rem var(--font-head); color: var(--navy); margin: 6px 0 8px; overflow-wrap: anywhere; }
.live-example p { color: var(--muted); font-size: .975rem; }

/* ---------- Services (editorial list) ---------- */
.services { background: var(--surface); }
.services-grid { display: grid; gap: 24px; }
.service-list { list-style: none; counter-reset: svc; }
.service { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 28px 0; border-top: 1px solid var(--line); counter-increment: svc; }
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before { content: "0" counter(svc); font: 600 .95rem var(--font-head); color: var(--gold-ink); padding-top: .3em; }
.service h3 { margin-bottom: .35em; }
.service > div > p { color: var(--muted); margin-bottom: .75em; }
.service details { margin-bottom: 12px; }
.service summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--blue-ink); padding: 4px 0;
}
.service summary::-webkit-details-marker { display: none; }
.service summary .i { width: 1em; height: 1em; transition: transform .2s; }
.service details[open] summary .i { transform: rotate(180deg); }
.service details[open] summary .more { display: none; }
.service summary .less { display: none; }
.service details[open] summary .less { display: inline; }
.detail-body { padding: 14px 0 4px; border-left: 2px solid var(--gold-soft); padding-left: 18px; margin-top: 8px; }
.detail-body p { font-size: 1rem; }
.detail-body dl { margin: 0 0 1em; }
.detail-body dt { font: 600 1rem var(--font-head); color: var(--navy); }
.detail-body dd { margin: 2px 0 12px; font-size: 1rem; }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 64px; }
  .services-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* ---------- Security band ---------- */
.security-band {
  color: var(--on-navy);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(71, 138, 201, .3), transparent 60%),
    var(--navy);
}
.security-grid { display: grid; gap: 40px; align-items: center; }
.security-band h2 { color: #fff; }
.sec-logo { width: 220px; height: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 24px; }
.sec-tagline { font: 500 1.2rem var(--font-head); color: var(--gold); margin-top: -.2em; }
.security-band .check-list { margin: 24px 0 32px; }
@media (min-width: 640px) { .security-band .check-list { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
.sec-media { position: relative; }
.sec-media img { border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); width: 100%; max-width: 520px; margin-inline: auto; }
@media (min-width: 960px) { .security-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; max-width: 560px; }
.about-media img { border-radius: 18px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-media .img-2 {
  position: absolute; right: 0; bottom: 0; width: 48%;
  border: 6px solid var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.about-text p { color: var(--muted); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.125rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

.steps-wrap { margin-top: clamp(48px, 6vw, 80px); }
.steps-wrap h3 { margin-bottom: 24px; }
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
.step { position: relative; padding-left: 64px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.1rem var(--font-head); background: var(--navy); color: var(--gold);
}
.step h4 { font-size: 1.2rem; margin: 8px 0 4px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { padding: 64px 0 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
}

/* ---------- Clients ---------- */
.clients { background: var(--surface); }
.clients-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.clients-head .section-head { margin: 0; }
.logo-strip { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-strip li { background: var(--surface); display: grid; place-items: center; padding: 22px; min-height: 110px; }
.logo-strip img { max-height: 60px; max-width: 140px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-strip li:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .logo-strip { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }
.contact-info .lead { color: var(--muted); }
.contact-lines { list-style: none; display: grid; gap: 18px; margin: 28px 0; }
.contact-lines li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-lines .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.contact-lines .ico .i { width: 20px; height: 20px; }
.contact-lines strong { display: block; font: 600 1rem var(--font-head); color: var(--navy); }
.contact-lines a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines small { display: block; color: var(--muted); font-size: .925rem; }
.offices { display: grid; gap: 12px; margin-bottom: 24px; }
.office { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: .975rem; }
.office strong { display: block; font: 600 1rem var(--font-head); color: var(--navy); margin-bottom: 2px; }
.office address { font-style: normal; color: var(--muted); }
.office a { text-decoration: none; font-weight: 600; }
@media (min-width: 640px) and (max-width: 1023px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.btn-wa { background: var(--wa); color: #0B3B1E; }
.btn-wa:hover { background: #3BE07A; color: #0B3B1E; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: .2em; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px; border: 1.5px solid #CFC8B8; border-radius: 10px; background: #FFFDF9;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #FFFDF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1A3A' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(71, 138, 201, .2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: .9rem; margin-top: 6px; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 6px; }

.tiles { display: grid; gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-box {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 12px 14px; border: 1.5px solid #D9D2C2; border-radius: 10px; background: #FFFDF9;
  font-size: .975rem; line-height: 1.3; transition: border-color .15s, background-color .15s;
}
.tile-check {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #B9B09C; background: #fff;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.tile-check::after {
  content: ""; width: 12px; height: 12px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1A3A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile:hover .tile-box { border-color: var(--navy-3); }
.tile input:checked + .tile-box { border-color: var(--navy); background: #FBF4E2; box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; color: var(--navy); }
.tile input:checked + .tile-box .tile-check { background: var(--gold); border-color: var(--gold); }
.tile input:checked + .tile-box .tile-check::after { opacity: 1; }
.tile input:focus-visible + .tile-box { outline: 3px solid var(--blue); outline-offset: 2px; }
.tiles.is-invalid .tile-box { border-color: #E0A39C; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: .9rem; }
.form-status { margin-top: 16px; border-radius: 10px; padding: 0; }
.form-status:not(:empty) { padding: 14px 16px; }
.form-status.is-error { background: #FDEEEE; color: #7A1A12; border: 1px solid #F0BCB8; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .ok-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E2F3E9; color: var(--success); margin: 0 auto 16px; }
.form-success .ok-icon .i { width: 32px; height: 32px; stroke-width: 2.6; }
.form-success p { color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(14, 26, 58, .25); border-top-color: var(--navy); animation: spin .8s linear infinite; display: none; }
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: 64px; font-size: .975rem; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 30em; }
.site-footer h2 { font: 600 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { color: var(--gold); width: 18px; height: 18px; margin-top: 4px; }
.footer-contact span a { text-decoration: underline; text-decoration-color: rgba(212, 167, 60, .6); }
.social { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .9rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1.3fr; gap: 40px; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .18s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  color: var(--on-navy); padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(700px 360px at 92% 0%, rgba(71, 138, 201, .28), transparent 60%),
    var(--navy);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero .lead { max-width: 40em; color: var(--on-navy); }
.crumbs { font-size: .925rem; margin-bottom: 18px; color: var(--on-navy-muted); }
.crumbs a { color: var(--on-navy); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.2fr .8fr; } }

/* ---------- Packages ---------- */
.jumpbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(247, 245, 240, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.jumpbar ul { position: relative; list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.jumpbar ul::-webkit-scrollbar { display: none; }
.jumpbar a {
  display: block; white-space: nowrap; padding: 8px 16px; border-radius: 99px;
  font: 600 .95rem var(--font-head); color: var(--navy); text-decoration: none; border: 1.5px solid #D6CEBB; background: var(--surface);
}
.jumpbar a:hover { border-color: var(--navy); }
.jumpbar a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pkg-section { scroll-margin-top: calc(var(--header-h) + 72px); }
.pkg-section + .pkg-section { border-top: 1px solid var(--line); }
.pkg-head { display: grid; gap: 8px 40px; margin-bottom: 32px; }
.pkg-head p { color: var(--muted); margin: 0; }
.terms { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.terms span { font-size: .9rem; font-weight: 600; color: var(--gold-ink); background: var(--gold-soft); padding: 4px 12px; border-radius: 99px; }
@media (min-width: 960px) { .pkg-head { grid-template-columns: 1fr 1fr; align-items: end; } }

.pkg-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.pkg-tier { font: 600 .8rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.pkg-price { font: 700 2.6rem/1 var(--font-head); color: var(--navy); margin-bottom: 4px; letter-spacing: -.02em; }
.pkg-price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pkg-cur { font-size: 1.1rem; vertical-align: .9em; margin-right: 2px; font-weight: 600; }
.pkg-sub { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.pkg .check-list { margin-bottom: 26px; font-size: 1rem; }
.pkg .check-list b { color: var(--navy); }
.pkg .btn { margin-top: auto; }
.pkg-top { border-color: var(--navy); box-shadow: inset 0 4px 0 var(--gold); }

.includes { margin-top: 20px; background: var(--surface); border: 1px dashed #CFC6AF; border-radius: var(--radius); padding: 24px; }
.includes h3 { font-size: 1.1rem; margin-bottom: 14px; }
.includes .check-list { font-size: .975rem; gap: 8px 24px; }
@media (min-width: 640px) { .includes .check-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .includes .check-list { grid-template-columns: repeat(3, 1fr); } }
.notes { list-style: none; margin-top: 14px; color: var(--muted); font-size: .925rem; display: grid; gap: 4px; }

.cta-band { background: var(--navy); color: var(--on-navy); border-radius: 22px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Security page ---------- */
.sec-features { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sec-features li { background: var(--surface); padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.sec-features .i { width: 28px; height: 28px; color: var(--blue-ink); }
.sec-features strong { display: block; font: 600 1.05rem var(--font-head); color: var(--navy); }
.sec-features span { color: var(--muted); font-size: .975rem; }
@media (min-width: 640px) { .sec-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .sec-features { grid-template-columns: repeat(3, 1fr); } }
.sec-hero-img { border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-width: 420px; width: 100%; margin-inline: auto; }

/* ---------- Portfolio ---------- */
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-wall li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 20px; aspect-ratio: 3 / 2; }
.logo-wall img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }

.gallery { list-style: none; display: grid; gap: 20px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; cursor: zoom-in; text-align: left; font: inherit; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.gallery-item span { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font: 600 1rem var(--font-head); color: var(--navy); }
.gallery-item span small { font: 400 .9rem var(--font-body); color: var(--blue-ink); }

.lightbox { padding: 0; border: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: transparent; }
.lightbox::backdrop { background: rgba(8, 14, 32, .92); }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto 1fr; color: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); background: rgba(8, 14, 32, .8); }
.lb-title { font: 600 1rem var(--font-head); }
.lb-controls { display: flex; gap: 8px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lb-scroll { overflow-y: auto; padding: 16px var(--gutter) 40px; overscroll-behavior: contain; }
.lb-scroll img { margin-inline: auto; max-width: min(1100px, 100%); border-radius: 8px; background: #fff; }
.lb-hint { text-align: center; color: var(--on-navy-muted); font-size: .9rem; margin-bottom: 12px; }

/* ---------- Software quick links (moved from the hero) ---------- */
.sw-jump { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.sw-jump a {
  display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 600 1rem var(--font-head); color: var(--navy); text-decoration: none; transition: border-color .18s;
}
.sw-jump a:hover { border-color: var(--gold); color: var(--navy); }
.sw-jump span { font-size: .8rem; color: var(--gold-ink); grid-row: span 2; }
.sw-jump small { font: 400 .875rem var(--font-body); color: var(--muted); }
@media (min-width: 960px) { .sw-jump { grid-template-columns: repeat(4, 1fr); } }

/* =====================================================================
   Royalion City – animated hero illustration (markup: tools/make-city.mjs)
   Tweak here:
     --rc-speed   loop speed multiplier (1 = default, 2 = twice as slow, 0.5 = faster)
     --rc-build   intro (build-up) speed multiplier
     --rc-light   window light colour
     .pal-*       building colours: --t top, --l left face, --r right face
   Remove a building:  .rc-bld[data-b="design"] { display: none; }
     (ids: tower, rfms, school, security, store, pos, design)
   ===================================================================== */
.hero-city { position: relative; width: 100%; max-width: 600px; margin-inline: auto; }
.rc-city {
  --rc-speed: 1;
  --rc-build: 1;
  --rc-light: #F5CB5C;
  --rc-gold: #D4A73C;
  display: block; width: 100%; height: auto; overflow: visible;
  font-family: var(--font-head);
}
.pal-ground { --t: #172850; --l: #0D1938; --r: #0A142E; }
.pal-navy   { --t: #2B3F78; --l: #1B2B57; --r: #142149; }
.pal-slate  { --t: #50669E; --l: #3A4E84; --r: #2C3E6C; }
.pal-blue   { --t: #7FB2E2; --l: #478AC9; --r: #356B9F; }
.pal-cream  { --t: #F4EFE3; --l: #DAD3C3; --r: #BEB6A4; }
.pal-gold   { --t: #E7C36B; --l: #D4A73C; --r: #A9801F; }
.rc-t { fill: var(--t); } .rc-l { fill: var(--l); } .rc-r { fill: var(--r); }

/* ground, roads, details */
.rc-road { fill: #0B1633; }
.rc-gl { stroke: rgba(212, 167, 60, .14); stroke-width: .8; }
.rc-lane { stroke: rgba(212, 167, 60, .45); stroke-width: 1.2; stroke-dasharray: 6 9; }
.rc-win, .rc-attend { fill: var(--rc-light); }
.rc-wdark { fill: rgba(8, 16, 38, .55); }
.rc-glass { fill: #8FC1EE; }
.rc-grid-prod rect { fill: #fff; opacity: .9; }
.rc-door { fill: #0A1430; }
.rc-screen { fill: #7FD0FF; }
.rc-awn2 { fill: #F4EFE3; }
.rc-gold { fill: var(--rc-gold); } .rc-blue { fill: #478AC9; } .rc-white { fill: #fff; } .rc-coral { fill: #E26D5A; }
.rc-scr { fill: #0A1430; stroke: var(--rc-gold); stroke-width: .8; }
.rc-bar { fill: #E8EEF8; } .rc-bdot { fill: #0E1A3A; }
.rc-cg { fill: var(--rc-gold); } .rc-cb { fill: #6FA6DC; } .rc-cw { fill: #E8EEF8; }
.rc-sh { fill: #478AC9; } .rc-sw { fill: #fff; } .rc-sc { fill: #E8EEF8; } .rc-sg { fill: var(--rc-gold); }
.rc-phone { fill: #0A1430; stroke: #E8EEF8; stroke-width: 1; }
.rc-mast { stroke: #9AA8C8; stroke-width: 1.5; }
.rc-beacon { fill: #FF6B5A; }
.rc-tie { stroke: var(--rc-gold); stroke-width: 1; }
.rc-cable { stroke: #C9D2EA; stroke-width: 1; }
.rc-clock { fill: #fff; stroke: #0E1A3A; stroke-width: 1.2; }
.rc-hand { stroke: #0E1A3A; stroke-width: 1.4; stroke-linecap: round; }
.rc-num { font-size: 9px; font-weight: 700; }
.rc-p { fill: var(--rc-gold); } .rc-m { fill: #9CC3EA; }
.rc-cart-i { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rc-cart-w { fill: #fff; }
.rc-plus circle { fill: var(--rc-gold); }
.rc-plus text { fill: #0E1A3A; font-size: 7.5px; font-weight: 700; text-anchor: middle; }
.rc-receipt rect { fill: #fff; } .rc-receipt line { stroke: #9AA3B8; stroke-width: .8; }
.rc-palette { fill: #F4EFE3; } .rc-hole { fill: #0E1A3A; }
.rc-sw-g { fill: var(--rc-gold); } .rc-sw-b { fill: #478AC9; } .rc-sw-w { fill: #fff; stroke: #DAD3C3; } .rc-sw-r { fill: #E26D5A; }
.rc-tree { fill: #2F6B73; } .rc-tree2 { fill: #3E8790; } .rc-trunk { stroke: #6B4F2A; stroke-width: 2; }
.rc-cam-b { fill: #E8EEF8; } .rc-lens { fill: #0A1430; stroke: var(--rc-gold); stroke-width: .8; }
.rc-cone { fill: rgba(212, 167, 60, .22); }
.rc-rec { fill: #FF4D4D; } .rc-rec-t { fill: #FFB4B4; font-size: 6px; font-weight: 700; letter-spacing: .05em; }
.rc-star { fill: #fff; }
.rc-dot circle { fill: var(--rc-gold); } .rc-dot .rc-halo { opacity: .25; }

/* labels, hover, focus, tap */
.rc-bld { cursor: pointer; outline: none; }
.rc-lift { transition: transform .25s ease; }
.rc-tag { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.rc-tag rect { fill: #0E1A3A; stroke: var(--rc-gold); stroke-width: 1; }
.rc-tag path { fill: var(--rc-gold); }
.rc-tag text { fill: #fff; font-size: 11px; font-weight: 600; text-anchor: middle; }
.rc-bld:focus-visible .rc-lift, .rc-bld.is-open .rc-lift { transform: translateY(-6px); }
.rc-bld:focus-visible .rc-tag, .rc-bld.is-open .rc-tag { opacity: 1; pointer-events: auto; }
.rc-bld:focus-visible .rc-tag rect { stroke-width: 2.5; }
@media (hover: hover) {
  .rc-bld:hover .rc-lift { transform: translateY(-6px); }
  .rc-bld:hover .rc-tag { opacity: 1; pointer-events: auto; }
}

/* --- intro timeline (runs once) ---------------------------------------- */
.rc-ground { animation: rc-fade calc(.6s * var(--rc-build)) ease-out both; }
.rc-grid { animation: rc-fade calc(.8s * var(--rc-build)) calc(.1s * var(--rc-build)) ease-out both; }
.rc-rise { animation: rc-rise calc(.75s * var(--rc-build)) calc(var(--d) * var(--rc-build)) cubic-bezier(.25, .8, .3, 1) both; }
.rc-win { animation: rc-fade .35s calc(var(--ld, 2s) * var(--rc-build)) both; }
.rc-board { animation: rc-power .7s calc(2.2s * var(--rc-build)) both; }
.rc-cone-in { animation: rc-fade .6s calc(2.5s * var(--rc-build)) both; }
.rc-dots, .rc-ledger { animation: rc-fade .6s calc(2.6s * var(--rc-build)) both; }

/* --- loops (start at ~3s, 4–10s each) ----------------------------------- */
.rc-jib  { transform-box: view-box; animation: rc-swing calc(10s * var(--rc-speed)) 3s ease-in-out infinite alternate; }
.rc-load { animation: rc-hook calc(8s * var(--rc-speed)) 3s ease-in-out infinite; }
.rc-cable { transform-box: fill-box; transform-origin: 50% 0; animation: rc-cable calc(8s * var(--rc-speed)) 3s ease-in-out infinite; }
.rc-num  { animation: rc-float calc(6s * var(--rc-speed)) calc(3s + var(--n) * 2s * var(--rc-speed)) ease-out infinite both; }
.rc-attend { animation: rc-attend calc(8s * var(--rc-speed)) calc(3s + var(--n) * .45s * var(--rc-speed)) infinite both; }
.rc-hand { transform-box: fill-box; transform-origin: 50% 50%; }
.rc-min  { animation: rc-spin calc(8s * var(--rc-speed)) 3s linear infinite; }
.rc-hr   { animation: rc-spin calc(96s * var(--rc-speed)) 3s linear infinite; }
.rc-flag { transform-box: fill-box; transform-origin: 0 50%; animation: rc-wave calc(4s * var(--rc-speed)) 3s ease-in-out infinite alternate; }
.rc-code { opacity: 0; animation: rc-code calc(9s * var(--rc-speed)) 3s infinite both; }
.rc-site { animation: rc-site calc(9s * var(--rc-speed)) 3s infinite both; }
.rc-cl   { transform-box: fill-box; transform-origin: 0 50%; animation: rc-type calc(9s * var(--rc-speed)) calc(3s + var(--n) * .45s * var(--rc-speed)) infinite both; }
.rc-beacon { animation: rc-blink calc(3s * var(--rc-speed)) 3s ease-in-out infinite alternate; }
.rc-parcel { animation: rc-parcel calc(7s * var(--rc-speed)) calc(3s + var(--n) * 3.5s * var(--rc-speed)) ease-in-out infinite both; }
.rc-plus { transform-box: fill-box; transform-origin: 50% 50%; animation: rc-pop calc(5s * var(--rc-speed)) 3.4s infinite both; }
.rc-receipt { transform-box: fill-box; transform-origin: 50% 100%; animation: rc-print calc(6s * var(--rc-speed)) 3.2s ease-in-out infinite both; }
.rc-swatch { animation: rc-swatch calc(8s * var(--rc-speed)) calc(3s + var(--n) * 2s * var(--rc-speed)) infinite both; }
.rc-lp { transform-box: fill-box; transform-origin: 50% 50%; animation: rc-logo calc(7s * var(--rc-speed)) calc(3s + var(--n) * .6s * var(--rc-speed)) infinite both; }
.rc-cam  { transform-box: view-box; animation: rc-pan calc(9s * var(--rc-speed)) 3s ease-in-out infinite alternate; }
.rc-cone { animation: rc-glow calc(4s * var(--rc-speed)) 3s ease-in-out infinite alternate; }
.rc-rec  { animation: rc-blink calc(2s * var(--rc-speed)) 2.8s steps(2, jump-none) infinite; }
.rc-dot-i { animation: rc-di calc(8s * var(--rc-speed)) 2.8s linear infinite both; }
.rc-dot-j { animation: rc-dj calc(9s * var(--rc-speed)) 3.4s linear infinite both; }
.rc-dot-i.rc-rev { animation-duration: calc(10s * var(--rc-speed)); animation-delay: 4.5s; animation-direction: reverse; }
.rc-dot-j.rc-rev { animation-duration: calc(7s * var(--rc-speed)); animation-delay: 5.2s; animation-direction: reverse; }
.rc-star { animation: rc-twinkle calc(5s * var(--rc-speed)) calc(var(--n) * .7s) ease-in-out infinite alternate; }

@keyframes rc-fade { from { opacity: 0; } }
@keyframes rc-rise {
  0%   { opacity: 0; transform: translateY(70px); }
  55%  { opacity: 1; transform: translateY(-7px); }
  78%  { transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}
@keyframes rc-power { 0% { opacity: 0; } 30% { opacity: .8; } 40% { opacity: .15; } 60% { opacity: 1; } 72% { opacity: .5; } 100% { opacity: 1; } }
@keyframes rc-swing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes rc-hook {
  0%, 8%   { opacity: 1; transform: translateY(0); }
  42%, 56% { opacity: 1; transform: translateY(44px); }
  60%      { opacity: 0; transform: translateY(44px); }
  62%      { opacity: 0; transform: translateY(0); }
  80%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes rc-cable { 0%, 8% { transform: scaleY(1); } 42%, 60% { transform: scaleY(1.88); } 80%, 100% { transform: scaleY(1); } }
@keyframes rc-float { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; } 70%, 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes rc-attend { 0% { opacity: 0; } 6%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-wave { to { transform: scaleX(.86); } }
@keyframes rc-code { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rc-site { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rc-type { 0% { transform: scaleX(0); } 5%, 100% { transform: scaleX(1); } }
@keyframes rc-blink { from { opacity: .25; } to { opacity: 1; } }
@keyframes rc-parcel {
  0%   { opacity: 0; transform: translate(0, 0); }
  10%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(var(--rc-pv)); }
  75%, 100% { opacity: 0; transform: translate(var(--rc-pv)); }
}
@keyframes rc-pop { 0% { opacity: 0; transform: scale(.3); } 8% { opacity: 1; transform: scale(1.12); } 14% { transform: scale(1); } 55% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1); } }
@keyframes rc-print {
  0%       { opacity: 1; transform: translateY(0) scaleY(0); }
  40%, 62% { opacity: 1; transform: translateY(0) scaleY(1) rotate(0); }
  80%      { opacity: 0; transform: translateY(-10px) scaleY(1) rotate(-10deg); }
  100%     { opacity: 0; transform: translateY(-10px) scaleY(1) rotate(-10deg); }
}
@keyframes rc-swatch { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes rc-logo { 0% { opacity: 0; transform: scale(.5); } 8% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes rc-pan { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes rc-glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes rc-di { 0% { opacity: 0; transform: translate(0, 0); } 8%, 92% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--rc-di)); } }
@keyframes rc-dj { 0% { opacity: 0; transform: translate(0, 0); } 8%, 92% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--rc-dj)); } }
@keyframes rc-twinkle { from { opacity: .15; } to { opacity: .9; } }

/* paused when the hero is off-screen or the tab is hidden (set by main.js) */
.rc-city.is-paused, .rc-city.is-paused * { animation-play-state: paused !important; }

/* reduced motion: finished city, no movement (global rule below also removes animations) */
@media (prefers-reduced-motion: reduce) {
  .rc-code { opacity: 0; }
  .rc-lift { transition: none; }
}
@media (max-width: 959px) {
  .hero-city { margin-top: 8px; max-width: 520px; }
}
/* wide screens: let the city use some of the empty right margin */
@media (min-width: 1200px) {
  .hero-city { width: calc(100% + 80px); max-width: none; margin-right: -80px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
