/* ============================================================
   AELVANTIS Tax & Advisory — Premium Design System
   Palette: Deep navy ink · Champagne gold · Warm ivory
   Type:    Spectral (display serif) · Inter (UI / body)
   ============================================================ */

:root {
  /* Brand — premium navy + champagne gold + warm ivory */
  --ink:        #071A35;   /* primary deep navy */
  --ink-2:      #050F1E;   /* near-black navy */
  --navy:       #0D2744;   /* lifted navy */
  --gold:       #C9A76A;   /* champagne gold accent */
  --gold-soft:  #DCC59A;
  --gold-deep:  #A9874E;

  --ivory:      #F6F3EC;   /* warm page background */
  --ivory-2:    #EFEAE0;
  --paper:      #FFFFFF;

  --text:       #16212B;
  --muted:      #5B6772;
  --muted-2:    #8A949D;
  --border:     #E6E0D4;
  --border-ink: rgba(255,255,255,0.12);

  --maxw: 1440px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10,26,43,.06), 0 2px 8px rgba(10,26,43,.05);
  --shadow:    0 10px 30px -12px rgba(10,26,43,.18), 0 4px 12px rgba(10,26,43,.06);
  --shadow-lg: 0 30px 70px -30px rgba(10,26,43,.35);

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Dark mode ---------- */
body.dark {
  --ivory: #0A1A2B;
  --ivory-2: #0E2236;
  --paper: #0E2236;
  --text: #EAF0F6;
  --muted: #9FB0BE;
  --muted-2: #7C8C9A;
  --border: rgba(255,255,255,0.10);
}
body.dark .topbar { background: rgba(6,19,32,.65); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 9vw, 132px); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: none; }
.eyebrow { gap: 0; }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--gold-soft); }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); margin: 0; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4 { color: var(--text); }
.h-display { font-size: clamp(40px, 6.6vw, 84px); font-weight: 400; }
.h-section { font-size: clamp(30px, 4.4vw, 52px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 56ch; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-section { margin-top: 18px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; letter-spacing: .005em; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink-2); box-shadow: 0 8px 24px -10px rgba(169,135,78,.6); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
body.dark .btn-ghost { color: var(--text); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-line-light:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  background: transparent; border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(246,243,236,.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px -16px rgba(10,26,43,.4);
}
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-img-wrap { display: flex; align-items: center; }
/* Brand lockup: icon square + wordmark */
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-icon { width: 62px; height: 62px; border-radius: 15px; background: linear-gradient(150deg, #16304d 0%, #0b1d33 55%, #06101f 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 0 1.5px rgba(201,167,106,.55), 0 8px 22px rgba(4,12,24,.55); }
.brand-logo-img { width: 62px; height: 62px; object-fit: contain; display: block; transform: scale(1.34); }
.brand-wordmark { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .14em; color: var(--ink); line-height: 1; }
.brand-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .24em; color: var(--gold-deep); line-height: 1; }
/* Transparent (dark) header state */
.topbar:not(.scrolled) .brand-name { color: #fff; }
.topbar:not(.scrolled) .brand-sub { color: var(--gold-soft); }
/* header colors when transparent over dark hero */
.topbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.topbar:not(.scrolled) .nav-links a:hover { color: #fff; }

.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); position: relative; transition: color .25s; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:1.5px; width:0; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
/* Header secure-pay pill */
.pay-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-deep); background: rgba(201,167,106,.08); transition: all .3s var(--ease); }
.pay-link svg { flex: none; }
.pay-link:hover { background: var(--gold); color: #0a1526; }
.topbar:not(.scrolled) .pay-link { border-color: rgba(220,197,154,.6); color: var(--gold-soft); background: rgba(220,197,154,.10); }
.topbar:not(.scrolled) .pay-link:hover { background: var(--gold-soft); color: #0a1526; }
@media (max-width: 560px){ .pay-link .pay-txt { display: none; } .pay-link { padding: 9px 11px; } }
.portal-link { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; padding:9px 16px; border-radius:999px; border:1px solid var(--border); color: var(--text); transition: all .3s; }
.portal-link:hover { border-color: var(--gold); color: var(--gold-deep); }
.topbar:not(.scrolled) .portal-link { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.88); }
/* Secure badge pill */
.sec-pill { font-size: 8px; font-weight: 700; letter-spacing: .16em; background: rgba(201,167,106,.12); color: var(--gold-deep); border: 1px solid rgba(201,167,106,.35); border-radius: 4px; padding: 2px 5px; vertical-align: middle; margin-left: 2px; }
.topbar:not(.scrolled) .sec-pill { color: var(--gold-soft); border-color: rgba(220,197,154,.4); background: rgba(220,197,154,.08); }
/* Drawer portal link */
.drawer-portal-link { display: flex; align-items: center; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--border); color: var(--text); font-size: 15px; font-weight: 600; transition: color .2s; }
.drawer-portal-link:hover { color: var(--gold-deep); }
.drawer-portal-link .sec-pill { color: var(--gold-deep); }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: none; background: transparent; color: inherit; transition: all .3s; }
.topbar:not(.scrolled) .icon-btn { color:#fff; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.burger { display: flex; height: 42px; border: none; background: transparent; padding: 0 4px; flex-direction: row; gap: 9px; align-items: center; justify-content: center; }
.burger svg { color: var(--ink); transition: .3s; }
.burger-txt { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink); transition: .3s; }
.topbar:not(.scrolled) .burger { background: transparent; }
.topbar:not(.scrolled) .burger svg,
.topbar:not(.scrolled) .burger-txt { color: #fff; }

/* ============================================================
   FULL-SCREEN MENU OVERLAY (CI-Financial style)
   ============================================================ */
.drawer { position: fixed; inset: 0; z-index: 200; background:
  linear-gradient(158deg, #0C2138 0%, #081729 46%, #040E1B 100%);
  color: #fff; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s var(--ease); overflow-y: auto; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer::before { content:""; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 84% 8%, rgba(201,167,106,.16), transparent 55%),
  radial-gradient(70% 60% at 6% 98%, rgba(20,52,90,.55), transparent 60%),
  radial-gradient(120% 120% at 50% 120%, rgba(3,9,18,.6), transparent 55%);
  pointer-events: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; z-index: 2; }
.drawer-top .brand-name { color: #fff; }
.drawer-top .brand-sub { color: var(--gold-soft); }
.drawer-close { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: none; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 10px 0; transition: color .25s; }
.drawer-close .x { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transition: all .3s var(--ease); }
.drawer-close:hover { color: var(--gold-soft); }
.drawer-close:hover .x { border-color: var(--gold-soft); transform: rotate(90deg); }
.drawer-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(40px,7vw,110px); padding-top: clamp(36px,6vw,84px); padding-bottom: clamp(48px,7vw,90px); position: relative; z-index: 2; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: baseline; gap: 20px; padding: clamp(10px,1.4vw,18px) 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.92); font-family: var(--serif); font-size: clamp(28px,3.6vw,50px); font-weight: 400; line-height: 1.05; transition: color .3s var(--ease), padding-left .3s var(--ease); opacity: 0; transform: translateY(18px); }
.drawer.open .drawer-nav a { opacity: 1; transform: none; transition: color .3s var(--ease), padding-left .35s var(--ease), opacity .5s var(--ease), transform .5s var(--ease); }
.drawer.open .drawer-nav a:nth-child(1){transition-delay:.10s;} .drawer.open .drawer-nav a:nth-child(2){transition-delay:.15s;} .drawer.open .drawer-nav a:nth-child(3){transition-delay:.20s;} .drawer.open .drawer-nav a:nth-child(4){transition-delay:.25s;} .drawer.open .drawer-nav a:nth-child(5){transition-delay:.30s;} .drawer.open .drawer-nav a:nth-child(6){transition-delay:.35s;} .drawer.open .drawer-nav a:nth-child(7){transition-delay:.40s;} .drawer.open .drawer-nav a:nth-child(8){transition-delay:.45s;}
.drawer-nav a .dn-num { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--gold-soft); opacity: .7; flex: none; width: 30px; }
.drawer-nav a:hover { color: var(--gold-soft); padding-left: 14px; }
.drawer-nav a.active { color: #fff; }
.drawer-nav a.active .dn-num { opacity: 1; }
/* secure payment item in menu */
.drawer-nav a.dn-secure { color: var(--gold-soft); }
.drawer-nav a.dn-secure .dn-lock { display: inline-grid; place-items: center; width: 30px; flex: none; color: var(--gold); }
.drawer-nav a.dn-secure:hover { color: #fff; }
.drawer-nav a.dn-secure .dn-tag { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); background: rgba(201,167,106,.14); border: 1px solid rgba(201,167,106,.4); border-radius: 5px; padding: 3px 8px; margin-left: 12px; align-self: center; }
.drawer-aside { display: flex; flex-direction: column; gap: 26px; align-self: center; opacity: 0; transition: opacity .6s var(--ease) .35s; }
.drawer.open .drawer-aside { opacity: 1; }
.da-block h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 12px; }
.da-block a, .da-block p { display: block; color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; margin: 0 0 4px; transition: color .25s; }
.da-block a:hover { color: var(--gold-soft); }
.drawer-aside .btn { align-self: flex-start; }
.da-socials { display: flex; gap: 12px; }
.da-socials a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.8); transition: all .3s var(--ease); }
.da-socials a:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-3px); }
@media (max-width: 860px){
  .drawer-inner { grid-template-columns: 1fr; gap: 40px; }
  .drawer-aside { align-self: start; }
}
@media (prefers-reduced-motion: reduce){
  .drawer-nav a, .drawer-aside { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink-2); color: #fff; padding-top: 76px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero::after { content:""; position:absolute; inset:0; z-index:1; background:
  radial-gradient(120% 90% at 78% 18%, rgba(194,162,105,.18), transparent 55%),
  linear-gradient(180deg, rgba(6,19,32,.2), rgba(6,19,32,.55) 70%, rgba(6,19,32,.85));
  pointer-events:none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; margin: 22px 0 0; }
.hero h1 .ln { display: block; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-sub { font-size: clamp(17px, 1.55vw, 20px); color: rgba(255,255,255,.82); max-width: 52ch; margin: 26px 0 0; line-height: 1.6; }
.hero-support { font-size: clamp(15px, 1.3vw, 17px); color: rgba(255,255,255,.65); max-width: 52ch; margin: 16px 0 0; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.82); font-weight: 500; }
.hero-badge .ck { width: 18px; height: 18px; border-radius: 50%; background: rgba(194,162,105,.18); color: var(--gold-soft); display: grid; place-items: center; font-size: 10px; }

/* hero visual card */
.hero-visual { position: relative; }
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px; padding: 26px; backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.glass-card .gc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.glass-card .gc-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.gc-pill { font-size: 11px; font-weight: 600; color: var(--gold-soft); border: 1px solid rgba(194,162,105,.4); border-radius: 999px; padding: 4px 10px; }
.gc-figure { font-family: var(--serif); font-size: 46px; color: #fff; line-height: 1; }
.gc-figure span { color: var(--gold-soft); font-size: 26px; }
.gc-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }
.gc-bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 22px; }
.gc-bars .bar { flex: 1; background: linear-gradient(180deg, rgba(194,162,105,.85), rgba(194,162,105,.25)); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: barGrow 1.1s var(--ease) both; }
@keyframes barGrow { from { transform: scaleY(0); } }
.gc-rows { margin-top: 22px; display: grid; gap: 12px; }
.gc-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.78); padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.gc-row b { color: #fff; font-weight: 600; }
.gc-float { position: absolute; background: var(--paper); color: var(--text); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.gc-float.f1 { bottom: -22px; left: -26px; }
.gc-float .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--ivory-2); color: var(--gold-deep); display: grid; place-items: center; }
.gc-float .t { font-size: 11px; color: var(--muted); }
.gc-float .v { font-size: 16px; font-weight: 700; font-family: var(--serif); color: var(--ink); }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.5), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);} 40%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

/* ============================================================
   TRUST METRICS
   ============================================================ */
.metrics { background: var(--ink); color: #fff; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { padding: 14px 26px; position: relative; }
.metric + .metric::before { content:""; position:absolute; left:0; top:14%; height:72%; width:1px; background: rgba(255,255,255,.12); }
.metric .num { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 60px); color: #fff; line-height: 1; }
.metric .num span { color: var(--gold-soft); }
.metric .lab { font-size: 14px; color: rgba(255,255,255,.62); margin-top: 12px; letter-spacing: .02em; }
.metrics-head { text-align: center; margin-bottom: 48px; }
.metrics-head h2 { color: #fff; }
.metrics-head .eyebrow { color: var(--gold-soft); }

/* ============================================================
   SOFTWARE / TOOLS MARQUEE
   ============================================================ */
.tools { background: var(--paper); border-block: 1px solid var(--border); padding-block: 40px; }
.tools-lab { text-align: center; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollX 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.tool { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; color: var(--ink); opacity: .55; transition: opacity .3s; white-space: nowrap; }
.tool:hover { opacity: 1; }
.tool .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-copy p { color: var(--muted); margin: 18px 0 0; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.pillar { padding-top: 18px; border-top: 1px solid var(--border); }
.pillar .pt { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.pillar .pd { font-size: 14px; color: var(--muted); margin-top: 6px; }
.about-visual { position: relative; }
.ph { position: relative; border-radius: var(--r-lg); overflow: hidden; background:
  repeating-linear-gradient(135deg, var(--ivory-2) 0 14px, var(--paper) 14px 28px);
  border: 1px solid var(--border); display: grid; place-items: center; aspect-ratio: 4/5; }
.ph .ph-tag { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); background: rgba(255,255,255,.7); padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.about-stat { position: absolute; right: -20px; bottom: -24px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-lg); }
.about-stat .n { font-family: var(--serif); font-size: 38px; color: var(--gold-soft); line-height: 1; }
.about-stat .l { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; max-width: 16ch; }

/* ============================================================
   EXPERTS
   ============================================================ */
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.expert {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.expert:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.expert-photo { aspect-ratio: 1/1.04; background:
  repeating-linear-gradient(135deg, var(--ivory-2) 0 12px, #fff 12px 24px);
  position: relative; display: grid; place-items: center; overflow: hidden; }
.expert-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .5s var(--ease); }
.expert:hover .expert-photo img { transform: scale(1.04); }
body.dark .expert-photo { background: repeating-linear-gradient(135deg, #15314a 0 12px, #0e2236 12px 24px); }
.expert-photo .pinit { width: 78px; height: 78px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); font-size: 28px; }
.expert-photo .ph-note { position: absolute; bottom: 12px; left: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); background: rgba(255,255,255,.7); padding: 4px 9px; border-radius: 999px; }
.expert-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.expert-body .en { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.expert-body .er { font-size: 13px; color: var(--gold-deep); font-weight: 600; letter-spacing: .04em; margin-top: 4px; text-transform: uppercase; }
.expert-bio { font-size: 14.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.expert-bio .more { display: none; }
.expert.open .expert-bio .more { display: inline; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.expert-tags span { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: var(--ivory-2); color: var(--muted); border: 1px solid var(--border); }
.expert-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: auto; padding-top: 18px; }
.expert-email { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold-deep); }
.expert-email svg { flex: none; }
.expert-email:hover { color: var(--gold); }
.bio-toggle { background: none; border: none; color: var(--ink); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.bio-toggle .pm { transition: transform .3s; }
.expert.open .bio-toggle .pm { transform: rotate(45deg); }
.li-link { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: all .3s; }
.li-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; position: relative; overflow: hidden;
}
.svc::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-soft); }
.svc:hover::before { transform: scaleX(1); }
.svc .svc-ic { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; margin-bottom: 20px; }
.svc h3 { font-size: 23px; }
.svc .svc-d { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.svc li { font-size: 14px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.svc li::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; flex: none; }
body.dark .svc li { color: var(--muted); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries { background: var(--ink); color: #fff; }
.industries .eyebrow { color: var(--gold-soft); }
.industries .h-section, .industries .section-head p { color: #fff; }
.industries .section-head p { color: rgba(255,255,255,.7); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px 20px;
  background: rgba(255,255,255,.02); transition: all .35s var(--ease); cursor: default;
  display: flex; flex-direction: column; gap: 12px; min-height: 132px;
}
.ind:hover { background: rgba(194,162,105,.1); border-color: rgba(194,162,105,.45); transform: translateY(-4px); }
.ind .ind-ic { color: var(--gold-soft); }
.ind .ind-n { font-family: var(--serif); font-size: 19px; color: #fff; }
.ind .ind-d { font-size: 13px; color: rgba(255,255,255,.55); margin-top: auto; }
.ind .ind-cta { font-size: 12.5px; color: var(--gold-soft); font-weight: 600; opacity: 0; transform: translateY(4px); transition: all .3s; }
.ind:hover .ind-cta { opacity: 1; transform: none; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.why { background: var(--paper); padding: 30px; transition: background .35s; }
.why:hover { background: var(--ivory-2); }
.why .why-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--ivory-2); color: var(--gold-deep); display: grid; place-items: center; margin-bottom: 18px; }
.why:hover .why-ic { background: var(--ink); color: var(--gold-soft); }
.why h3 { font-size: 19px; }
.why p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   CLIENT JOURNEY
   ============================================================ */
.journey { background: var(--ivory-2); }
.journey-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; margin-top: 20px; }
.journey-track::before { content:""; position:absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--border)); }
.step { position: relative; text-align: center; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); color: var(--ink); font-family: var(--serif); font-size: 22px; display: grid; place-items: center; margin: 0 auto 18px; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.step h4 { font-size: 18px; }
.step p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px;
  display: flex; flex-direction: column; gap: 14px; transition: all .4s var(--ease); position: relative; overflow: hidden;
}
.case:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: var(--gold-soft); }
.case .case-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.case .case-fig { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); color: var(--ink); line-height: 1; }
.case h3 { font-size: 21px; }
.case p { font-size: 14.5px; color: var(--muted); }
.case .case-link { font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; margin-top: auto; }
.case .case-link .arr { transition: transform .3s; }
.case:hover .case-link .arr { transform: translateX(4px); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--ink-2); color: #fff; overflow: hidden; }
.testi .eyebrow { color: var(--gold-soft); }
.testi-stage { position: relative; max-width: 880px; margin: 0 auto; min-height: 280px; }
.quote { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: all .6s var(--ease); pointer-events: none; text-align: center; }
.quote.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.quote .mark { font-family: var(--serif); font-size: 80px; color: var(--gold); line-height: .5; height: 40px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.4; color: #fff; margin: 24px 0 0; font-weight: 400; }
.quote .who { margin-top: 28px; }
.quote .who .nm { font-weight: 600; color: var(--gold-soft); }
.quote .who .rl { font-size: 13.5px; color: rgba(255,255,255,.6); margin-top: 3px; }
.testi-dots { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.testi-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); transition: all .3s; padding: 0; }
.testi-dots button.on { background: var(--gold); width: 26px; border-radius: 999px; }

/* ============================================================
   RESOURCES
   ============================================================ */
.res-bar { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; flex-wrap: wrap; }
.res-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--border); border-radius: 999px; padding: 12px 20px; }
.res-search input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 15px; color: var(--text); width: 100%; }
.res-search svg { color: var(--muted); flex: none; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.res {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: all .4s var(--ease); display: flex; flex-direction: column;
}
.res:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: var(--gold-soft); }
.res-thumb { aspect-ratio: 16/9; background: var(--ink); position: relative; display: grid; place-items: center; }
.res-thumb .cat { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.res-thumb .glyph { font-family: var(--serif); font-size: 40px; color: rgba(194,162,105,.5); }
.res-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.res-body .rt { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.25; }
.res-body .rd { font-size: 14px; color: var(--muted); margin-top: 8px; }
.res-body .rmeta { font-size: 12.5px; color: var(--muted-2); margin-top: auto; padding-top: 16px; }
.res.hide { display: none; }

/* ============================================================
   SECURITY
   ============================================================ */
.security { background: var(--ink); color: #fff; }
.security .eyebrow { color: var(--gold-soft); }
.sec-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.sec-copy h2 { color: #fff; }
.sec-copy p { color: rgba(255,255,255,.72); margin-top: 18px; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-item { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px; background: rgba(255,255,255,.02); transition: all .35s; }
.sec-item:hover { border-color: rgba(194,162,105,.4); background: rgba(194,162,105,.08); }
.sec-item .si-ic { width: 40px; height: 40px; border-radius: 9px; background: rgba(194,162,105,.14); color: var(--gold-soft); display: grid; place-items: center; margin-bottom: 14px; }
.sec-item .sit { font-family: var(--serif); font-size: 17px; color: #fff; }
.sec-item .sid { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }

/* ============================================================
   CAREERS
   ============================================================ */
.careers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.role { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; transition: all .35s; }
.role:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.role .rinfo .rtitle { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.role .rinfo .rmeta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.role .rapply { font-size: 13px; font-weight: 600; color: var(--gold-deep); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ivory-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,5vw,72px); }
.contact-info .ci { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-info .ci:last-child { border-bottom: none; }
.contact-info .ci-ic { width: 46px; height: 46px; border-radius: 11px; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; flex: none; }
.contact-info .ci .lab { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-info .ci .val { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-top: 3px; }
.contact-info .ci .val a:hover { color: var(--gold-deep); }
.map-ph { margin-top: 24px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/7; background:
  repeating-linear-gradient(45deg, var(--ivory) 0 16px, var(--paper) 16px 32px);
  display: grid; place-items: center; }
.map-ph .ph-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--ivory);
  font-family: inherit; font-size: 15px; color: var(--text); outline: none; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,162,105,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.row .field { margin: 0; }
.form-err { color: #b4452f; font-size: 12.5px; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select { border-color: #cf6a55; }
.field.invalid .form-err { display: block; }
.form-ok { display: none; text-align: center; padding: 30px 0; }
.form-ok.show { display: block; }
.form-ok .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; margin: 0 auto 18px; }
.form-ok h3 { font-size: 26px; }
.form-ok p { color: var(--muted); margin-top: 10px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.finalcta { background: var(--ink-2); color: #fff; text-align: center; position: relative; overflow: hidden; }
.finalcta::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 50% 0%, rgba(194,162,105,.18), transparent 60%); }
.finalcta .wrap { position: relative; z-index: 1; }
.finalcta h2 { color: #fff; max-width: 16ch; margin: 18px auto 0; }
.finalcta p { color: rgba(255,255,255,.72); max-width: 56ch; margin: 22px auto 0; }
.finalcta .hero-actions { justify-content: center; margin-top: 36px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink-2); color: rgba(255,255,255,.7); padding-top: 70px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.foot-logo { display: flex; align-items: center; }
.foot-logo .brand-icon { width: 68px; height: 68px; }
.foot-logo .brand-logo-img { width: 60px; height: 60px; }
.foot-logo .brand-name { color: rgba(255,255,255,.92); }
.foot-logo .brand-sub { color: var(--gold-soft); }
.foot-brand p { font-size: 14px; margin-top: 14px; max-width: 32ch; line-height: 1.6; }
.foot-offices { margin-top: 22px; display: grid; gap: 14px; }
.foot-office .fo-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: 4px; }
.foot-office .fo-addr { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }
.fo-phone { margin: 6px 0 8px; }
.fo-phone a { font-size: 13.5px; font-weight: 700; color: var(--gold-soft); letter-spacing: .01em; transition: color .2s; }
.fo-phone a:hover { color: #fff; }
.foot-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.foot-contact a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .25s; }
.foot-contact a:hover { color: var(--gold-soft); }
.foot-socials { display: flex; gap: 10px; margin-top: 18px; }
.soc-link { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: rgba(255,255,255,.6); transition: all .25s; }
.soc-link:hover { border-color: var(--gold); color: var(--gold-soft); background: rgba(201,167,106,.12); }
.foot-col h5 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; font-weight: 700; }
.foot-col a { display: block; font-size: 14px; padding: 7px 0; color: rgba(255,255,255,.65); transition: color .25s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.foot-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom a:hover { color: #fff; }

/* ============================================================
   STICKY CTA + CHAT
   ============================================================ */
.sticky-cta { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); z-index: 70; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease); }
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta .sc-txt { font-size: 14px; font-weight: 500; }
.sticky-cta .btn { padding: 11px 20px; }
@media (max-width: 640px){ .sticky-cta .sc-txt { display: none; } }

.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 75; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--ink-2); border: none; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .3s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-panel { position: fixed; bottom: 96px; right: 24px; z-index: 76; width: min(360px, calc(100vw - 48px)); background: var(--paper); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: all .3s var(--ease); transform-origin: bottom right; }
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--ink); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .ch-av { width: 38px; height: 38px; border-radius: 50%; background: rgba(194,162,105,.2); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--serif); }
.chat-head .ch-name { font-weight: 600; font-size: 15px; }
.chat-head .ch-stat { font-size: 12px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }
.chat-head .ch-stat::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #4ec98f; }
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; max-height: 320px; overflow-y: auto; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: var(--ivory-2); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 14px; }
.chat-quick button { font-size: 12.5px; border: 1px solid var(--border); background: var(--paper); color: var(--text); border-radius: 999px; padding: 7px 13px; transition: all .25s; }
.chat-quick button:hover { border-color: var(--gold); color: var(--gold-deep); }
.chat-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-family: inherit; font-size: 14px; outline: none; background: var(--ivory); color: var(--text); }
.chat-input button { width: 40px; flex: none; border: none; border-radius: 50%; background: var(--gold); color: var(--ink-2); display: grid; place-items: center; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } .marquee-track, .gc-bars .bar { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px){
  .services-grid, .res-grid, .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { border-radius: var(--r-lg); }
}
@media (max-width: 900px){
  .nav-links, .portal-link { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .about-grid, .sec-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .metric + .metric::before { display: none; }
  .journey-track { grid-template-columns: 1fr 1fr; gap: 34px; }
  .journey-track::before { display: none; }
  .cases-grid, .careers-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
@media (max-width: 600px){
  body { font-size: 16px; }
  .services-grid, .res-grid, .experts-grid, .ind-grid, .why-grid, .sec-list, .about-pillars { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .journey-track { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .about-stat { right: 12px; }
}

/* ============================================================
   OFFICES
   ============================================================ */
.offices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.offices-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.office-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px; transition: all .4s var(--ease); }
.office-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-soft); transform: translateY(-4px); }
.oc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; margin-bottom: 18px; }
.oc-label { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 8px; }
.oc-name { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-bottom: 14px; line-height: 1.3; }
.oc-addr { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.oc-phone { margin-top: 12px; }
.oc-phone a { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .01em; transition: color .2s; }
.oc-phone a:hover { color: var(--gold-deep); }
.fo-map-link { color: rgba(255,255,255,.65); text-decoration: none; display: block; font-size: 13.5px; line-height: 1.7; transition: color .2s; }
.fo-map-link + .fo-map-link { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.fo-map-link:hover { color: var(--gold-soft); }
.oc-map-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--gold-deep); text-decoration: none; letter-spacing: .03em; transition: color .2s; }
.oc-map-link:hover { color: var(--gold); }
@media (max-width: 900px) { .offices-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offices-grid, .offices-grid-3 { grid-template-columns: 1fr; } }
.nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after { width: 100%; }
.topbar:not(.scrolled) .nav-links a.active { color: var(--gold-soft); }
.drawer-panel a.active { color: var(--gold-deep); }

/* ============================================================
   SUBPAGE BANNER
   ============================================================ */
.page-banner { position: relative; background: var(--ink-2); color: #fff; padding: calc(76px + clamp(60px,9vw,104px)) 0 clamp(56px,8vw,92px); overflow: hidden; }
.page-banner::before { content:""; position:absolute; inset:0; background:
  radial-gradient(80% 120% at 85% 0%, rgba(194,162,105,.16), transparent 55%),
  radial-gradient(60% 100% at 10% 100%, rgba(16,46,72,.6), transparent 60%); }
.page-banner::after { content:""; position:absolute; inset:0; opacity:.5; background-image:
  linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.page-banner .wrap { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: .5; }
.page-banner h1 { color: #fff; font-size: clamp(38px, 5.4vw, 68px); max-width: 18ch; margin-top: 16px; }
.page-banner .pb-sub { color: rgba(255,255,255,.74); font-size: clamp(17px,1.5vw,20px); max-width: 60ch; margin-top: 22px; line-height: 1.6; }
.page-banner .eyebrow { color: var(--gold-soft); }
.pb-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.pb-stat .n { font-family: var(--serif); font-size: 34px; color: var(--gold-soft); line-height: 1; }
.pb-stat .l { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 6px; }

.section-alt { background: var(--ivory-2); }

/* ============================================================
   SERVICE PREVIEW LINK CARD (home)
   ============================================================ */
.svc-link { text-decoration: none; display: flex; flex-direction: column; }
.svc-link .svc-more { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; }
.svc-link .svc-more svg { transition: transform .3s var(--ease); }
.svc-link:hover .svc-more svg { transform: translateX(4px); }

/* ============================================================
   GLOBAL SEARCH OVERLAY
   ============================================================ */
.search-ov { position: fixed; inset: 0; z-index: 120; background: rgba(6,19,32,.55); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; display: flex; justify-content: center; align-items: flex-start; padding: clamp(60px,12vh,140px) 20px; }
.search-ov.open { opacity: 1; pointer-events: auto; }
.search-inner { width: 100%; max-width: 680px; background: var(--paper); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-14px); transition: transform .3s var(--ease); }
.search-ov.open .search-inner { transform: none; }
.search-bar { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border); color: var(--muted); }
.search-bar input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 19px; color: var(--text); }
.search-close { border: 1px solid var(--border); background: var(--ivory); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.search-results { max-height: min(56vh, 460px); overflow-y: auto; padding: 10px; }
.search-hint { padding: 12px 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-hint button { font-size: 12.5px; border: 1px solid var(--border); background: var(--ivory); border-radius: 999px; padding: 5px 12px; color: var(--text); }
.search-hint button:hover { border-color: var(--gold); color: var(--gold-deep); }
.search-item { display: grid; grid-template-columns: 120px 1fr; gap: 4px 16px; padding: 14px; border-radius: 12px; transition: background .2s; align-items: baseline; }
.search-item:hover { background: var(--ivory-2); }
.search-item .si-type { grid-row: span 2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; align-self: center; }
.search-item .si-t { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.search-item .si-d { font-size: 13px; color: var(--muted); }
.search-empty { padding: 30px; text-align: center; color: var(--muted); }
body.dark .search-item .si-t { color: var(--text); }

/* ============================================================
   INDUSTRY CASE-STUDY MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 115; background: rgba(6,19,32,.6); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg); padding: clamp(28px,4vw,48px); transform: translateY(18px) scale(.98); transition: transform .35s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--ivory); color: var(--muted); font-size: 24px; line-height: 1; transition: all .25s; }
.modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal-title { font-size: clamp(28px,3.4vw,40px); margin-top: 14px; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.mc-h { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.mc-h::before { content:""; width: 10px; height: 10px; border-radius: 3px; }
.mc-ch { color: var(--muted); } .mc-ch::before { background: var(--muted-2); }
.mc-so { color: var(--gold-deep); } .mc-so::before { background: var(--gold); }
.mc-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 11px; }
.mc-list li { font-size: 14.5px; color: var(--text); display: flex; gap: 10px; line-height: 1.5; }
.mc-list li::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-top: 8px; flex: none; opacity: .4; }
.modal-case { margin-top: 30px; background: var(--ink); color: #fff; border-radius: 16px; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.mcase-metric { font-family: var(--serif); font-size: clamp(34px,4vw,48px); color: var(--gold-soft); line-height: 1; white-space: nowrap; }
.mcase-title { font-weight: 600; color: var(--gold-soft); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.modal-case p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0; }
.modal-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 560px){ .modal-cols, .modal-case { grid-template-columns: 1fr; } .mcase-metric { font-size: 38px; } }

/* ============================================================
   ABOUT IMAGE (real)
   ============================================================ */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { background: var(--ink-2); }

/* simple page intro */
.page-intro { max-width: 760px; margin: 0 auto clamp(40px,5vw,60px); text-align: center; }
.page-intro p { color: var(--muted); margin-top: 18px; }

/* ============================================================
   CLIENT PAYMENT PORTAL
   ============================================================ */
.pay-trust { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 26px; }
.pay-trust .pt-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); border-radius: 999px; padding: 8px 14px; }
.pay-trust .pt-item svg { color: var(--gold-soft); flex: none; }

.pay-wrap { display: grid; grid-template-columns: 1.55fr .95fr; gap: clamp(24px,3vw,40px); align-items: start; }
@media (max-width: 900px){ .pay-wrap { grid-template-columns: 1fr; } }

.pay-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px,3vw,40px); }
.pay-card + .pay-card { margin-top: 22px; }
.pay-step { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.pay-step .ps-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); font-family: var(--serif); font-size: 15px; display: grid; place-items: center; flex: none; }
.pay-step h3 { font-size: 20px; }
.pay-step .ps-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.pay-field { margin-bottom: 18px; }
.pay-field:last-child { margin-bottom: 0; }
.pay-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pay-field label .opt { color: var(--muted-2); font-weight: 500; }
.pay-input, .pay-field input, .pay-field select, .pay-field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px; font-family: inherit; font-size: 15px; color: var(--text); background: var(--paper); outline: none; transition: border-color .2s, box-shadow .2s; }
.pay-field input::placeholder, .pay-field textarea::placeholder { color: var(--muted-2); }
.pay-field input:focus, .pay-field select:focus, .pay-field textarea:focus, .pay-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,167,106,.16); }
.pay-field textarea { min-height: 84px; resize: vertical; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .pay-row, .pay-row-3 { grid-template-columns: 1fr; } }
.pay-field.bad input, .pay-field.bad select { border-color: #c0492f; box-shadow: 0 0 0 3px rgba(192,73,47,.12); }
.pay-err { display: none; color: #c0492f; font-size: 12px; margin-top: 6px; }
.pay-field.bad .pay-err { display: block; }

/* amount field with $ */
.amount-wrap { position: relative; }
.amount-wrap .cur { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 600; color: var(--ink); }
.amount-wrap input { padding-left: 32px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* method segmented control */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-method { border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; background: var(--paper); text-align: center; cursor: pointer; transition: all .25s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pay-method svg { color: var(--muted); transition: color .25s; }
.pay-method .pm-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pay-method .pm-s { font-size: 11px; color: var(--muted-2); }
.pay-method:hover { border-color: var(--gold-soft); }
.pay-method.on { border-color: var(--gold); background: rgba(201,167,106,.07); box-shadow: 0 0 0 2px rgba(201,167,106,.18) inset; }
.pay-method.on svg { color: var(--gold-deep); }

.card-fields { margin-top: 18px; }
.card-fields.hide { display: none; }
.card-brands { display: flex; gap: 8px; align-items: center; }
.card-brands .cb { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); background: var(--ivory); }
.alt-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.6; background: var(--ivory); border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; }

.pay-submit { width: 100%; margin-top: 8px; padding: 16px 22px; font-size: 16px; }
.pay-legal { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.pay-legal svg { color: var(--gold-deep); flex: none; margin-top: 1px; }

/* aside */
.pay-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 900px){ .pay-aside { position: static; } }
.secure-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.secure-card::before { content:""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 85% 0%, rgba(201,167,106,.16), transparent 60%); pointer-events: none; }
.secure-card .sc-lock { width: 52px; height: 52px; border-radius: 14px; background: rgba(201,167,106,.14); border: 1px solid rgba(201,167,106,.35); display: grid; place-items: center; color: var(--gold-soft); margin-bottom: 16px; }
.secure-card h3 { color: #fff; font-size: 21px; }
.secure-card .sc-sub { font-size: 13.5px; color: rgba(255,255,255,.68); margin-top: 8px; }
.secure-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 13px; position: relative; }
.secure-list li { display: flex; gap: 11px; font-size: 13.5px; color: rgba(255,255,255,.86); line-height: 1.5; }
.secure-list li svg { color: var(--gold-soft); flex: none; margin-top: 2px; }

.summary-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.summary-card h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-row:first-of-type { border-top: none; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.summary-total span { font-size: 14px; font-weight: 600; color: var(--ink); }
.summary-total b { font-family: var(--serif); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-methods { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.summary-methods .cb { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); background: var(--ivory); }
.pay-support { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; }
.pay-support a { color: var(--gold-deep); font-weight: 600; }

/* success state */
.pay-ok { display: none; text-align: center; padding: 20px 10px; }
.pay-ok.show { display: block; }
.pay-ok .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; margin: 0 auto 18px; }
.pay-ok h3 { font-size: 26px; }
.pay-ok p { color: var(--muted); margin-top: 10px; max-width: 42ch; margin-inline: auto; }
.pay-ref { display: inline-block; margin-top: 18px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--ink); background: var(--ivory); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 18px; font-weight: 600; }
