:root{
  --gold:#c39c33; --gold-soft:#e6d080; --gold-deep:#9a741d; --gold2:#f1d17e;
  --black:#080808; --ink:#050505;
  --text:#f5f4ef; --text-soft:#cbc8c0; --muted:#9b9588;
  --line:rgba(255,255,255,.10); --line-strong:rgba(195,156,51,.30);
  --panel:rgba(255,255,255,.06);
  --shadow:0 18px 60px rgba(0,0,0,.32);
  --radius:26px; --radius-sm:18px;
  --container:min(1280px, calc(100% - 32px));
  --font:"Manrope",system-ui,sans-serif;
  --bg-1:#0a0a0a; --bg-2:#121212; --bg-3:#0d0d0f;
  --hero-overlay:linear-gradient(180deg, rgba(7,7,7,.46), rgba(7,7,7,.78));
  --header-bg:linear-gradient(180deg, rgba(10,10,10,.94), rgba(10,10,10,.84));
  --footer-bg:linear-gradient(180deg, rgba(8,8,8,.94), rgba(8,8,8,.98));
  --card:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  --ease:cubic-bezier(.16,1,.3,1);
}
html[data-theme="light"]{
  --text:#161616; --text-soft:#595959; --muted:#6a655b;
  --line:rgba(20,20,20,.11); --line-strong:rgba(195,156,51,.28);
  --panel:rgba(255,255,255,.72);
  --shadow:0 18px 60px rgba(58,42,8,.12);
  --bg-1:#f7f1e7; --bg-2:#f3ecdf; --bg-3:#eee7da;
  --hero-overlay:linear-gradient(180deg, rgba(244,239,231,.28), rgba(20,16,8,.42));
  --header-bg:linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,246,240,.86));
  --footer-bg:linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,240,230,.95));
  --card:linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
html[data-lang="es"] .lang-en, html[data-lang="en"] .lang-es{display:none!important}
body{margin:0;font-family:var(--font);color:var(--text);background:linear-gradient(180deg,var(--bg-1),var(--bg-3) 55%,var(--bg-1));position:relative;overflow-x:hidden;line-height:1.6}
a{color:inherit;text-decoration:none} img{max-width:100%;display:block} button,input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--gold);color:#090909}
.skip{position:absolute;left:12px;top:-80px;z-index:10000;background:#fff;color:#000;padding:10px 14px;border-radius:8px}
.skip:focus{top:12px}

/* gold atmosphere + faint logo pattern */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-4;background:
  radial-gradient(circle at top left, rgba(195,156,51,.08), transparent 22%),
  radial-gradient(circle at 100% 0, rgba(195,156,51,.06), transparent 16%),
  linear-gradient(180deg, transparent, rgba(195,156,51,.03) 52%, transparent 100%)}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-3;background:
  repeating-linear-gradient(90deg, rgba(195,156,51,.026) 0 1px, transparent 1px 72px),
  repeating-linear-gradient(0deg, rgba(195,156,51,.022) 0 1px, transparent 1px 72px);opacity:.4}
.page-shell{position:relative;min-height:100vh}
.page-shell::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-2;
  background-image:url('../img/isotipo-rb-correcto.png');
  background-repeat:repeat;background-size:92px auto;opacity:.018;filter:grayscale(1) brightness(1.1)}
html[data-theme="light"] .page-shell::before{opacity:.012;filter:grayscale(1) sepia(.3) brightness(.85)}

.container{width:var(--container);margin:0 auto;position:relative;z-index:2}

/* LOADER — Nueva carpeta */
.rb-loader{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:#000;transition:opacity .55s ease,visibility .55s ease;overflow:hidden}
.rb-loader.hidden{opacity:0;visibility:hidden;pointer-events:none}
.rb-loader::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 7%,rgba(195,156,51,.07) 7.06% 7.18%,transparent 7.18% 14%),radial-gradient(circle at center,rgba(195,156,51,.05),transparent 58%);opacity:.42}
.rb-loader::after{content:"";position:absolute;inset:-10% 0;background:repeating-linear-gradient(90deg,transparent 0 18%,rgba(216,177,78,.18) 18.08% 18.16%,transparent 18.16% 36%);opacity:.18;mix-blend-mode:screen;animation:rbGoldStripes 8s linear infinite}
.rb-loader-inner{position:relative;display:grid;gap:18px;place-items:center;padding:34px 40px;border-radius:28px;background:radial-gradient(circle at center,rgba(195,156,51,.10),transparent 68%)}
.rb-loader-logo{width:94px;height:94px;object-fit:contain;animation:rbPulseZoom 2.2s ease-in-out infinite}
.rb-loader-line{width:160px;height:2px;background:linear-gradient(90deg,transparent,#c39c33,#fff,#c39c33,transparent);background-size:200% 100%;animation:rbShine 1.8s linear infinite}
@keyframes rbGoldStripes{0%,100%{transform:translateX(-6%)}50%{transform:translateX(6%)}}
@keyframes rbPulseZoom{0%,100%{transform:scale(.92);filter:drop-shadow(0 0 0 transparent)}50%{transform:scale(1.06);filter:drop-shadow(0 0 24px rgba(195,156,51,.34))}}
@keyframes rbShine{to{background-position:200% 0}}

/* HEADER — Nueva carpeta */
.topbar{position:sticky;top:0;z-index:80;backdrop-filter:blur(14px);background:var(--header-bg);border-bottom:1px solid var(--line)}
.topbar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(195,156,51,.86),transparent)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.logo{display:flex;align-items:center;gap:12px;min-width:0}
.logo img{width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(195,156,51,.14))}
.logo-mark{display:flex;flex-direction:column}
.logo-title{letter-spacing:.26em;text-transform:uppercase;font-size:.98rem;line-height:1;font-weight:700;white-space:nowrap}
.logo-sub{font-size:.66rem;letter-spacing:.36em;text-transform:uppercase;color:var(--text-soft);margin-top:5px;white-space:nowrap}
.nav-menu{display:flex;align-items:center;gap:16px;flex:1;justify-content:center}
.nav-menu a{position:relative;font-size:.74rem;text-transform:uppercase;letter-spacing:.11em;padding:6px 0;white-space:nowrap;color:var(--text)}
.nav-menu a::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;transform:scaleX(0);background:linear-gradient(90deg,transparent,var(--gold),transparent);transition:.35s}
.nav-menu a:hover::after,.nav-menu a.active::after{transform:scaleX(1)}
.nav-actions{display:flex;align-items:center;gap:8px}
.icon-toggle,.flag-btn{border:1px solid var(--line-strong);background:rgba(255,255,255,.05);color:var(--text);width:38px;height:38px;border-radius:999px;display:grid;place-items:center;cursor:pointer;transition:.3s;padding:0}
.flag-btn img{width:20px;height:14px;object-fit:cover;border-radius:2px}
.icon-toggle:hover,.flag-btn:hover,.flag-btn.active{transform:translateY(-2px);border-color:var(--gold);background:rgba(195,156,51,.12)}
.contact-btn{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#d8b14e,#c39c33);color:#0a0a0a;font-weight:800;letter-spacing:.12em;text-transform:uppercase;font-size:.72rem;padding:11px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 30px rgba(195,156,51,.18);position:relative;overflow:hidden}
.contact-btn::before{content:"";position:absolute;inset:0;transform:translateX(-120%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transition:transform .55s}
.contact-btn:hover{transform:translateY(-2px)} .contact-btn:hover::before{transform:translateX(120%)}
.menu-btn{display:none;width:42px;height:42px;border-radius:999px;border:1px solid var(--line-strong);background:transparent;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.menu-btn span{width:18px;height:1.5px;background:currentColor;display:block}
.mobile-panel{display:none;position:fixed;inset:74px 12px auto;z-index:79;background:var(--header-bg);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}
.mobile-panel.open{display:grid;gap:10px}
.mobile-panel a{padding:10px 8px;border-bottom:1px solid var(--line);text-transform:uppercase;letter-spacing:.1em;font-size:.82rem}

/* HERO */
.hero{position:relative;min-height:92vh;display:flex;align-items:flex-end;overflow:hidden}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.04);animation:heroBreath 16s ease-in-out infinite alternate}
@keyframes heroBreath{to{transform:scale(1.08)}}
.hero-shade{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.62) 48%,rgba(0,0,0,.28) 100%),
  linear-gradient(0deg,rgba(0,0,0,.88),transparent 52%),
  radial-gradient(circle at 28% 48%,rgba(217,170,66,.08),transparent 28%)}
html[data-theme="light"] .hero-shade{background:
  linear-gradient(90deg,rgba(20,16,8,.72),rgba(20,16,8,.28) 70%),
  linear-gradient(0deg,rgba(247,241,231,.55),transparent 50%)}
.hero-copy{position:relative;z-index:2;padding:130px 0 92px;max-width:860px}
.eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:.76rem;letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft);font-weight:700}
.eyebrow::before{content:"";width:34px;height:1px;background:var(--gold)}
.hero h1,.page-hero h1{font-size:clamp(2.2rem,5.4vw,4.6rem);line-height:1.02;letter-spacing:-.03em;margin:16px 0 18px;font-weight:800;text-wrap:balance}
.hero h1 em,h2 em{font-style:normal;background:linear-gradient(90deg,#f6d982,#c38b27 58%,#efd07a);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:goldFlow 7s linear infinite}
@keyframes goldFlow{to{background-position:200% 0}}
.hero-lead{font-size:clamp(1.02rem,1.8vw,1.25rem);color:#e6e1d8;max-width:640px;border-left:2px solid rgba(217,170,66,.42);padding-left:18px}
html[data-theme="light"] .hero-lead{color:#2a2a2a}
.hero-actions,.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 18px;border-radius:999px;border:1px solid var(--line-strong);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem;background:rgba(255,255,255,.03);transition:.35s var(--ease);cursor:pointer}
.btn:hover{transform:translateY(-3px)}
.btn.gold,.btn-gold{background:linear-gradient(135deg,var(--gold2),#bd8623);color:#080808;border-color:transparent;box-shadow:0 14px 40px rgba(199,144,37,.16)}
.btn.ghost{background:rgba(8,8,8,.55);backdrop-filter:blur(10px)}
.hero-values{position:relative;z-index:2;display:flex;flex-wrap:wrap;gap:22px;padding:16px 0 28px;border-top:1px solid var(--line);color:#ddd;font-size:.86rem}
.hero-values span{display:flex;align-items:center;gap:8px}
.hero-values svg{width:18px;height:18px;color:var(--gold)}

.page-hero{position:relative;padding:120px 0 56px;overflow:hidden;border-bottom:1px solid var(--line)}
.page-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 20%,rgba(217,170,66,.12),transparent 36%)}
.page-hero .intro{max-width:720px;color:var(--text-soft);font-size:1.08rem}

.section{padding:92px 0;position:relative}
.section-head{max-width:880px;margin-bottom:40px}
.section-head h2,.split-copy h2,.cta-band h2{font-size:clamp(1.8rem,3.8vw,3.1rem);line-height:1.12;letter-spacing:-.03em;margin:10px 0 14px;font-weight:800}
.section-head p,.split-copy p{color:var(--text-soft)}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cap-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.card,.panel,.cap-card,.situation-card,.person-card,.blog-card,.contact-card,.form-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);position:relative;overflow:hidden}
.cap-card{min-height:280px;padding:24px;display:flex;flex-direction:column;transition:.4s}
.cap-card:hover,.hover-lift:hover{transform:translateY(-7px);border-color:var(--gold)}
.cap-card>span{color:var(--gold-soft);font-weight:800;letter-spacing:.14em;font-size:.78rem}
.cap-card svg{width:30px;height:30px;color:var(--gold);margin:28px 0 14px}
.cap-card h3{margin:0 0 8px;font-size:1.12rem}
.cap-card p{color:var(--muted);font-size:.92rem;margin:0 0 16px}
.cap-card b{margin-top:auto;color:var(--gold-soft);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}

.split-feature{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.split-image{position:relative}
.split-image img{width:100%;height:520px;object-fit:cover;border-radius:28px;filter:grayscale(.35)}
.metric{position:absolute;right:16px;bottom:22px;background:var(--gold);color:#080808;border-radius:18px;padding:16px 20px}
.metric b{display:block;font-size:2rem;line-height:1}
.split-copy ul{list-style:none;padding:0;display:grid;gap:12px;margin:22px 0}
.split-copy li{display:flex;gap:10px;align-items:flex-start}

.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.sector-card{min-height:320px;border-radius:24px;overflow:hidden;position:relative;background:#111}
.sector-card img,.sector-card .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.4);transition:.6s}
.sector-card:hover img{transform:scale(1.06);filter:grayscale(0)}
.sector-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.92),rgba(0,0,0,.15))}
.sector-card>div{position:absolute;inset:auto 0 0;padding:24px;z-index:1}
.sector-card small{color:var(--gold-soft);letter-spacing:.16em}
.sector-card h3{margin:6px 0;font-size:1.45rem}
.sector-card p{color:#ddd;margin:0 0 8px}

.situation-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.situation-card{padding:26px;display:grid;gap:10px}
.situation-card h3{margin:0;font-size:1.2rem}
.situation-card p{color:var(--muted);margin:0}
.situation-card span{color:var(--gold-soft);font-weight:700;font-size:.86rem}

.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.process-grid article{padding:28px;border:1px solid var(--line);border-radius:24px;background:var(--card)}
.process-grid article>span{color:var(--gold-soft);font-weight:800}
.process-grid svg{width:30px;height:30px;color:var(--gold);margin:22px 0 8px}

.cta-band{margin:0 auto 80px;width:var(--container);padding:42px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(110deg,rgba(255,255,255,.06),rgba(0,0,0,.2));display:flex;justify-content:space-between;align-items:center;gap:24px}
.cta-band h2{margin:8px 0 0;max-width:720px}

/* TEAM — Nueva style cards + v9 structure */
.team-list{display:grid;gap:20px}
.person-card{display:grid;grid-template-columns:320px 1fr;gap:36px;padding:20px;align-items:center}
.person-photo{height:380px;border-radius:20px;overflow:hidden}
.person-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;filter:grayscale(.55);transition:.7s}
.person-card:hover img{filter:grayscale(0);transform:scale(1.03)}
.person-card small{color:var(--gold-soft);letter-spacing:.16em;text-transform:uppercase}
.person-card h2{font-size:2rem;margin:8px 0}
.person-card p{color:var(--muted);max-width:720px}

/* BLOG */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.blog-card .thumb{aspect-ratio:16/10;overflow:hidden}
.blog-card .thumb img{width:100%;height:100%;object-fit:cover;transition:.6s}
.blog-card:hover .thumb img{transform:scale(1.05)}
.blog-card .copy{padding:20px}
.blog-card .type{display:inline-flex;padding:6px 10px;border:1px solid var(--line-strong);border-radius:999px;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft);margin-bottom:10px}
.article-wrap{display:grid;grid-template-columns:1fr 320px;gap:32px}
.article-body{padding:32px}
.article-body h2{margin:28px 0 10px}
.article-body p,.article-body li{color:var(--text-soft);line-height:1.85}
.article-cover{width:100%;max-height:420px;object-fit:cover;border-radius:22px;margin-bottom:22px}

/* CONTACT */
.contact-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:22px}
.form-card{padding:30px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
label{display:grid;gap:6px;font-size:.86rem}
input,textarea,select{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text)}
textarea{min-height:140px;resize:vertical}
.form-note{font-size:.82rem;color:var(--muted);margin-top:10px}
.contact-side{display:grid;gap:16px}
.contact-card{padding:26px}
.contact-card a{display:block;color:var(--gold-soft);margin-top:8px}
.map-wrap{min-height:240px;border-radius:22px;overflow:hidden;border:1px solid var(--line)}
.map-wrap iframe{width:100%;height:100%;min-height:240px;border:0;filter:grayscale(1) contrast(1.05)}

/* FOOTER — Nueva */
.site-footer{position:relative;margin-top:10px;padding:40px 0 18px;border-top:1px solid var(--line);background:var(--footer-bg)}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(195,156,51,.86),transparent)}
.footer-grid{display:grid;grid-template-columns:1.2fr .9fr .9fr .8fr;gap:28px}
.footer-grid h3{color:var(--gold-soft);font-size:.78rem;letter-spacing:.16em;text-transform:uppercase}
.footer-grid a,.footer-grid p{color:var(--text-soft);display:block;margin:6px 0}
.footer-bottom{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--text-soft);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase}

.whatsapp-float{position:fixed;right:20px;bottom:20px;z-index:70;width:56px;height:56px;border-radius:50%;background:#25D366;display:grid;place-items:center;box-shadow:0 12px 30px rgba(0,0,0,.35);color:#fff}
.whatsapp-float svg{width:28px;height:28px}

.reveal{opacity:0;transform:translateY(28px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in-view{opacity:1;transform:none}

.directory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.directory-card{padding:26px;min-height:240px;display:flex;flex-direction:column;gap:8px}
.directory-card b{margin-top:auto;color:var(--gold-soft);font-size:.75rem;text-transform:uppercase}

@media(max-width:1080px){
  .nav-menu,.contact-btn{display:none}
  .menu-btn{display:flex}
  .cap-grid,.grid-3,.grid-4,.sector-grid,.process-grid,.blog-grid,.directory-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .grid-2,.split-feature,.situation-grid,.contact-layout,.article-wrap,.person-card{grid-template-columns:1fr}
  .hero{min-height:auto}
  .hero-copy{padding:110px 0 40px}
}
@media(max-width:720px){
  .cap-grid,.grid-3,.grid-4,.sector-grid,.process-grid,.blog-grid,.directory-grid,.footer-grid,.cta-band{grid-template-columns:1fr}
  .cta-band{width:calc(100% - 32px);padding:26px;display:grid}
  .person-photo{height:340px}
  .logo-sub{display:none}
  .section{padding:64px 0}
}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none}
  .rb-loader-logo,.rb-loader-line,.hero-bg{animation:none}
}


/* =========================================================
   RB REFINED · 2026-09-30
   Keeps the original index language and extends it to every page.
   ========================================================= */
:root{--page-hero-image:url('../img/covers/legal-justicia.webp');--gold-glow:rgba(218,177,72,.13)}
body[data-page="firma.html"]{--page-hero-image:url('../img/covers/legal-corporativo.webp')}
body[data-page="areas.html"]{--page-hero-image:url('../img/covers/legal-estrategia.webp')}
body[data-page="sectores.html"]{--page-hero-image:url('../img/covers/legal-justicia.webp')}
body[data-page="equipo.html"]{--page-hero-image:url('../img/covers/legal-acuerdo.webp')}
body[data-page="blog.html"]{--page-hero-image:url('../img/covers/legal-justicia.webp')}
body[data-page="contacto.html"]{--page-hero-image:url('../img/covers/legal-firma.webp')}
body[data-page="aviso-privacidad.html"]{--page-hero-image:url('../img/covers/legal-firma.webp')}

/* Loader: restrained vertical gold lights with depth. */
.rb-loader{perspective:900px}
.rb-loader-lights{position:absolute;inset:0;overflow:hidden;transform-style:preserve-3d;pointer-events:none}
.rb-loader-beam{position:absolute;left:var(--x);bottom:-8%;width:var(--w);height:var(--h);opacity:var(--o);transform:translateZ(var(--z)) scaleY(.25);transform-origin:bottom;background:linear-gradient(180deg,transparent,rgba(255,226,142,.72) 35%,rgba(195,156,51,.34) 72%,transparent);box-shadow:0 0 12px rgba(221,183,83,.32),0 0 28px rgba(195,156,51,.14);filter:blur(.25px);animation:rbBeam var(--d) ease-in-out var(--delay) infinite}
@keyframes rbBeam{0%,100%{opacity:.025;transform:translateZ(var(--z)) translateY(18%) scaleY(.22)}45%{opacity:var(--o);transform:translateZ(var(--z)) translateY(-4%) scaleY(1)}72%{opacity:calc(var(--o) * .5);transform:translateZ(var(--z)) translateY(-12%) scaleY(.68)}}
.rb-loader-inner{z-index:2}

/* Slim gold progress line and subtle motion. */
.rb-scroll-progress{position:fixed;top:0;left:0;width:100%;height:2px;z-index:100000;transform:scaleX(0);transform-origin:left center;background:linear-gradient(90deg,#9a741d,#f1d17e 50%,#c39c33);box-shadow:0 0 16px rgba(195,156,51,.35);will-change:transform}
.reveal{transition-delay:var(--reveal-delay,0ms)}

/* The original index remains structurally intact; these refinements mostly target inner pages. */
body:not([data-page="index.html"]) .page-hero{min-height:430px;display:flex;align-items:center;padding:128px 0 72px;background:#050505;isolation:isolate;overflow:hidden}
body:not([data-page="index.html"]) .page-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#070707 0%,rgba(7,7,7,.96) 40%,rgba(7,7,7,.68) 58%,rgba(7,7,7,.18) 100%),linear-gradient(0deg,rgba(0,0,0,.62),transparent 58%),radial-gradient(circle at 28% 56%,rgba(195,156,51,.12),transparent 26%)}
body:not([data-page="index.html"]) .page-hero::after{content:"";position:absolute;right:-1px;top:0;bottom:0;width:min(58%,900px);z-index:-2;background-image:var(--page-hero-image);background-size:cover;background-position:center;clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);filter:saturate(.88) contrast(1.04) brightness(.78);transform:scale(1.025);animation:rbInnerHero 17s ease-in-out infinite alternate}
body:not([data-page="index.html"]) .page-hero .container{z-index:2}
body:not([data-page="index.html"]) .page-hero .container>*{max-width:690px}
body:not([data-page="index.html"]) .page-hero h1{font-size:clamp(2.35rem,5vw,4.7rem);text-shadow:0 18px 46px rgba(0,0,0,.48)}
body:not([data-page="index.html"]) .page-hero .intro{color:#d7d2c8;max-width:670px;border-left:1px solid rgba(230,208,128,.35);padding-left:18px}
@keyframes rbInnerHero{to{transform:scale(1.07) translateX(1.2%)}}

/* Premium surfaces reuse the index vocabulary: glass, fine gold edge, rounded geometry. */
.section-tight{padding-top:36px}
.insight-card,.principle-card,.office-map-card,.detail-list{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.insight-card::before,.principle-card::before,.office-map-card::before,.detail-list::before,.directory-card::before,.contact-card::before,.form-card::before,.process-grid article::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(360px circle at var(--px,50%) var(--py,50%),rgba(213,171,61,.095),transparent 46%);opacity:.9}
.insight-card,.principle-card{padding:28px;min-height:260px;transition:.45s var(--ease)}
.insight-card:hover,.principle-card:hover{transform:translateY(-6px);border-color:rgba(195,156,51,.38)}
.insight-card>span{display:inline-flex;padding:5px 9px;border:1px solid var(--line-strong);border-radius:999px;color:var(--gold-soft);font-size:.72rem;letter-spacing:.13em}
.insight-card svg,.principle-card svg{width:30px;height:30px;color:var(--gold);margin:28px 0 10px}
.insight-card h3,.principle-card h3{margin:0 0 9px}
.insight-card p,.principle-card p{color:var(--muted);margin:0}
.premium-split .split-image img{box-shadow:0 24px 70px rgba(0,0,0,.28)}
.premium-split .split-image::after{content:"";position:absolute;right:-1px;top:-1px;width:34%;height:34%;border-top:1px solid rgba(230,208,128,.48);border-right:1px solid rgba(230,208,128,.48);border-radius:0 28px 0 0;pointer-events:none}
.editorial-panel{display:grid;grid-template-columns:.9fr 1.1fr;gap:42px;align-items:start;padding:42px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(125deg,rgba(255,255,255,.055),rgba(255,255,255,.018));box-shadow:var(--shadow);overflow:hidden}
.editorial-panel::after{content:"";position:absolute;inset:0 0 0 auto;width:40%;background:linear-gradient(135deg,transparent,rgba(195,156,51,.045));clip-path:polygon(38% 0,100% 0,100% 100%,0 100%);pointer-events:none}
.editorial-panel h2{font-size:clamp(1.8rem,3.4vw,3rem);line-height:1.12;margin:12px 0}
.editorial-panel p{color:var(--text-soft)}
.editorial-list{display:grid;gap:0;position:relative;z-index:1}
.editorial-list>div{display:grid;grid-template-columns:52px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);color:var(--text-soft)}
.editorial-list>div:last-child{border-bottom:0}.editorial-list b{color:var(--gold-soft);font-size:.76rem;letter-spacing:.14em}

/* Directory cards feel fuller and visually related to home capability cards. */
.directory-card{min-height:270px;transition:.4s var(--ease)}
.directory-card>span{display:inline-flex;width:max-content;padding:5px 9px;border:1px solid var(--line-strong);border-radius:999px;color:var(--gold-soft);font-size:.72rem;letter-spacing:.13em}
.directory-card svg{width:28px;height:28px;color:var(--gold);margin:18px 0 5px}
.directory-card h3{font-size:1.25rem;margin:4px 0}.directory-card p{color:var(--muted)}
.directory-card:hover{transform:translateY(-7px);border-color:rgba(195,156,51,.4)}
.sector-card{min-height:360px}.sector-card>div{padding:28px}.sector-card .sector-more{display:inline-flex;margin-top:12px;color:var(--gold-soft);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;transform:translateY(6px);opacity:.72;transition:.35s}.sector-card:hover .sector-more{transform:none;opacity:1}
.sector-card img{filter:grayscale(.34) brightness(.78)}.sector-card:hover img{filter:grayscale(0) brightness(.92)}

/* Rich practice/sector detail layout. */
.detail-lead{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}
.detail-main{padding:34px 4px}.detail-main h2{font-size:clamp(1.8rem,3vw,2.8rem);margin:12px 0 16px}.detail-main p{max-width:850px;color:var(--text-soft);font-size:1.04rem}.detail-main .detail-intro{font-size:1.2rem;color:var(--text);line-height:1.7}
.detail-aside{padding:30px;position:sticky;top:105px}.detail-aside small{color:var(--gold-soft);letter-spacing:.12em;font-size:.68rem}.detail-aside h3{font-size:1.35rem;margin:12px 0 22px}
.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-list{padding:32px}.detail-list h2{font-size:1.7rem;margin:10px 0 18px}.detail-list ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}.detail-list li{display:grid;grid-template-columns:20px 1fr;gap:10px;color:var(--text-soft);padding:11px 0;border-bottom:1px solid var(--line)}.detail-list li:last-child{border-bottom:0}.detail-list li svg{width:18px;height:18px;color:var(--gold);margin-top:3px}
.related-practices{display:flex;flex-wrap:wrap;gap:10px}.related-practices a{padding:12px 15px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(255,255,255,.035);color:var(--text-soft);transition:.3s}.related-practices a:hover{border-color:var(--gold);color:var(--text);transform:translateY(-2px)}

/* Team: four architectural cards per row, dark image and interactive overlay. */
.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.team-tile{position:relative;min-height:510px;overflow:hidden;border:1px solid rgba(195,156,51,.2);background:#080808;clip-path:polygon(0 0,100% 0,100% 92%,91% 100%,0 100%);box-shadow:0 24px 70px rgba(0,0,0,.32);transition:.5s var(--ease)}
.team-tile::before{content:"";position:absolute;inset:0;z-index:2;border-top:1px solid rgba(239,208,122,.34);border-left:1px solid rgba(239,208,122,.12);pointer-events:none}
.team-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;filter:grayscale(.72) brightness(.42) contrast(1.05);transform:scale(1.025);transition:.7s var(--ease)}
.team-tile-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.04) 25%,rgba(0,0,0,.54) 64%,rgba(0,0,0,.96) 100%),linear-gradient(125deg,transparent 54%,rgba(195,156,51,.09));transition:.5s}
.team-tile-copy{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:24px 22px 28px}
.team-tile small{color:var(--gold-soft);letter-spacing:.15em;text-transform:uppercase;font-size:.68rem}.team-tile h2{font-size:1.35rem;line-height:1.12;margin:7px 0 8px}.team-tile p{margin:0;color:#bbb6ac;font-size:.86rem;min-height:42px}
.team-tile-actions{display:flex;gap:9px;align-items:center;margin-top:18px;opacity:0;transform:translateY(16px);transition:.4s var(--ease)}
.team-tile .btn{min-height:42px;padding:9px 13px;font-size:.68rem}.team-linkedin{width:42px;height:42px;border-radius:999px;border:1px solid rgba(230,208,128,.4);display:grid;place-items:center;background:rgba(0,0,0,.42);color:var(--gold-soft);font-weight:800;transition:.3s}
.team-linkedin:hover{background:var(--gold);color:#080808;transform:translateY(-2px)}
.team-tile:hover{transform:translateY(-8px);border-color:rgba(230,208,128,.55)}.team-tile:hover img{filter:grayscale(.15) brightness(.64);transform:scale(1.07)}.team-tile:hover .team-tile-actions{opacity:1;transform:none}.team-tile:hover .team-tile-shade{background:linear-gradient(180deg,rgba(0,0,0,.03) 18%,rgba(0,0,0,.35) 54%,rgba(0,0,0,.94) 100%),linear-gradient(125deg,transparent 50%,rgba(195,156,51,.12))}

/* Team modal overlay. */
body.modal-open{overflow:hidden}.team-modal[hidden]{display:none}.team-modal{position:fixed;inset:0;z-index:100200;display:grid;place-items:center;padding:24px;opacity:0;transition:.25s ease}.team-modal.open{opacity:1}.team-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.82);backdrop-filter:blur(12px)}
.team-modal-panel{position:relative;z-index:1;width:min(1000px,100%);max-height:min(760px,90vh);display:grid;grid-template-columns:390px 1fr;overflow:auto;border:1px solid rgba(230,208,128,.28);border-radius:28px;background:linear-gradient(145deg,#111,#080808);box-shadow:0 40px 120px rgba(0,0,0,.68);transform:translateY(18px) scale(.985);transition:.35s var(--ease)}.team-modal.open .team-modal-panel{transform:none}
.team-modal-photo{min-height:620px;position:relative;overflow:hidden}.team-modal-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 65%,#0c0c0c),linear-gradient(0deg,rgba(0,0,0,.4),transparent 45%)}.team-modal-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;filter:grayscale(.35) brightness(.78)}
.team-modal-content{padding:48px 46px;align-self:center}.team-modal-content h2{font-size:2.3rem;line-height:1.06;margin:12px 0 16px}.team-modal-content h3{margin:26px 0 10px;color:var(--gold-soft);font-size:.88rem;letter-spacing:.12em;text-transform:uppercase}.team-modal-bio{color:var(--text-soft);font-size:1.04rem}.team-modal-content ul{padding-left:18px;color:var(--text-soft);display:grid;gap:9px}.team-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.team-modal-close{position:absolute;right:16px;top:16px;z-index:5;width:42px;height:42px;border-radius:50%;border:1px solid rgba(230,208,128,.35);background:rgba(0,0,0,.62);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}

/* Contact offices and two maps restored. */
.form-intro{color:var(--text-soft);margin-top:-4px;margin-bottom:20px}.form-success{margin-top:18px;padding:12px 14px;border:1px solid rgba(195,156,51,.34);border-radius:14px;background:rgba(195,156,51,.08);color:var(--gold-soft)}.office-number{display:inline-flex;padding:5px 9px;border:1px solid var(--line-strong);border-radius:999px;color:var(--gold-soft);font-size:.7rem;letter-spacing:.14em}.office-map-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.office-map-card{padding:18px}.office-map-copy{padding:8px 8px 18px}.office-map-copy small{color:var(--gold-soft);letter-spacing:.14em}.office-map-copy h3{font-size:1.4rem;margin:7px 0}.office-map-copy p{color:var(--muted);margin:0}.office-map-card .map-wrap{height:300px;min-height:300px}.office-map-card .map-wrap iframe{height:300px;min-height:300px;filter:grayscale(.65) contrast(1.05) brightness(.84);transition:.5s}.office-map-card:hover iframe{filter:grayscale(.25) contrast(1.04) brightness(.9)}

/* Refined micro-interactions. */
.btn,.contact-btn{position:relative;overflow:hidden}.btn::after,.contact-btn::after{content:"";position:absolute;top:-60%;bottom:-60%;width:34%;left:-55%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transition:left .65s var(--ease);pointer-events:none}.btn:hover::after,.contact-btn:hover::after{left:125%}
.site-footer{background:var(--footer-bg)} /* original footer structure intentionally preserved */

@media(max-width:1180px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-panel{grid-template-columns:1fr}.detail-lead{grid-template-columns:1fr}.detail-aside{position:relative;top:auto}.office-map-grid{grid-template-columns:1fr 1fr}}
@media(max-width:780px){body:not([data-page="index.html"]) .page-hero{min-height:500px;align-items:flex-end;padding:120px 0 54px}body:not([data-page="index.html"]) .page-hero::after{width:100%;clip-path:none;opacity:.72}body:not([data-page="index.html"]) .page-hero::before{background:linear-gradient(0deg,#060606 0%,rgba(6,6,6,.86) 54%,rgba(6,6,6,.46) 100%)}.team-grid,.detail-columns,.office-map-grid{grid-template-columns:1fr}.team-tile{min-height:520px}.team-tile-actions{opacity:1;transform:none}.team-modal-panel{grid-template-columns:1fr;max-height:92vh}.team-modal-photo{min-height:340px;height:42vh}.team-modal-photo::after{background:linear-gradient(0deg,#0c0c0c,transparent 55%)}.team-modal-content{padding:30px 24px 34px}.editorial-panel{padding:28px 22px}.firm-pillars{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.rb-loader-beam,body:not([data-page="index.html"]) .page-hero::after{animation:none!important}.team-tile,.team-tile img,.team-tile-actions,.team-modal,.team-modal-panel{transition:none!important}}

/* =========================================================
   RB EXECUTIVE · 2026-09-30 · visual refinement
   ========================================================= */
:root{
  --glass:rgba(16,16,16,.68);
  --glass-strong:rgba(10,10,10,.86);
  --gold-hairline:rgba(226,190,91,.42);
  --gold-haze:rgba(195,156,51,.10);
}

/* More pronounced, still elegant loader. */
.rb-loader{perspective:1200px;background:
  radial-gradient(ellipse at 50% 78%,rgba(195,156,51,.11),transparent 28%),
  radial-gradient(circle at 50% 48%,rgba(195,156,51,.06),transparent 34%),#000}
.rb-loader-lights{position:absolute;inset:0;overflow:hidden;transform-style:preserve-3d;pointer-events:none}
.rb-loader-lights::before{content:"";position:absolute;inset:-15%;background:repeating-linear-gradient(90deg,transparent 0 5.8%,rgba(255,223,134,.05) 5.85% 5.96%,transparent 6.02% 12%);transform:perspective(700px) rotateX(62deg) translateY(52%);transform-origin:center bottom;opacity:.9;animation:rbLoaderFloor 4.8s ease-in-out infinite alternate}
.rb-loader-beam{position:absolute;left:var(--x);bottom:-10%;width:var(--w);height:var(--h);opacity:var(--o);transform:translateZ(var(--z)) scaleY(.12);transform-origin:bottom;background:linear-gradient(180deg,transparent 0%,rgba(255,240,187,.16) 14%,rgba(255,218,117,.88) 48%,rgba(195,156,51,.38) 76%,transparent 100%);box-shadow:0 0 8px rgba(255,226,142,.36),0 0 26px rgba(195,156,51,.26),0 0 58px rgba(195,156,51,.10);filter:blur(var(--blur));animation:rbBeamExecutive var(--d) cubic-bezier(.2,.8,.2,1) var(--delay) infinite}
.rb-loader-horizon{position:absolute;left:10%;right:10%;bottom:18%;height:1px;background:linear-gradient(90deg,transparent,rgba(241,209,126,.86),transparent);box-shadow:0 0 28px rgba(195,156,51,.55);animation:rbHorizon 2.4s ease-in-out infinite}
.rb-loader-orbit{position:absolute;left:50%;top:50%;width:260px;height:260px;margin:-130px;border:1px solid rgba(241,209,126,.17);border-radius:50%;transform:rotateX(68deg);box-shadow:inset 0 0 34px rgba(195,156,51,.05),0 0 24px rgba(195,156,51,.04);animation:rbOrbit 5s linear infinite}
.rb-loader-orbit::before,.rb-loader-orbit::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(241,209,126,.09);inset:24px}.rb-loader-orbit::after{inset:54px}
.rb-loader-inner{padding:44px 54px;backdrop-filter:blur(7px);border:1px solid rgba(241,209,126,.12);box-shadow:0 30px 100px rgba(0,0,0,.65),inset 0 0 44px rgba(195,156,51,.04)}
.rb-loader-logo{width:108px;height:108px;animation:rbPulseExecutive 2.05s ease-in-out infinite;filter:drop-shadow(0 0 16px rgba(195,156,51,.23))}
.rb-loader-line{width:210px;height:2px;box-shadow:0 0 20px rgba(195,156,51,.36)}
@keyframes rbBeamExecutive{0%,100%{opacity:.025;transform:translateZ(var(--z)) translateY(22%) scaleY(.08)}38%{opacity:var(--o);transform:translateZ(var(--z)) translateY(-2%) scaleY(1.06)}62%{opacity:calc(var(--o)*.72);transform:translateZ(var(--z)) translateY(-9%) scaleY(.78)}82%{opacity:.04;transform:translateZ(var(--z)) translateY(-16%) scaleY(.3)}}
@keyframes rbLoaderFloor{to{opacity:.45;transform:perspective(700px) rotateX(62deg) translateY(46%) translateX(2%)}}
@keyframes rbHorizon{50%{opacity:.35;transform:scaleX(.7)}}
@keyframes rbOrbit{to{transform:rotateX(68deg) rotateZ(360deg)}}
@keyframes rbPulseExecutive{0%,100%{transform:translateZ(0) scale(.90);opacity:.86}50%{transform:translateZ(40px) scale(1.08);opacity:1}}
.rb-loaded .page-shell{animation:rbPageIn .95s var(--ease) both}
@keyframes rbPageIn{from{opacity:0;filter:blur(12px);transform:scale(1.008)}to{opacity:1;filter:none;transform:none}}

/* Inner page headers: the supplied diagonal building illustration is the signature image. */
body:not([data-page="index.html"]) .page-hero{min-height:520px;padding:150px 0 86px;border-bottom:1px solid rgba(226,190,91,.22);background:#050505;isolation:isolate}
body:not([data-page="index.html"]) .page-hero::after{
  content:"";position:absolute;right:-1px;top:0;bottom:0;width:min(57%,930px);z-index:-2;
  background-image:url('../img/covers/diagonal-building.webp')!important;background-repeat:no-repeat;background-size:cover;background-position:center 48%;
  clip-path:polygon(23% 0,100% 0,100% 100%,0 100%);filter:invert(1) sepia(.34) saturate(.72) brightness(.73) contrast(1.15);opacity:.78;
  transform:scale(1.04);animation:rbSketchHero 16s ease-in-out infinite alternate;
}
body:not([data-page="index.html"]) .page-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  linear-gradient(90deg,#050505 0%,rgba(5,5,5,.985) 35%,rgba(5,5,5,.88) 51%,rgba(5,5,5,.36) 76%,rgba(5,5,5,.20) 100%),
  linear-gradient(0deg,rgba(0,0,0,.82),transparent 55%),
  radial-gradient(circle at 25% 56%,rgba(195,156,51,.14),transparent 27%)}
body:not([data-page="index.html"]) .page-hero .container{z-index:3}
body:not([data-page="index.html"]) .page-hero .container::after{content:"";position:absolute;top:-140px;bottom:-140px;left:min(66vw,870px);width:1px;background:linear-gradient(180deg,transparent,rgba(241,209,126,.56),transparent);transform:rotate(10deg);box-shadow:0 0 18px rgba(195,156,51,.22);pointer-events:none}
body:not([data-page="index.html"]) .page-hero h1{font-size:clamp(2.7rem,5.7vw,5.5rem);max-width:790px}
body:not([data-page="index.html"]) .page-hero .intro{font-size:clamp(1.02rem,1.5vw,1.2rem);max-width:670px;padding-left:20px;border-left:2px solid rgba(226,190,91,.34)}
@keyframes rbSketchHero{to{transform:scale(1.10) translateX(1.5%);opacity:.9}}

/* Home remains the visual reference, now with a stronger legal hero. */
.hero{min-height:94vh}
.hero-bg{filter:saturate(.78) contrast(1.06) brightness(.82)}
.hero-shade{background:linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.76) 42%,rgba(0,0,0,.25) 76%,rgba(0,0,0,.38) 100%),linear-gradient(0deg,rgba(0,0,0,.94),transparent 54%),radial-gradient(circle at 26% 45%,rgba(217,170,66,.11),transparent 28%)}
.hero-copy{max-width:850px;padding-bottom:112px}
.hero-briefing{position:absolute;right:0;bottom:116px;width:min(340px,30vw);padding:20px;border-radius:22px;background:linear-gradient(145deg,rgba(19,19,19,.72),rgba(4,4,4,.54));border:1px solid rgba(226,190,91,.22);backdrop-filter:blur(18px);box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05);z-index:4;transform-style:preserve-3d}
.hero-briefing::before{content:"";position:absolute;inset:8px;border:1px solid rgba(241,209,126,.08);border-radius:16px;pointer-events:none}
.hero-briefing-kicker{font-size:.64rem;letter-spacing:.2em;color:var(--gold-soft);text-transform:uppercase}
.hero-briefing strong{display:block;font-size:1.02rem;line-height:1.25;margin:8px 0 16px}
.hero-briefing>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.hero-briefing>div>span{display:grid;place-items:center;gap:5px;padding:9px 5px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025);font-size:.67rem;color:#d9d3c6;text-align:center}
.hero-briefing svg{width:17px;height:17px;color:var(--gold)}

/* Floating legal windows. */
.decision-architecture,.area-command,.sector-lenses,.firm-operating-model,.area-decision-layer,.sector-control-room,.contact-first-step{overflow:hidden}
.floating-window-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;perspective:1100px}
.floating-window{position:relative;min-height:292px;padding:28px 26px 26px;border-radius:24px;border:1px solid rgba(226,190,91,.18);background:linear-gradient(150deg,rgba(255,255,255,.072),rgba(255,255,255,.018) 62%,rgba(195,156,51,.035));box-shadow:0 28px 74px rgba(0,0,0,.26);overflow:hidden;transform-style:preserve-3d;will-change:transform}
.floating-window::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(241,209,126,.10),transparent 25%,transparent 70%,rgba(195,156,51,.07));opacity:.65;pointer-events:none}
.floating-window::after{content:"";position:absolute;right:-35px;top:-35px;width:120px;height:120px;border:1px solid rgba(226,190,91,.13);transform:rotate(45deg);box-shadow:0 0 45px rgba(195,156,51,.03)}
.floating-window>span{display:inline-flex;padding:6px 9px;border:1px solid rgba(226,190,91,.27);border-radius:999px;font-size:.68rem;letter-spacing:.16em;color:var(--gold-soft);position:relative;z-index:1}
.floating-window>svg{width:34px;height:34px;color:var(--gold);margin:34px 0 15px;position:relative;z-index:1;filter:drop-shadow(0 8px 16px rgba(195,156,51,.14))}
.floating-window h3{font-size:1.2rem;margin:0 0 9px;position:relative;z-index:1}
.floating-window p{color:var(--muted);font-size:.92rem;margin:0;position:relative;z-index:1}
.floating-window:hover{border-color:rgba(241,209,126,.5);box-shadow:0 38px 95px rgba(0,0,0,.38),0 0 42px rgba(195,156,51,.05)}

/* Reveal system is intentionally more visible than the prior build. */
.reveal{opacity:0;filter:blur(12px);transform:translate3d(0,48px,0) scale(.985);transition:opacity 1s var(--ease),transform 1.05s var(--ease),filter .9s ease;transition-delay:var(--reveal-delay,0ms);will-change:opacity,transform,filter}
.reveal.reveal-left{transform:translate3d(-48px,24px,0) scale(.99)}
.reveal.reveal-right{transform:translate3d(48px,24px,0) scale(.99)}
.reveal.reveal-scale{transform:translate3d(0,20px,0) scale(.94)}
.reveal.in-view{opacity:1;filter:blur(0);transform:translate3d(0,0,0) scale(1)}
.reveal[data-tilt].in-view{transform:perspective(900px) translateY(var(--lift,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))}

/* More dimensional surfaces and clearer section rhythm. */
.section{padding:104px 0}
.section:nth-of-type(even)::after{content:"";position:absolute;left:8%;right:8%;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(226,190,91,.10),transparent)}
.section-head{max-width:940px;margin-bottom:48px}
.section-head>p:last-child{max-width:780px;font-size:1.02rem}
.cap-card,.situation-card,.directory-card,.principle-card,.insight-card,.detail-list,.process-grid article,.form-card,.contact-card,.office-map-card{backdrop-filter:blur(8px)}
.cap-card:hover,.directory-card:hover,.principle-card:hover,.insight-card:hover{box-shadow:0 32px 90px rgba(0,0,0,.38),0 0 0 1px rgba(195,156,51,.06)}

/* Team: four strong cards on the first row; the fifth remains, centered below. */
.team-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.team-tile{min-height:560px;border-radius:4px 26px 4px 26px;clip-path:polygon(0 0,100% 0,100% 89%,88% 100%,0 100%);box-shadow:0 32px 88px rgba(0,0,0,.42)}
.team-tile::after{content:"";position:absolute;left:0;top:0;width:1px;height:42%;background:linear-gradient(180deg,var(--gold-soft),transparent);z-index:4;opacity:.6}
.team-tile:nth-child(5){grid-column:2 / span 2;min-height:500px;max-width:720px;width:100%;justify-self:center}
.team-tile-copy{padding:28px 25px 32px}
.team-tile h2{font-size:1.48rem}
.team-tile-actions{gap:10px}
.team-modal-panel{width:min(1080px,100%);grid-template-columns:430px 1fr;border-color:rgba(241,209,126,.34);box-shadow:0 46px 150px rgba(0,0,0,.78)}
.team-modal-content{padding:54px 50px}

/* Contact: both offices are intentionally prominent. */
.contact-layout{gap:28px;align-items:start}
.form-card{padding:36px}
.contact-card{padding:30px}
.office-map-grid{gap:24px}
.office-map-card{padding:16px;border-radius:28px}
.office-map-copy{padding:14px 14px 20px}
.office-map-card .map-wrap,.office-map-card .map-wrap iframe{height:390px;min-height:390px}
.map-wrap{border-color:rgba(226,190,91,.18);box-shadow:0 28px 70px rgba(0,0,0,.28)}

/* Expanded footer with two office maps. */
.site-footer-expanded{padding:64px 0 22px;margin-top:50px;overflow:hidden;background:radial-gradient(circle at 50% 0,rgba(195,156,51,.08),transparent 30%),linear-gradient(180deg,#090909,#050505)}
.site-footer-expanded::after{content:"";position:absolute;right:-120px;top:-160px;width:460px;height:460px;border:1px solid rgba(226,190,91,.06);border-radius:50%;box-shadow:0 0 0 60px rgba(226,190,91,.016),0 0 0 120px rgba(226,190,91,.008);pointer-events:none}
.footer-topline{display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:start;padding-bottom:40px}
.footer-brand-block>p{max-width:640px;color:var(--text-soft);margin:22px 0}
.footer-contact-pills{display:flex;flex-wrap:wrap;gap:9px}
.footer-contact-pills a{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(226,190,91,.18);border-radius:999px;color:#d9d4c8;background:rgba(255,255,255,.025);font-size:.78rem;transition:.3s}
.footer-contact-pills a:hover{border-color:var(--gold);transform:translateY(-2px);background:rgba(195,156,51,.08)}
.footer-contact-pills svg{width:15px;height:15px;color:var(--gold)}
.footer-links-block{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.footer-links-block h3{color:var(--gold-soft);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;margin:0 0 14px}
.footer-links-block a,.footer-links-block p{display:block;color:var(--text-soft);margin:8px 0;font-size:.88rem}
.footer-links-block a:hover{color:var(--gold-soft)}
.footer-office-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:28px 0 38px;border-top:1px solid rgba(255,255,255,.07)}
.footer-office{display:grid;grid-template-columns:.86fr 1.14fr;min-height:255px;border:1px solid rgba(226,190,91,.16);border-radius:24px;overflow:hidden;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012));box-shadow:0 24px 70px rgba(0,0,0,.27)}
.footer-office-copy{padding:26px;align-self:center}
.footer-office-copy>span{font-size:.66rem;letter-spacing:.17em;color:var(--gold-soft)}
.footer-office-copy h3{font-size:1.28rem;margin:7px 0 10px}
.footer-office-copy p{font-size:.82rem;color:var(--muted);line-height:1.65}
.footer-route{display:inline-flex;color:var(--gold-soft);font-size:.73rem;letter-spacing:.08em;text-transform:uppercase;margin-top:8px}
.footer-map{min-height:255px;overflow:hidden;border-left:1px solid rgba(255,255,255,.06)}
.footer-map iframe{width:100%;height:100%;min-height:255px;border:0;filter:grayscale(.82) contrast(1.06) brightness(.68);transition:.5s var(--ease)}
.footer-office:hover .footer-map iframe{filter:grayscale(.42) contrast(1.04) brightness(.82);transform:scale(1.015)}
.site-footer-expanded .footer-bottom{padding-top:18px;margin-top:0;border-top:1px solid rgba(255,255,255,.07)}
.site-footer-expanded .footer-bottom a{color:var(--gold-soft)}

/* Fine hover motion for sector photography without altering the approved assets. */
.sector-card{min-height:380px;border:1px solid rgba(226,190,91,.13);box-shadow:0 28px 74px rgba(0,0,0,.28)}
.sector-card::before{content:"";position:absolute;inset:0;z-index:1;border:1px solid transparent;background:linear-gradient(135deg,rgba(241,209,126,.18),transparent 28%,transparent 70%,rgba(195,156,51,.12)) border-box;mask:linear-gradient(#000 0 0) padding-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none;opacity:.55}
.sector-card:hover{transform:translateY(-7px);box-shadow:0 36px 96px rgba(0,0,0,.42)}
.sector-card img{transition:transform 1s var(--ease),filter .7s ease}

@media(max-width:1180px){
  .floating-window-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-briefing{display:none}
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team-tile:nth-child(5){grid-column:1 / -1;max-width:650px}
  .footer-topline{grid-template-columns:1fr}
  .footer-office{grid-template-columns:1fr}.footer-map{border-left:0;border-top:1px solid rgba(255,255,255,.06)}
}
@media(max-width:820px){
  body:not([data-page="index.html"]) .page-hero{min-height:560px;padding:132px 0 64px;align-items:flex-end}
  body:not([data-page="index.html"]) .page-hero::after{width:100%;clip-path:none;opacity:.42;background-size:cover;filter:invert(1) sepia(.34) saturate(.65) brightness(.62) contrast(1.15)}
  body:not([data-page="index.html"]) .page-hero::before{background:linear-gradient(0deg,#050505 8%,rgba(5,5,5,.92) 42%,rgba(5,5,5,.48) 100%)}
  body:not([data-page="index.html"]) .page-hero .container::after{display:none}
  .footer-office-grid{grid-template-columns:1fr}
  .office-map-card .map-wrap,.office-map-card .map-wrap iframe{height:330px;min-height:330px}
}
@media(max-width:620px){
  .section{padding:74px 0}
  .floating-window-grid,.footer-links-block{grid-template-columns:1fr}
  .floating-window{min-height:245px}
  .team-grid{grid-template-columns:1fr}.team-tile:nth-child(5){grid-column:auto;max-width:none}.team-tile{min-height:520px}
  .footer-office-grid{padding-top:22px}.footer-office-copy{padding:22px}.footer-map,.footer-map iframe{min-height:220px}
  .footer-contact-pills{display:grid}.footer-contact-pills a{width:100%;justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .rb-loader-beam,.rb-loader-horizon,.rb-loader-orbit,.rb-loader-lights::before,.rb-loaded .page-shell,body:not([data-page="index.html"]) .page-hero::after{animation:none!important}
  .reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}

/* Team/contact finishing touches. */
.team-perspective .floating-window{min-height:260px}
.contact-card>a{display:flex!important;align-items:center;gap:9px;width:max-content;max-width:100%;color:var(--gold-soft);margin-top:11px}
.contact-card>a svg{width:16px;height:16px;flex:0 0 auto}
.map-route{display:inline-flex;align-items:center;gap:8px;margin-top:14px;color:var(--gold-soft);font-size:.72rem;letter-spacing:.09em;text-transform:uppercase}
.map-route svg{width:15px;height:15px}


/* =========================================================
   RB FINAL · requested finishing changes · 2026-09-30
   Only: loader, team hierarchy, footer maps, light hero, CTA gold, flags.
   ========================================================= */

/* Loader: logo + loading bar + fine vertical gold lights only. */
.rb-loader{background:#000!important;perspective:none!important}
.rb-loader::before,.rb-loader::after,.rb-loader-lights::before,.rb-loader-horizon,.rb-loader-orbit{display:none!important}
.rb-loader-lights{position:absolute;inset:0;overflow:hidden;pointer-events:none;transform:none!important}
.rb-loader-beam{position:absolute;left:var(--x);top:var(--top);bottom:auto;width:1px!important;height:var(--h);opacity:var(--o);transform:none;transform-origin:center;background:linear-gradient(180deg,transparent 0%,rgba(241,209,126,.22) 18%,rgba(241,209,126,.9) 50%,rgba(195,156,51,.22) 82%,transparent 100%);box-shadow:0 0 5px rgba(241,209,126,.28),0 0 16px rgba(195,156,51,.14);filter:none!important;animation:rbBeamFine var(--d) ease-in-out var(--delay) infinite!important}
.rb-loader-inner{position:relative;z-index:2;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;gap:20px!important}
.rb-loader-logo{width:104px;height:104px;animation:rbLoaderLogoFinal 2s ease-in-out infinite!important;filter:drop-shadow(0 0 18px rgba(195,156,51,.22))}
.rb-loader-line{position:relative;width:190px;height:2px;border-radius:999px;background:rgba(195,156,51,.16)!important;overflow:hidden;box-shadow:0 0 14px rgba(195,156,51,.16)!important;animation:none!important}
.rb-loader-line::after{content:"";position:absolute;inset:0 auto 0 0;width:42%;border-radius:inherit;background:linear-gradient(90deg,rgba(195,156,51,.18),#f1d17e,#fff0b5,#c39c33);box-shadow:0 0 16px rgba(241,209,126,.42);animation:rbLoaderProgress 1.65s cubic-bezier(.4,0,.2,1) infinite}
@keyframes rbBeamFine{0%,100%{opacity:.03;transform:translateY(8px) scaleY(.75)}45%{opacity:var(--o);transform:translateY(-5px) scaleY(1.05)}70%{opacity:calc(var(--o)*.55);transform:translateY(-12px) scaleY(.9)}}
@keyframes rbLoaderLogoFinal{0%,100%{transform:scale(.96);opacity:.88}50%{transform:scale(1.035);opacity:1}}
@keyframes rbLoaderProgress{0%{left:-46%;width:34%}52%{left:34%;width:52%}100%{left:108%;width:30%}}

/* Team hierarchy: David as principal; the other four in one row below. */
.team-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;align-items:stretch}
.team-grid .team-tile:first-child{grid-column:1 / -1!important;width:min(860px,100%)!important;justify-self:center!important;min-height:640px!important}
.team-grid .team-tile:first-child h2{font-size:clamp(1.75rem,2.1vw,2.35rem)!important}
.team-grid .team-tile:first-child .team-tile-copy{padding:34px 34px 38px!important}
.team-grid .team-tile:nth-child(n+2){grid-column:auto!important;width:100%!important;max-width:none!important;min-height:520px!important;justify-self:stretch!important}

/* Footer office maps: collapsed by default, showing only the office title. */
.footer-office-accordion{grid-template-columns:1fr!important;gap:12px!important;padding-top:28px!important}
.footer-office-collapsible{display:block!important;min-height:0!important;border-radius:18px!important;overflow:hidden!important}
.footer-office-collapsible>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:18px 22px;cursor:pointer;user-select:none;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012));transition:.32s var(--ease)}
.footer-office-collapsible>summary::-webkit-details-marker{display:none}
.footer-office-collapsible>summary:hover{background:rgba(195,156,51,.07)}
.footer-office-summary-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid rgba(226,190,91,.26);color:var(--gold-soft);font-size:.66rem;letter-spacing:.08em}
.footer-office-collapsible>summary strong{font-size:.9rem;letter-spacing:.11em;text-transform:uppercase;color:#f2eee4}
.footer-office-chevron{margin-left:auto;color:var(--gold-soft);font-size:1.35rem;line-height:1;transition:transform .32s var(--ease)}
.footer-office-collapsible[open] .footer-office-chevron{transform:rotate(45deg)}
.footer-office-detail{display:grid;grid-template-columns:.86fr 1.14fr;border-top:1px solid rgba(226,190,91,.10);animation:rbFooterOpen .38s var(--ease) both}
.footer-office-detail .footer-map{border-left:1px solid rgba(255,255,255,.06)}
@keyframes rbFooterOpen{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:none}}

/* Interior hero headers stay visually dark even when the site is in light mode. */
html[data-theme="light"] body:not([data-page="index.html"]) .page-hero{color:#f5f4ef!important;background:#050505!important;--text:#f5f4ef;--text-soft:#d7d2c8;--muted:#9b9588}
html[data-theme="light"] body:not([data-page="index.html"]) .page-hero h1{color:#f5f4ef!important}
html[data-theme="light"] body:not([data-page="index.html"]) .page-hero .intro{color:#d7d2c8!important}
html[data-theme="light"] body:not([data-page="index.html"]) .page-hero::before{background:linear-gradient(90deg,#050505 0%,rgba(5,5,5,.985) 35%,rgba(5,5,5,.88) 51%,rgba(5,5,5,.36) 76%,rgba(5,5,5,.20) 100%),linear-gradient(0deg,rgba(0,0,0,.82),transparent 55%),radial-gradient(circle at 25% 56%,rgba(195,156,51,.14),transparent 27%)!important}
html[data-theme="light"] body:not([data-page="index.html"]) .page-hero::after{filter:invert(1) sepia(.34) saturate(.72) brightness(.73) contrast(1.15)!important;opacity:.78!important}

/* Secondary CTAs remain gold instead of gray. */
.btn.ghost{background:linear-gradient(135deg,var(--gold2),#bd8623)!important;color:#080808!important;border-color:transparent!important;box-shadow:0 14px 40px rgba(199,144,37,.16)!important;backdrop-filter:none!important}
.btn.ghost:hover{box-shadow:0 18px 48px rgba(199,144,37,.24)!important}

@media(max-width:1180px){
  .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .team-grid .team-tile:first-child{grid-column:1 / -1!important;max-width:820px!important}
  .team-grid .team-tile:nth-child(n+2){grid-column:auto!important}
  .footer-office-detail{grid-template-columns:1fr!important}
  .footer-office-detail .footer-map{border-left:0!important;border-top:1px solid rgba(255,255,255,.06)!important}
}
@media(max-width:620px){
  .team-grid{grid-template-columns:1fr!important}
  .team-grid .team-tile:first-child,.team-grid .team-tile:nth-child(n+2){grid-column:auto!important;max-width:none!important;min-height:520px!important}
  .footer-office-collapsible>summary{padding:17px 18px}
}
@media(prefers-reduced-motion:reduce){
  .rb-loader-beam,.rb-loader-line::after,.rb-loader-logo{animation:none!important}
  .footer-office-detail{animation:none!important}
}

/* =========================================================
   RB FINAL MOTION · loader + reveal + sector clarity + inline offices
   2026-09-30
   ========================================================= */

/* Loader: only logo, loading bar and subtle 3D golden threads falling top-to-bottom. */
.rb-loader{background:#020202!important;perspective:1050px!important;isolation:isolate}
.rb-loader::before,.rb-loader::after,.rb-loader-horizon,.rb-loader-orbit,.rb-loader-lights::before{display:none!important}
.rb-loader-lights{position:absolute!important;inset:-12% 0!important;overflow:hidden!important;pointer-events:none!important;transform-style:preserve-3d!important;z-index:0!important}
.rb-loader-beam{position:absolute!important;left:var(--x)!important;top:-72vh!important;bottom:auto!important;width:1px!important;height:var(--h)!important;opacity:0!important;transform-origin:center!important;background:linear-gradient(180deg,transparent 0%,rgba(248,224,156,.04) 4%,rgba(241,209,126,.26) 34%,rgba(255,239,190,.78) 55%,rgba(195,156,51,.19) 78%,transparent 100%)!important;box-shadow:0 0 4px rgba(241,209,126,.22),0 0 13px rgba(195,156,51,.12)!important;filter:blur(var(--blur))!important;will-change:transform,opacity!important;animation:rbThreadFall var(--d) linear var(--delay) infinite!important}
.rb-loader-beam:nth-child(3n){width:2px!important;background:linear-gradient(180deg,transparent,rgba(241,209,126,.08) 15%,rgba(255,235,176,.48) 52%,rgba(195,156,51,.10) 78%,transparent)!important}
.rb-loader-beam:nth-child(4n){opacity:.03}
.rb-loader-inner{position:relative!important;z-index:3!important;display:grid!important;place-items:center!important;gap:22px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;transform:translateZ(130px)!important}
.rb-loader-logo{width:108px!important;height:108px!important;object-fit:contain!important;animation:rbLogoBlink 1.45s ease-in-out infinite!important;filter:drop-shadow(0 0 10px rgba(195,156,51,.18)) drop-shadow(0 0 30px rgba(195,156,51,.08))!important;will-change:opacity,transform,filter!important}
.rb-loader-line{position:relative!important;width:min(220px,58vw)!important;height:2px!important;border-radius:999px!important;background:rgba(195,156,51,.13)!important;overflow:hidden!important;box-shadow:0 0 12px rgba(195,156,51,.12)!important;animation:none!important}
.rb-loader-line::after{content:""!important;position:absolute!important;inset:0 auto 0 0!important;width:0!important;border-radius:inherit!important;background:linear-gradient(90deg,#8e6718,#d6ad43 45%,#fff0b6 72%,#c39c33)!important;box-shadow:0 0 15px rgba(241,209,126,.42)!important;animation:rbLoaderFill 1.8s cubic-bezier(.18,.78,.2,1) forwards!important}
.rb-loader.hidden{opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .72s ease,visibility .72s ease!important}
@keyframes rbThreadFall{
  0%{opacity:0;transform:translate3d(0,-10vh,var(--z)) scaleX(var(--sx)) scaleY(.88)}
  10%{opacity:calc(var(--o)*.45)}
  28%{opacity:var(--o)}
  75%{opacity:calc(var(--o)*.72)}
  92%{opacity:calc(var(--o)*.18)}
  100%{opacity:0;transform:translate3d(0,188vh,var(--z)) scaleX(var(--sx)) scaleY(1.08)}
}
@keyframes rbLogoBlink{
  0%,100%{opacity:.67;transform:scale(.965);filter:drop-shadow(0 0 8px rgba(195,156,51,.10))}
  18%{opacity:.92}
  46%{opacity:1;transform:scale(1.035);filter:drop-shadow(0 0 18px rgba(241,209,126,.31)) drop-shadow(0 0 42px rgba(195,156,51,.10))}
  66%{opacity:.78}
  82%{opacity:.98}
}
@keyframes rbLoaderFill{0%{width:0;opacity:.72}30%{width:28%;opacity:1}68%{width:72%}100%{width:100%;opacity:1}}

/* Stronger but elegant page reveal. */
.reveal{opacity:0!important;filter:blur(15px)!important;transform:translate3d(0,64px,0) scale(.975)!important;transition:opacity 1.05s var(--ease),transform 1.12s var(--ease),filter .95s ease!important;transition-delay:var(--reveal-delay,0ms)!important;will-change:opacity,transform,filter!important}
.reveal.reveal-left{transform:translate3d(-68px,28px,0) scale(.982)!important}
.reveal.reveal-right{transform:translate3d(68px,28px,0) scale(.982)!important}
.reveal.reveal-scale{transform:translate3d(0,24px,0) scale(.91)!important}
.reveal.in-view{opacity:1!important;filter:blur(0)!important;transform:translate3d(0,0,0) scale(1)!important}
.reveal[data-tilt].in-view{transform:perspective(900px) translateY(var(--lift,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1)!important}
.rb-loaded .page-shell{animation:rbPageArrival 1.15s var(--ease) both!important}
@keyframes rbPageArrival{from{opacity:.1;filter:blur(16px);transform:scale(1.012)}to{opacity:1;filter:none;transform:none}}
.hero-copy.reveal.in-view,.page-hero .container.reveal.in-view{animation:rbHeroSettle 1.25s var(--ease) both}
@keyframes rbHeroSettle{from{letter-spacing:.018em}to{letter-spacing:normal}}

/* Sector imagery: brighter at rest, vivid on hover, while preserving readable copy. */
.sector-card{transition:transform .55s var(--ease),box-shadow .55s var(--ease),border-color .55s ease!important}
.sector-card img{filter:grayscale(.12) brightness(.94) contrast(1.02) saturate(.92)!important;transition:transform 1.05s var(--ease),filter .72s ease!important}
.sector-card::after{background:linear-gradient(0deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.36) 42%,rgba(0,0,0,.07) 100%)!important;transition:background .65s ease,opacity .65s ease!important}
.sector-card:hover{transform:translateY(-9px) scale(1.008)!important;border-color:rgba(241,209,126,.34)!important;box-shadow:0 38px 100px rgba(0,0,0,.40),0 0 0 1px rgba(241,209,126,.05),0 0 34px rgba(195,156,51,.08)!important}
.sector-card:hover img{transform:scale(1.075)!important;filter:grayscale(0) brightness(1.16) contrast(1.04) saturate(1.10)!important}
.sector-card:hover::after{background:linear-gradient(0deg,rgba(0,0,0,.70) 0%,rgba(0,0,0,.25) 42%,rgba(0,0,0,.02) 100%)!important}
.sector-detail-hero+section .split-image img{filter:brightness(.98) saturate(1.03);transition:filter .65s ease,transform .9s var(--ease)}
.sector-detail-hero+section .split-image:hover img{filter:brightness(1.12) saturate(1.08);transform:scale(1.025)}
.sector-permits .detail-list{min-height:100%}

/* Inline footer: both addresses live in the main footer row; maps remain collapsed. */
.footer-topline.footer-topline-inline{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(260px,.78fr) minmax(340px,1.02fr)!important;gap:38px!important;align-items:start!important;padding-bottom:34px!important}
.footer-links-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}
.footer-offices-inline{min-width:0}
.footer-office-heading{color:var(--gold-soft);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;margin:0 0 14px}
.footer-office-mini{display:block!important;min-height:0!important;margin:0 0 10px!important;border:1px solid rgba(226,190,91,.16)!important;border-radius:17px!important;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.012))!important;overflow:hidden!important;box-shadow:0 16px 42px rgba(0,0,0,.16)!important}
.footer-office-mini>summary{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;padding:15px 16px!important;background:transparent!important}
.footer-office-mini>summary:hover{background:rgba(195,156,51,.065)!important}
.footer-office-summary-copy{display:grid;gap:4px;min-width:0}
.footer-office-summary-copy strong{font-size:.78rem!important;letter-spacing:.08em!important;color:#f2eee4!important}
.footer-office-summary-copy small{display:block;color:#9f998d;font-size:.69rem;line-height:1.48;letter-spacing:0;text-transform:none}
.footer-office-mini .footer-office-summary-icon{width:36px;height:36px;font-size:.58rem}
.footer-office-detail-inline{display:block!important;padding:0 14px 14px!important;border-top:1px solid rgba(226,190,91,.09)!important;background:rgba(0,0,0,.10)}
.footer-office-detail-inline .footer-map{border:0!important;padding-top:13px;min-height:0!important}
.footer-office-detail-inline .footer-map iframe{display:block;width:100%;height:190px!important;min-height:190px!important;border-radius:12px;filter:grayscale(.72) brightness(.72) contrast(1.05)!important;transition:.45s ease!important}
.footer-office-mini[open] .footer-map iframe:hover{filter:grayscale(.28) brightness(.93) contrast(1.02)!important}
.footer-office-detail-inline .footer-route{margin:10px 2px 0!important}
.site-footer-expanded .footer-bottom{margin-top:0!important}

@media(max-width:1180px){
  .footer-topline.footer-topline-inline{grid-template-columns:1.05fr .95fr!important}
  .footer-offices-inline{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .footer-office-heading{grid-column:1 / -1;margin-bottom:2px}
}
@media(max-width:760px){
  .footer-topline.footer-topline-inline{grid-template-columns:1fr!important;gap:28px!important}
  .footer-offices-inline{grid-column:auto;grid-template-columns:1fr}
  .footer-office-heading{grid-column:auto}
  .footer-links-compact{grid-template-columns:1fr 1fr!important}
}
@media(max-width:520px){
  .footer-links-compact{grid-template-columns:1fr!important}
  .footer-office-mini>summary{grid-template-columns:auto minmax(0,1fr) auto!important}
  .footer-office-detail-inline .footer-map iframe{height:210px!important;min-height:210px!important}
}

@media(prefers-reduced-motion:reduce){
  .rb-loader-beam,.rb-loader-logo,.rb-loader-line::after,.rb-loaded .page-shell,.hero-copy.reveal.in-view,.page-hero .container.reveal.in-view{animation:none!important}
  .reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
}


/* =========================================================
   RB FINAL ANIMADO · 2026-09-30 · cache v8
   Reliability pass: loader/reveals + light hero + appointment UX
   ========================================================= */

/* Keep the home hero cinematic/dark even when the rest of the site is in light mode. */
html[data-theme="light"] body[data-page="index.html"] .hero{color:#f7f4ec!important;background:#050505!important;--text:#f7f4ec;--text-soft:#e3ded4;--muted:#c8c0b3}
html[data-theme="light"] body[data-page="index.html"] .hero-shade{background:linear-gradient(90deg,rgba(0,0,0,.93) 0%,rgba(0,0,0,.68) 47%,rgba(0,0,0,.30) 100%),linear-gradient(0deg,rgba(0,0,0,.88),transparent 52%),radial-gradient(circle at 28% 48%,rgba(217,170,66,.09),transparent 28%)!important}
html[data-theme="light"] body[data-page="index.html"] .hero h1{color:#fff!important}
html[data-theme="light"] body[data-page="index.html"] .hero-lead{color:#eee9df!important}
html[data-theme="light"] body[data-page="index.html"] .hero-values{color:#e7e1d7!important;border-color:rgba(255,255,255,.14)!important}
html[data-theme="light"] body[data-page="index.html"] .hero .btn.ghost{color:#fff!important;border-color:rgba(226,190,91,.34)!important;background:rgba(8,8,8,.62)!important}

/* Loader motion is intentionally preserved even on systems that request reduced motion,
   because this project explicitly uses the loader as branded feedback while the page initializes. */
.rb-loader{background:#020202!important;perspective:1250px!important}
.rb-loader-lights{display:block!important;position:absolute!important;inset:0!important;overflow:hidden!important;z-index:0!important;transform-style:preserve-3d!important}
.rb-loader-beam{display:block!important;position:absolute!important;top:-72vh!important;bottom:auto!important;left:var(--x)!important;width:var(--w,1px)!important;height:var(--h,52vh)!important;opacity:0!important;background:linear-gradient(180deg,transparent 0%,rgba(255,236,181,.04) 7%,rgba(247,216,132,.22) 34%,rgba(255,244,204,.74) 51%,rgba(201,158,49,.20) 76%,transparent 100%)!important;box-shadow:0 0 5px rgba(255,228,153,.19),0 0 18px rgba(195,156,51,.10)!important;filter:blur(var(--blur,0px))!important;will-change:transform,opacity!important;animation:rbThreadFallV8 var(--d,4s) linear var(--delay,0s) infinite!important}
.rb-loader-beam:nth-child(3n){background:linear-gradient(180deg,transparent,rgba(255,236,181,.05) 12%,rgba(255,236,181,.47) 50%,rgba(195,156,51,.10) 80%,transparent)!important}
.rb-loader-inner{z-index:3!important;transform:translateZ(155px)!important}
.rb-loader-logo{animation:rbLogoBlinkV8 1.28s ease-in-out infinite!important;will-change:opacity,transform,filter!important}
.rb-loader-line{position:relative!important;width:min(230px,60vw)!important;height:3px!important;border-radius:999px!important;background:rgba(195,156,51,.11)!important;overflow:hidden!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.018),0 0 14px rgba(195,156,51,.10)!important}
.rb-loader-line::after{content:""!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:0!important;border-radius:inherit!important;background:linear-gradient(90deg,#7f5d16,#c8962c 38%,#f0d47d 73%,#fff0bd)!important;box-shadow:0 0 18px rgba(241,209,126,.44)!important;animation:rbLoaderFillV8 2.02s cubic-bezier(.16,.82,.18,1) forwards!important}
@keyframes rbThreadFallV8{0%{opacity:0;transform:translate3d(0,-22vh,var(--z,0px)) scaleX(var(--sx,1))}12%{opacity:calc(var(--o,.16)*.40)}30%{opacity:var(--o,.16)}72%{opacity:calc(var(--o,.16)*.72)}92%{opacity:calc(var(--o,.16)*.12)}100%{opacity:0;transform:translate3d(0,190vh,var(--z,0px)) scaleX(var(--sx,1))}}
@keyframes rbLogoBlinkV8{0%,100%{opacity:.56;transform:scale(.965);filter:drop-shadow(0 0 7px rgba(195,156,51,.08))}18%{opacity:.86}42%{opacity:1;transform:scale(1.035);filter:drop-shadow(0 0 20px rgba(243,211,124,.34)) drop-shadow(0 0 44px rgba(195,156,51,.11))}62%{opacity:.70}80%{opacity:.96}}
@keyframes rbLoaderFillV8{0%{width:0}22%{width:18%}55%{width:54%}78%{width:79%}100%{width:100%}}

/* Reveals are armed while the loader is visible and activated only after it exits,
   so the visitor actually sees the fade/reveal sequence. */
.reveal{opacity:0!important;filter:blur(18px)!important;transform:translate3d(0,72px,0) scale(.972)!important;transition:opacity 1.02s cubic-bezier(.2,.7,.2,1),transform 1.12s cubic-bezier(.16,.84,.22,1),filter .92s ease!important;transition-delay:var(--reveal-delay,0ms)!important;will-change:opacity,transform,filter!important}
.reveal.reveal-left{transform:translate3d(-76px,22px,0) scale(.982)!important}
.reveal.reveal-right{transform:translate3d(76px,22px,0) scale(.982)!important}
.reveal.reveal-scale{transform:translate3d(0,26px,0) scale(.90)!important}
.reveal.in-view{opacity:1!important;filter:blur(0)!important;transform:translate3d(0,0,0) scale(1)!important}
.reveal[data-tilt].in-view{transform:perspective(900px) translateY(var(--lift,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1)!important}
.rb-loaded .page-shell{animation:rbPageArrivalV8 1.12s cubic-bezier(.2,.75,.2,1) both!important}
@keyframes rbPageArrivalV8{from{opacity:.08;filter:blur(15px);transform:scale(1.012)}to{opacity:1;filter:none;transform:none}}

/* Business-situation section: clearer hierarchy and visual anchors. */
.situation-section{overflow:hidden}
.situation-section .situation-intro{max-width:760px;color:var(--text-soft);font-size:1.02rem;line-height:1.75;margin:6px 0 0}
.situation-grid.situation-grid-icons{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.situation-grid-icons .situation-card{min-height:285px;padding:26px 24px 22px;display:grid;grid-template-rows:auto 1fr auto;gap:18px;align-items:start;background:linear-gradient(150deg,rgba(255,255,255,.055),rgba(255,255,255,.018));border-color:rgba(220,183,82,.18)}
.situation-grid-icons .situation-card::before{content:"";position:absolute;inset:0;background:radial-gradient(320px circle at var(--px,50%) var(--py,50%),rgba(218,177,72,.13),transparent 48%);opacity:.75;pointer-events:none}
.situation-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;border:1px solid rgba(225,188,88,.28);background:linear-gradient(145deg,rgba(195,156,51,.16),rgba(195,156,51,.035));box-shadow:0 15px 36px rgba(0,0,0,.18);position:relative;z-index:1}
.situation-icon svg{width:24px;height:24px;color:var(--gold-soft)}
.situation-copy{position:relative;z-index:1}.situation-copy small{display:block;color:var(--gold-soft);font-size:.66rem;letter-spacing:.16em;font-weight:800;margin-bottom:9px}.situation-copy h3{font-size:1.13rem;line-height:1.32;margin:0 0 10px}.situation-copy p{font-size:.91rem;line-height:1.6;margin:0;color:var(--muted)}
.situation-arrow{position:relative;z-index:1;justify-self:end;display:grid!important;place-items:center;width:38px;height:38px;border-radius:999px;border:1px solid rgba(226,190,91,.24);color:var(--gold-soft)!important;font-size:1rem!important;transition:.35s ease}
.situation-card:hover .situation-arrow{transform:translateX(4px);background:linear-gradient(135deg,#d9b250,#b97d1b);color:#090909!important;border-color:transparent}
html[data-theme="light"] .situation-section{color:#111!important}
html[data-theme="light"] .situation-section .section-head h2,html[data-theme="light"] .situation-section .situation-card h3{color:#111!important}
html[data-theme="light"] .situation-section .situation-intro,html[data-theme="light"] .situation-section .situation-card p{color:#4b463e!important}
html[data-theme="light"] .situation-grid-icons .situation-card{background:linear-gradient(150deg,#fff,#f7f2e8)!important;border-color:rgba(126,91,22,.17)!important;box-shadow:0 20px 50px rgba(65,48,17,.08)!important}
html[data-theme="light"] .situation-icon{background:linear-gradient(145deg,#f7e8b4,#fff8e3)!important;border-color:rgba(153,112,28,.24)!important}

/* Appointment calendar */
.appointment-section{padding-top:54px}
.appointment-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:22px;align-items:start}
.appointment-calendar-card{background:var(--card);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:var(--shadow);position:sticky;top:104px;overflow:hidden}
.appointment-calendar-card::before{content:"";position:absolute;inset:0;background:radial-gradient(420px circle at 50% 0%,rgba(209,166,54,.10),transparent 52%);pointer-events:none}
.calendar-toolbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;margin-bottom:18px;position:relative;z-index:1}.calendar-toolbar strong{text-align:center;font-size:1.02rem;text-transform:capitalize;letter-spacing:.02em}.calendar-nav{width:44px;height:44px;border-radius:999px;border:1px solid var(--line-strong);background:rgba(255,255,255,.035);color:var(--text);font-size:1.6rem;line-height:1;cursor:pointer;transition:.28s}.calendar-nav:hover{background:linear-gradient(135deg,#d8b14e,#b97c19);color:#080808;border-color:transparent;transform:translateY(-2px)}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;position:relative;z-index:1}.calendar-weekdays{margin-bottom:7px}.calendar-weekdays span{text-align:center;color:var(--gold-soft);font-size:.66rem;letter-spacing:.12em;font-weight:800;padding:7px 0}.calendar-day,.calendar-blank{aspect-ratio:1/1;border-radius:13px}.calendar-day{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--text);cursor:pointer;font:inherit;font-size:.86rem;transition:.25s}.calendar-day:hover:not(:disabled){border-color:rgba(221,181,75,.52);background:rgba(195,156,51,.10);transform:translateY(-2px)}.calendar-day.selected{background:linear-gradient(145deg,#ddb752,#b77a18)!important;color:#080808!important;border-color:transparent!important;box-shadow:0 10px 28px rgba(195,156,51,.20)}.calendar-day:disabled{opacity:.22;cursor:not-allowed}.calendar-legend{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;color:var(--muted);font-size:.72rem}.calendar-legend>span{display:flex;align-items:center;gap:7px}.calendar-legend i{width:9px;height:9px;border-radius:999px;background:var(--gold)}
.appointment-form{padding:32px}.appointment-form h3{font-size:1.8rem;margin:9px 0 8px}.appointment-form select,.appointment-form input,.appointment-form textarea{width:100%}.appointment-selected{display:flex;align-items:center;gap:10px;padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:rgba(195,156,51,.055);color:var(--text-soft);margin:18px 0 16px;transition:.3s}.appointment-selected svg{width:18px;height:18px;color:var(--gold)}.appointment-selected.needs-date{border-color:#d6aa42;box-shadow:0 0 0 4px rgba(214,170,66,.10);transform:translateX(3px)}
.form-card select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--gold) 50%),linear-gradient(135deg,var(--gold) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}

@media(max-width:1080px){.situation-grid.situation-grid-icons{grid-template-columns:repeat(2,minmax(0,1fr))}.appointment-layout{grid-template-columns:1fr}.appointment-calendar-card{position:relative;top:auto}}
@media(max-width:620px){.situation-grid.situation-grid-icons{grid-template-columns:1fr}.situation-grid-icons .situation-card{min-height:240px}.calendar-day,.calendar-blank{border-radius:10px}.appointment-calendar-card,.appointment-form{padding:20px}}

/* Final cascade: do not suppress the requested branded motion. */
.rb-loader-beam{animation:rbThreadFallV8 var(--d,4s) linear var(--delay,0s) infinite!important}
.rb-loader-logo{animation:rbLogoBlinkV8 1.28s ease-in-out infinite!important}
.rb-loader-line::after{animation:rbLoaderFillV8 2.02s cubic-bezier(.16,.82,.18,1) forwards!important}
.rb-loaded .page-shell{animation:rbPageArrivalV8 1.12s cubic-bezier(.2,.75,.2,1) both!important}


/* =========================================================
   RB MOTION HARMONY · cache v9
   Fluid sequential reveals + visible 3D loader threads
   ========================================================= */
.rb-loader{background:#020202!important;perspective:1180px!important;transition:opacity .62s cubic-bezier(.4,0,.2,1),visibility .62s linear!important}
.rb-loader-lights{display:block!important;position:absolute!important;inset:-8vh 0!important;overflow:hidden!important;z-index:0!important;pointer-events:none!important;transform-style:preserve-3d!important}
.rb-loader-beam{display:block!important;position:absolute!important;left:var(--x)!important;top:-68vh!important;bottom:auto!important;width:1px!important;height:var(--h,52vh)!important;opacity:0!important;border-radius:999px!important;background:linear-gradient(180deg,transparent 0%,rgba(255,239,197,.03) 8%,rgba(231,190,82,.20) 31%,rgba(255,241,198,.66) 51%,rgba(202,157,47,.18) 72%,transparent 100%)!important;box-shadow:0 0 4px rgba(245,213,129,.18),0 0 14px rgba(195,156,51,.08)!important;filter:blur(.15px)!important;will-change:transform,opacity!important;animation:rbThreadHarmony var(--d,4.4s) linear var(--delay,0s) infinite!important}
.rb-loader-beam:nth-child(4n+1){width:.7px!important;filter:blur(.35px)!important}
.rb-loader-beam:nth-child(4n+2){width:1.25px!important;box-shadow:0 0 6px rgba(245,213,129,.22),0 0 20px rgba(195,156,51,.09)!important}
.rb-loader-beam:nth-child(5n){height:72vh!important}
.rb-loader-inner{position:relative!important;z-index:3!important;transform:translateZ(145px)!important;gap:20px!important}
.rb-loader-logo{width:108px!important;height:108px!important;animation:rbLogoHarmony 1.55s ease-in-out infinite!important;will-change:opacity,transform,filter!important}
.rb-loader-line{position:relative!important;width:min(232px,60vw)!important;height:3px!important;border-radius:999px!important;background:rgba(211,170,61,.12)!important;overflow:hidden!important;box-shadow:inset 0 0 0 1px rgba(255,239,190,.035),0 0 15px rgba(195,156,51,.10)!important}
.rb-loader-line::after{display:none!important}
.rb-loader-progress{display:block!important;position:absolute!important;inset:0!important;border-radius:inherit!important;transform:scaleX(.015);transform-origin:left center;background:linear-gradient(90deg,#765311 0%,#bd8b24 35%,#e3c462 67%,#fff0bc 100%)!important;box-shadow:0 0 10px rgba(238,204,111,.34),0 0 22px rgba(195,156,51,.16)!important;will-change:transform!important;transition:transform .08s linear!important}
@keyframes rbThreadHarmony{
  0%{opacity:0;transform:translate3d(0,-30vh,var(--z,0px)) scaleY(.82)}
  12%{opacity:var(--o,.12)}
  76%{opacity:var(--o,.12)}
  92%{opacity:.035}
  100%{opacity:0;transform:translate3d(var(--drift,0px),188vh,var(--z,0px)) scaleY(1.04)}
}
@keyframes rbLogoHarmony{
  0%,100%{opacity:.68;transform:scale(.985);filter:drop-shadow(0 0 8px rgba(195,156,51,.10))}
  32%{opacity:.94;transform:scale(1.008);filter:drop-shadow(0 0 14px rgba(231,193,92,.22))}
  52%{opacity:1;transform:scale(1.026);filter:drop-shadow(0 0 20px rgba(242,211,126,.32)) drop-shadow(0 0 42px rgba(195,156,51,.10))}
  74%{opacity:.82;transform:scale(1.002);filter:drop-shadow(0 0 12px rgba(195,156,51,.17))}
}

/* Harmonious reveals: restrained movement, low blur and sequential groups. */
.reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale,.reveal.reveal-up{
  opacity:0!important;
  filter:blur(5px)!important;
  transform:translate3d(0,26px,0) scale(.992)!important;
  transition-property:opacity,transform,filter!important;
  transition-duration:.76s,.86s,.66s!important;
  transition-timing-function:cubic-bezier(.2,.72,.24,1),cubic-bezier(.16,.82,.2,1),ease-out!important;
  transition-delay:var(--reveal-delay,0ms)!important;
  will-change:opacity,transform,filter!important;
  backface-visibility:hidden!important;
}
.reveal.in-view,.reveal.reveal-left.in-view,.reveal.reveal-right.in-view,.reveal.reveal-scale.in-view,.reveal.reveal-up.in-view{
  opacity:1!important;
  filter:blur(0)!important;
  transform:translate3d(0,0,0) scale(1)!important;
}
.reveal[data-tilt].in-view{transform:perspective(1000px) translate3d(0,var(--lift,0px),0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1)!important}
.reveal.reveal-done{will-change:auto!important}
.rb-loaded .page-shell{animation:rbPageHarmony .72s cubic-bezier(.2,.72,.2,1) both!important}
@keyframes rbPageHarmony{from{opacity:.72;transform:translate3d(0,7px,0)}to{opacity:1;transform:none}}

/* Cards feel connected as a sequence instead of popping individually. */
.situation-grid>.reveal,.cap-grid>.reveal,.directory-grid>.reveal,.blog-grid>.reveal,.team-grid>.reveal,.process-grid>.reveal,.floating-window-grid>.reveal,.insights-grid>.reveal,.principle-grid>.reveal,.detail-columns>.reveal,.split-feature>.reveal,.office-grid>.reveal,.office-map-grid>.reveal,.contact-grid>.reveal,.stats-grid>.reveal,.grid-3>.reveal,.grid-4>.reveal,.sector-grid>.reveal{transform:translate3d(0,22px,0) scale(.994)!important}
.situation-grid>.reveal.in-view,.cap-grid>.reveal.in-view,.directory-grid>.reveal.in-view,.blog-grid>.reveal.in-view,.team-grid>.reveal.in-view,.process-grid>.reveal.in-view,.floating-window-grid>.reveal.in-view,.insights-grid>.reveal.in-view,.principle-grid>.reveal.in-view,.detail-columns>.reveal.in-view,.split-feature>.reveal.in-view,.office-grid>.reveal.in-view,.office-map-grid>.reveal.in-view,.contact-grid>.reveal.in-view,.stats-grid>.reveal.in-view,.grid-3>.reveal.in-view,.grid-4>.reveal.in-view,.sector-grid>.reveal.in-view{transform:translate3d(0,0,0) scale(1)!important}

/* Smooth the hover hand-off after reveal and reduce any 'stuck' feeling. */
.cap-card,.situation-card,.directory-card,.blog-card,.contact-card,.form-card,.process-grid article,.insight-card,.principle-card,.office-map-card,.floating-window,.team-tile,.sector-card{backface-visibility:hidden;transform-style:preserve-3d}

@media(max-width:760px){
  .reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale,.reveal.reveal-up{transform:translate3d(0,18px,0) scale(.995)!important;filter:blur(3px)!important;transition-duration:.62s,.70s,.55s!important}
  .reveal.in-view,.reveal.reveal-left.in-view,.reveal.reveal-right.in-view,.reveal.reveal-scale.in-view,.reveal.reveal-up.in-view{transform:translate3d(0,0,0) scale(1)!important;filter:none!important}
}

@media(prefers-reduced-motion:reduce){
  .reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale,.reveal.reveal-up{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
  .rb-loaded .page-shell{animation:none!important}
  .rb-loader-beam{animation-duration:7s!important}
  .rb-loader-logo{animation-duration:2.6s!important}
}


/* =========================================================
   RB FLUID MOTION · cache v10
   Reliable scroll reveals + visible loader threads + light situation typography
   ========================================================= */

/* Loader: fine, subtle golden threads visibly travelling from top to bottom behind the logo. */
.rb-loader{background:#020202!important;perspective:1200px!important;overflow:hidden!important}
.rb-loader-lights{display:block!important;position:absolute!important;inset:-6vh 0!important;z-index:0!important;overflow:hidden!important;pointer-events:none!important;transform-style:preserve-3d!important;opacity:.96!important}
.rb-loader-beam{display:block!important;position:absolute!important;left:var(--x)!important;top:-76vh!important;bottom:auto!important;width:1px!important;height:var(--h,56vh)!important;border-radius:999px!important;opacity:var(--o,.18)!important;mix-blend-mode:screen!important;background:linear-gradient(180deg,transparent 0%,rgba(255,246,216,.035) 5%,rgba(224,181,69,.22) 28%,rgba(255,236,177,.86) 51%,rgba(190,142,34,.22) 74%,transparent 100%)!important;box-shadow:0 0 3px rgba(255,235,174,.24),0 0 11px rgba(213,166,53,.13)!important;filter:blur(.12px)!important;will-change:transform,opacity!important;animation:rbThreadV10 var(--d,4s) linear var(--delay,0s) infinite!important}
.rb-loader-beam:nth-child(3n){width:.7px!important;filter:blur(.35px)!important}
.rb-loader-beam:nth-child(4n){width:1.35px!important;box-shadow:0 0 5px rgba(255,236,177,.28),0 0 17px rgba(195,156,51,.13)!important}
.rb-loader-beam:nth-child(5n){height:76vh!important}
.rb-loader-beam:nth-child(7n){width:.55px!important;opacity:.09!important}
.rb-loader-inner{z-index:3!important;transform:translateZ(150px)!important}
.rb-loader-logo{animation:rbLogoV10 1.42s ease-in-out infinite!important;will-change:opacity,transform,filter!important}
.rb-loader-line{height:3px!important;width:min(238px,62vw)!important;background:rgba(195,156,51,.13)!important;border:1px solid rgba(241,209,126,.08)!important;box-shadow:0 0 15px rgba(195,156,51,.10)!important;overflow:hidden!important}
.rb-loader-line::after{display:none!important}
.rb-loader-progress{display:block!important;position:absolute!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;width:0%;height:100%!important;transform:none!important;transform-origin:left center!important;border-radius:999px!important;background:linear-gradient(90deg,#7f5a12 0%,#c28e25 34%,#e9cb68 67%,#fff1bd 100%)!important;box-shadow:0 0 9px rgba(242,209,120,.45),0 0 20px rgba(195,156,51,.18)!important;transition:none!important;will-change:width!important}
@keyframes rbThreadV10{
  0%{transform:translate3d(0,-22vh,var(--z,0px)) scaleY(.86)}
  100%{transform:translate3d(var(--drift,0px),196vh,var(--z,0px)) scaleY(1.05)}
}
@keyframes rbLogoV10{
  0%,100%{opacity:.66;transform:scale(.975);filter:drop-shadow(0 0 7px rgba(195,156,51,.11))}
  24%{opacity:.9;transform:scale(1.004);filter:drop-shadow(0 0 13px rgba(232,194,92,.22))}
  49%{opacity:1;transform:scale(1.034);filter:drop-shadow(0 0 22px rgba(244,214,133,.34)) drop-shadow(0 0 46px rgba(195,156,51,.12))}
  72%{opacity:.78;transform:scale(.998);filter:drop-shadow(0 0 10px rgba(195,156,51,.16))}
}

/* Scroll reveal: each element waits until it truly enters view; cards in the same row cascade. */
.reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale,.reveal.reveal-up{
  opacity:0!important;
  filter:blur(7px)!important;
  transform:translate3d(0,34px,0) scale(.988)!important;
  transition:opacity .88s cubic-bezier(.22,.74,.24,1),transform .96s cubic-bezier(.16,.84,.2,1),filter .78s ease-out!important;
  transition-delay:var(--reveal-delay,0ms)!important;
  will-change:opacity,transform,filter!important;
  backface-visibility:hidden!important;
}
.reveal.in-view,.reveal.reveal-left.in-view,.reveal.reveal-right.in-view,.reveal.reveal-scale.in-view,.reveal.reveal-up.in-view{
  opacity:1!important;
  filter:blur(0)!important;
  transform:translate3d(0,0,0) scale(1)!important;
}
.reveal[data-tilt].in-view{transform:perspective(1000px) translate3d(0,var(--lift,0px),0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1)!important}
.reveal.reveal-done{opacity:1!important;filter:none!important;transform:none!important;will-change:auto!important}

/* In light mode this entire business-situation section reads in black/dark ink. Gold remains only in icons and decorative controls. */
html[data-theme="light"] .situation-section,
html[data-theme="light"] .situation-section .section-head,
html[data-theme="light"] .situation-section .section-head h2,
html[data-theme="light"] .situation-section .section-head p,
html[data-theme="light"] .situation-section .situation-intro,
html[data-theme="light"] .situation-section .situation-copy,
html[data-theme="light"] .situation-section .situation-copy h3,
html[data-theme="light"] .situation-section .situation-copy p,
html[data-theme="light"] .situation-section .situation-copy small,
html[data-theme="light"] .situation-section .eyebrow{color:#111!important}
html[data-theme="light"] .situation-section .section-head h2 em{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  background:none!important;
  -webkit-background-clip:border-box!important;
  background-clip:border-box!important;
  animation:none!important;
}
html[data-theme="light"] .situation-section .situation-intro,
html[data-theme="light"] .situation-section .situation-copy p{color:#2d2a26!important}
html[data-theme="light"] .situation-section .situation-copy small{color:#171717!important}
html[data-theme="light"] .situation-section .situation-icon svg{color:#9f731e!important}
html[data-theme="light"] .situation-section .situation-arrow{color:#8e6718!important}
html[data-theme="light"] .situation-section .situation-card:hover .situation-arrow{color:#090909!important}

/* Explicit user preference: preserve a subtle branded fade even when the OS asks for reduced motion. */
@media(prefers-reduced-motion:reduce){
  .rb-loader-beam{animation:rbThreadV10 5.8s linear var(--delay,0s) infinite!important}
  .rb-loader-logo{animation:rbLogoV10 2.2s ease-in-out infinite!important}
  .reveal,.reveal.reveal-left,.reveal.reveal-right,.reveal.reveal-scale,.reveal.reveal-up{
    opacity:0!important;filter:blur(2px)!important;transform:translate3d(0,12px,0) scale(.997)!important;
    transition:opacity .56s ease,transform .58s ease,filter .5s ease!important;
    transition-delay:var(--reveal-delay,0ms)!important;
  }
  .reveal.in-view,.reveal.reveal-left.in-view,.reveal.reveal-right.in-view,.reveal.reveal-scale.in-view,.reveal.reveal-up.in-view{opacity:1!important;filter:none!important;transform:none!important}
}

/* =========================================================
   RB LIGHT SITUATION TEXT FIX · cache v11
   Exact request: in Light mode, all copy in the homepage
   "situación empresarial" block is dark/black. Gold remains
   only on icons and decorative arrows.
   ========================================================= */
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head,
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head .eyebrow,
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head .eyebrow span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head h2,
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head h2 > span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head h2 em,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-intro,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-intro span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-card,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy small,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy small span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy h3,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy h3 span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy p,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy p span{
  color:#111111!important;
  -webkit-text-fill-color:#111111!important;
}
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-intro,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-intro span,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy p,
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-copy p span{
  color:#2d2a26!important;
  -webkit-text-fill-color:#2d2a26!important;
}
html[data-theme="light"] body[data-page="index.html"] .situation-section .section-head h2 em{
  background:none!important;
  -webkit-background-clip:border-box!important;
  background-clip:border-box!important;
}
/* Keep only visual accents gold in Light mode. */
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-icon svg{
  color:#9f731e!important;
  -webkit-text-fill-color:initial!important;
}
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-arrow{
  color:#8e6718!important;
  -webkit-text-fill-color:#8e6718!important;
}
html[data-theme="light"] body[data-page="index.html"] .situation-section .situation-card:hover .situation-arrow{
  color:#090909!important;
  -webkit-text-fill-color:#090909!important;
}
