/* ==========================================================================
   isthaan® Financials — Design Tokens & Base
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root{
  /* ---- Color: Ink (dark) ---- */
  --ink-950:#080d16;
  --ink-900:#0b1220;
  --ink-800:#101a2c;
  --ink-700:#17233a;
  --ink-line: rgba(248,245,239,0.14);
  --ink-line-soft: rgba(248,245,239,0.08);

  /* ---- Color: Paper (light) ---- */
  --paper-000:#fbf9f5;
  --paper-100:#f7f3ec;
  --paper-200:#efe8db;
  --paper-line: rgba(11,18,32,0.10);
  --paper-line-soft: rgba(11,18,32,0.06);

  /* ---- Color: Brand ---- */
  --brand-500:#ff6a00;
  --brand-600:#e85d00;
  --brand-700:#b8480a;
  --brand-50: #fff1e6;

  /* ---- Text ---- */
  --text-on-paper: #14202f;
  --text-on-paper-muted: #5c6672;
  --text-on-ink: #f8f5ef;
  --text-on-ink-muted: rgba(248,245,239,0.66);

  /* ---- Fonts ---- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Type scale (fluid) ---- */
  --fs-hero: clamp(2.6rem, 5.4vw + 1rem, 5.4rem);
  --fs-h1: clamp(2.1rem, 2.6vw + 1rem, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.6vw + 1rem, 2.35rem);
  --fs-h3: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* ---- Spacing scale ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 160px;

  /* ---- Radius / shadow ---- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px -20px rgba(11,18,32,0.25);
  --shadow-card: 0 12px 32px -16px rgba(11,18,32,0.18);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --dur-fast: 200ms;
  --dur-med: 420ms;

  --container: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-on-paper);
  background: var(--paper-000);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
svg{ display:block; }

.container{
  width:100%;
  max-width: var(--container);
  margin-inline:auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section{ position:relative; }

.section-pad{ padding-block: clamp(64px, 9vw, 128px); }
.section-pad-sm{ padding-block: clamp(48px, 6vw, 88px); }

.bg-paper{ background: var(--paper-000); }
.bg-paper-alt{ background: var(--paper-100); }
.bg-ink{ background: var(--ink-900); color: var(--text-on-ink); }

/* ---- Eyebrow / kicker ---- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: var(--fs-eyebrow);
  font-weight:600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--sp-4);
}
.bg-ink .eyebrow{ color: var(--brand-500); }
.eyebrow::before{
  content:"";
  width:22px; height:1.5px;
  background: currentColor;
  display:inline-block;
}

.section-head{ max-width: 680px; margin-bottom: var(--sp-8); }
.section-head.center{ margin-inline:auto; text-align:center; }

h1, .h1, h2, .h2, h3, .h3{
  font-family: var(--font-display);
  font-weight:600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h2{ font-size: var(--fs-h2); }
.h3{ font-size: var(--fs-h3); font-weight:600; }

.lead{ font-size: var(--fs-lead); color: var(--text-on-paper-muted); font-weight:400; }
.bg-ink .lead{ color: var(--text-on-ink-muted); }

/* ---- Buttons ---- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight:600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn svg{ width:16px; height:16px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg{ transform: translate(3px,-3px); }

.btn-primary{ background: var(--brand-500); color:#fff; }
.btn-primary:hover{ background: var(--brand-700); }

.btn-ghost-dark{ border-color: rgba(20,32,47,0.22); color: var(--text-on-paper); background:transparent; }
.btn-ghost-dark:hover{ border-color: var(--text-on-paper); background: rgba(20,32,47,0.04); }

.btn-ghost-light{ border-color: rgba(248,245,239,0.35); color: var(--text-on-ink); background:transparent; }
.btn-ghost-light:hover{ border-color: var(--text-on-ink); background: rgba(248,245,239,0.08); }

.btn-sm{ padding: 11px 22px; font-size: 0.82rem; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar{
  background: var(--ink-950);
  color: var(--text-on-ink-muted);
  font-size: 0.8rem;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 10px;
  gap: var(--sp-5);
}
.topbar-contacts{ display:flex; gap: var(--sp-6); }
.topbar-contacts a{ display:inline-flex; align-items:center; gap:8px; color: var(--text-on-ink-muted); transition: color var(--dur-fast); }
.topbar-contacts a:hover{ color:#fff; }
.topbar-contacts svg{ width:14px; height:14px; opacity:0.8; }
.topbar-social{ display:flex; gap: 14px; }
.topbar-social a{
  width:28px; height:28px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color: var(--text-on-ink-muted);
  border:1px solid var(--ink-line-soft);
  transition: all var(--dur-fast);
}
.topbar-social a:hover{ color:#fff; border-color: var(--ink-line); background: rgba(255,255,255,0.06); }
.topbar-social svg{ width:13px; height:13px; }

.topbar-contacts a{ white-space: nowrap; }

@media (max-width: 700px){
  .topbar-contacts a.hide-mobile{ display:none; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav{
  position: sticky; top:0; z-index: 100;
  background: transparent;
  transition: background var(--dur-med) var(--ease-out), box-shadow var(--dur-med), border-color var(--dur-med);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled, .site-nav.nav-solid{
  background: rgba(251,249,245,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--paper-line);
  box-shadow: 0 8px 30px -20px rgba(11,18,32,0.25);
}
.site-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-block: 18px;
}
.brand-logo{ display:flex; align-items:center; }
.brand-logo img{ height: 34px; width:auto; transition: filter var(--dur-med); }

.nav-links{ display:flex; align-items:center; gap: var(--sp-7); }
.nav-links > li{ position:relative; }
.nav-link{
  font-size: 0.92rem; font-weight:500;
  color: var(--text-on-ink);
  display:flex; align-items:center; gap:6px;
  padding-block: 8px;
  transition: color var(--dur-fast);
}
.site-nav.is-scrolled .nav-link, .site-nav.nav-solid .nav-link{ color: var(--text-on-paper); }
.nav-link:hover{ color: var(--brand-500); }
.nav-link svg{ width:11px; height:11px; opacity:0.7; }

.has-dropdown:hover .dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.dropdown{
  position:absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--paper-000);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  min-width: 300px;
  opacity:0; visibility:hidden;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.dropdown a{
  display:block; padding: 11px 16px; border-radius: 8px;
  font-size: 0.9rem; color: var(--text-on-paper);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.dropdown a:hover{ background: var(--paper-100); color: var(--brand-600); }

.nav-cta{ display:flex; align-items:center; gap: var(--sp-5); }
.nav-toggle{
  display:none;
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background:transparent; border:1px solid var(--ink-line);
  border-radius:50%;
  color: var(--text-on-ink);
}
.site-nav.is-scrolled .nav-toggle, .site-nav.nav-solid .nav-toggle{ color: var(--text-on-paper); border-color: var(--paper-line); }

@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-cta .btn{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* Mobile menu panel */
.mobile-menu{
  position: fixed; inset:0; z-index: 200;
  background: var(--ink-900);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
  overflow-y:auto;
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px clamp(20px,4vw,48px);
  border-bottom: 1px solid var(--ink-line-soft);
}
.mobile-menu-close{
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--ink-line); background:transparent; color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
}
.mobile-links{ padding: var(--sp-6) clamp(20px,4vw,48px); }
.mobile-links > li{ border-bottom:1px solid var(--ink-line-soft); }
.mobile-links > li > a, .mobile-links .m-toggle{
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 18px 0;
  display:flex; align-items:center; justify-content:space-between;
  color:#fff;
  background:none; border:none; width:100%; text-align:left;
}
.mobile-sub{ max-height:0; overflow:hidden; transition: max-height var(--dur-med) var(--ease-out); }
.mobile-sub.is-open{ max-height: 480px; }
.mobile-sub a{ display:block; padding: 12px 0 12px 14px; color: var(--text-on-ink-muted); font-size:1rem; border-left: 2px solid var(--ink-line); }
.mobile-menu-foot{ padding: var(--sp-6) clamp(20px,4vw,48px) var(--sp-9); }
.mobile-menu-foot .btn{ width:100%; margin-bottom: var(--sp-5); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  min-height: calc(92vh - 74px);
  display:flex; align-items:flex-end;
  color: var(--text-on-ink);
}
/* hero-media extends up behind the sticky nav via an offset top (not a
   negative margin on .hero) -- a negative margin on the overflow:hidden
   ancestor of an animated-transform image causes a top clipping glitch
   in this renderer, so the offset lives one level down instead. */
.hero-media{ position:absolute; top:-74px; left:0; right:0; bottom:0; z-index:0; overflow:hidden; }
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position: center 68%;
  transform: scale(1.08);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  filter: blur(22px) saturate(1.15) brightness(0.8);
  transition: filter 1.8s cubic-bezier(.16,.84,.44,1);
}
.hero-media img.is-focused{ filter: blur(0px) saturate(1) brightness(1); }
@keyframes heroKenBurns{
  from{ transform: scale(1.08) translate3d(0,0,0); }
  to{ transform: scale(1.16) translate3d(-1%, -1%,0); }
}

/* Cursor-reactive warm spotlight, layered above the scrim */
.hero-spotlight{
  position:absolute; top:-74px; left:0; right:0; bottom:0; z-index:1;
  pointer-events:none;
  background: radial-gradient(480px circle at var(--mx,50%) var(--my,30%), rgba(255,106,0,0.16), transparent 70%);
  opacity:0;
  transition: opacity .5s ease;
}
.hero:hover .hero-spotlight{ opacity:1; }

/* Subtle mouse-parallax depth on hero content (JS sets --px/--py) */
.hero-inner{ transform: translate3d(calc(var(--px,0) * 1px), calc(var(--py,0) * 1px), 0); transition: transform 0.6s cubic-bezier(.16,.84,.44,1); }

@media (prefers-reduced-motion: reduce){
  .hero-media img{ filter:none; transition:none; }
  .hero-spotlight{ display:none; }
  .hero-inner{ transform:none !important; transition:none; }
}
@media (pointer: coarse){
  .hero-spotlight{ display:none; }
}
.hero-scrim{
  position:absolute; top:-74px; left:0; right:0; bottom:0;
  background:
    linear-gradient(180deg, rgba(8,13,22,0.55) 0%, rgba(8,13,22,0.35) 32%, rgba(8,13,22,0.82) 100%),
    linear-gradient(90deg, rgba(8,13,22,0.75) 0%, rgba(8,13,22,0.15) 55%);
}
.hero-inner{
  position:relative; z-index:1;
  padding-block: clamp(48px, 12vw, 136px) var(--sp-9);
  width:100%;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size: var(--fs-eyebrow); font-weight:600; letter-spacing:0.16em; text-transform:uppercase;
  color: rgba(248,245,239,0.85);
  border: 1px solid var(--ink-line);
  background: rgba(248,245,239,0.06);
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background: var(--brand-500); box-shadow: 0 0 0 4px rgba(255,106,0,0.25); }

.hero h1{
  font-size: var(--fs-hero);
  max-width: 15ch;
  color:#fff;
}
.hero h1 em{ font-style:italic; color: var(--brand-500); }
.hero-sub{
  max-width: 46ch;
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
  color: rgba(248,245,239,0.78);
}
.hero-cta{ display:flex; flex-wrap:wrap; gap: var(--sp-4); margin-top: var(--sp-8); }

.hero-stats{
  display:grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-9);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--ink-line);
  max-width: 720px;
}
.stat-num{ font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.4rem); color:#fff; display:flex; align-items:baseline; gap:2px; width: 250px; }
.stat-label{ font-size: 0.82rem; color: rgba(248,245,239,0.6); margin-top:6px; letter-spacing:0.02em; }

.scroll-cue{
  position:absolute; right: clamp(20px,4vw,48px); bottom: var(--sp-7);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: rgba(248,245,239,0.6); font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase;
  z-index:1;
}
.scroll-cue .line{ width:1px; height:46px; background: linear-gradient(180deg, rgba(248,245,239,0.7), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine{ 0%{ transform: scaleY(0); transform-origin:top;} 50%{ transform: scaleY(1); transform-origin:top;} 50.01%{ transform-origin:bottom;} 100%{ transform: scaleY(0); transform-origin:bottom;} }

@media (max-width: 700px){
  .hero-stats{ grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scroll-cue{ display:none; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-band{
  background: var(--paper-100);
  border-bottom: 1px solid var(--paper-line);
  padding-block: var(--sp-6);
  overflow:hidden;
}
.marquee-label{
  font-size: var(--fs-eyebrow); font-weight:600; letter-spacing:0.16em; text-transform:uppercase;
  color: var(--text-on-paper-muted);
  text-align:center; margin-bottom: var(--sp-4);
}
.marquee-track{ display:flex; width: max-content; animation: marqueeScroll 32s linear infinite; }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }
.marquee-track span{
  display:flex; align-items:center; gap: 18px;
  font-family: var(--font-display); font-size: clamp(1.1rem,2vw,1.6rem);
  color: var(--text-on-paper);
  padding-inline: var(--sp-6);
  white-space:nowrap;
}
.marquee-track span::after{ content:"◆"; font-size:0.5rem; color: var(--brand-500); margin-left:18px; }
@keyframes marqueeScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.service-card{
  background: var(--paper-000);
  padding: var(--sp-7) var(--sp-6);
  transition: background var(--dur-med);
  position:relative;
}
.service-card:hover{ background: var(--ink-900); }
.service-num{ font-size: 0.8rem; color: var(--text-on-paper-muted); font-weight:600; }
.service-card:hover .service-num{ color: rgba(248,245,239,0.5); }
.service-icon{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-50); color: var(--brand-600);
  margin-block: var(--sp-5);
  transition: background var(--dur-med), color var(--dur-med);
}
.service-icon svg{ width:24px; height:24px; }
.service-card:hover .service-icon{ background: rgba(255,106,0,0.15); color: var(--brand-500); }
.service-card h3{ margin-bottom: 10px; color: var(--text-on-paper); transition: color var(--dur-med); }
.service-card:hover h3{ color:#fff; }
.service-card p{ color: var(--text-on-paper-muted); font-size: 0.94rem; transition: color var(--dur-med); }
.service-card:hover p{ color: rgba(248,245,239,0.68); }
.service-link{
  display:inline-flex; align-items:center; gap:8px;
  margin-top: var(--sp-5); font-size:0.85rem; font-weight:600;
  color: var(--brand-600);
}
.service-card:hover .service-link{ color: var(--brand-500); }
.service-link svg{ width:14px; height:14px; transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .service-link svg{ transform: translateX(4px); }

.services-foot{ display:flex; justify-content:center; margin-top: var(--sp-8); }

@media (max-width: 980px){ .services-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid{
  display:grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items:center;
}
.about-media{ position:relative; }
.about-media .frame{
  border-radius: var(--radius-lg);
  overflow:hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
}
.about-media img{ width:100%; height:100%; object-fit:cover; }
.about-badge{
  position:absolute; left: -28px; bottom: -28px;
  background: var(--ink-900); color:#fff;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  width: 190px;
  box-shadow: var(--shadow-soft);
}
.about-badge .stat-num{ color: var(--brand-500); font-size:2rem; }
.about-badge .stat-label{ color: rgba(248,245,239,0.75); }

.values-row{ display:flex; flex-wrap:wrap; gap:10px; margin-block: var(--sp-6) var(--sp-7); }
.pill{
  padding: 9px 18px; border-radius: var(--radius-pill);
  border:1px solid var(--paper-line);
  font-size:0.85rem; font-weight:500; color: var(--text-on-paper);
  background: var(--paper-100);
}

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-badge{ left:16px; bottom:16px; }
}

/* ==========================================================================
   Value props
   ========================================================================== */
.value-grid{ display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--sp-6); }
.value-card{ padding: var(--sp-6) var(--sp-2) 0 0; border-top: 1px solid var(--paper-line); }
.value-card .num{ font-family: var(--font-display); font-size:1.1rem; color: var(--brand-600); margin-bottom: var(--sp-4); }
.value-card h3{ margin-bottom: var(--sp-3); }
.value-card p{ color: var(--text-on-paper-muted); font-size:0.92rem; }
@media (max-width: 980px){ .value-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px){ .value-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Global reach (network graphic)
   ========================================================================== */
.reach-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,80px); align-items:center; }
.reach-copy h2{ color:#fff; }
.reach-copy p.lead{ margin-top: var(--sp-5); }
.reach-copy .hero-cta{ margin-top: var(--sp-7); }

.network{ position:relative; aspect-ratio: 1/1; max-width:460px; margin-inline:auto; }
.network svg{ width:100%; height:100%; overflow:visible; }
.network .node-line line{
  stroke: var(--ink-line); stroke-width:1; stroke-dasharray: 3 5;
  transition: stroke .35s ease, stroke-width .35s ease, opacity .35s ease;
}
.network .node-line line.is-active{ stroke: var(--brand-500); stroke-width:1.6; stroke-dasharray:none; opacity:1; }
.network .node-dot{ fill: var(--brand-500); }
.network .node-core{ fill: #fff; }
.network .pulse{ animation: pulseDot 2.6s ease-out infinite; transform-origin:center; }
@keyframes pulseDot{ 0%{ opacity:0.55; r:14;} 100%{ opacity:0; r:34; } }

.network .outer-node{
  fill: var(--brand-500);
  transition: r .3s var(--ease-out), fill .3s ease, filter .3s ease;
}
.network .outer-node.is-active{
  r:9; fill:#fff;
  filter: drop-shadow(0 0 8px rgba(255,106,0,0.7));
}

.flow-dot{ fill: var(--brand-500); filter: drop-shadow(0 0 4px rgba(255,106,0,0.85)); }

.network-label{
  position:absolute; transform: translate(-50%,-50%);
  font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase;
  color: rgba(248,245,239,0.75);
  background: rgba(248,245,239,0.06);
  border:1px solid var(--ink-line);
  padding: 6px 12px; border-radius: var(--radius-pill);
  white-space:nowrap;
  backdrop-filter: blur(6px);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s var(--ease-out);
}
.network-label[data-node]{ cursor:pointer; }
.network-label[data-node]:hover,
.network-label[data-node].is-active,
.network-label[data-node]:focus-visible{
  background: rgba(255,106,0,0.18);
  border-color: rgba(255,106,0,0.6);
  color:#fff;
  transform: translate(-50%,-50%) scale(1.08);
  outline: none;
}

@media (prefers-reduced-motion: reduce){
  .flow-dots{ display:none; }
}
@media (max-width: 860px){ .reach-grid{ grid-template-columns: 1fr; } .network{ margin-top: var(--sp-7); } }

/* ==========================================================================
   Team preview
   ========================================================================== */
.team-grid{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sp-6); }
.team-card{
  padding: var(--sp-7) var(--sp-6);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: var(--paper-000);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med);
}
.team-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-card); }
.avatar-mono{
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size:1.3rem; font-weight:600;
  background: var(--ink-900); color: var(--brand-500);
  border: 1px solid var(--paper-line);
  margin-bottom: var(--sp-5);
}
.team-card h3{ margin-bottom:4px; }
.team-role{ color: var(--brand-600); font-size:0.82rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; margin-bottom: var(--sp-4); }
.team-card p{ color: var(--text-on-paper-muted); font-size:0.92rem; }
@media (max-width: 860px){ .team-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sp-6); }
.testi-card{
  background: var(--paper-000);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--sp-7) var(--sp-6);
  display:flex; flex-direction:column;
}
.quote-mark{ font-family: var(--font-display); font-size: 3rem; line-height:1; color: var(--brand-50); margin-bottom: var(--sp-3); }
.testi-card p.testi-text{ color: var(--text-on-paper); font-size: 0.98rem; flex:1; }
.testi-foot{ display:flex; align-items:center; gap:14px; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top:1px solid var(--paper-line); }
.avatar-mono.sm{ width:44px; height:44px; font-size:0.95rem; background: var(--paper-100); color: var(--brand-600); border-color: var(--paper-line); }
.testi-name{ font-weight:600; font-size:0.92rem; }
.testi-company{ color: var(--text-on-paper-muted); font-size:0.82rem; }
@media (max-width: 980px){ .testi-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{ text-align:center; }
.cta-band h2{ color:#fff; max-width: 18ch; margin-inline:auto; }
.cta-band .lead{ max-width: 52ch; margin: var(--sp-5) auto 0; }
.cta-band .hero-cta{ justify-content:center; margin-top: var(--sp-8); }
.cta-contacts{
  display:flex; flex-wrap:wrap; justify-content:center; gap: var(--sp-7);
  margin-top: var(--sp-9); padding-top: var(--sp-7);
  border-top: 1px solid var(--ink-line);
}
.cta-contact-item{ display:flex; align-items:center; gap:12px; color: rgba(248,245,239,0.8); font-size:0.92rem; }
.cta-contact-item svg{ width:18px; height:18px; color: var(--brand-500); flex-shrink:0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ padding-top: clamp(64px,8vw,112px); }
.footer-top{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: var(--sp-8); padding-bottom: var(--sp-9); }
.footer-brand img{ height:32px; margin-bottom: var(--sp-5); }
.footer-brand p{ color: var(--text-on-ink-muted); font-size:0.92rem; max-width:34ch; }
.footer-social{ display:flex; gap:12px; margin-top: var(--sp-6); }
.footer-social a{
  width:36px; height:36px; border-radius:50%; border:1px solid var(--ink-line);
  display:inline-flex; align-items:center; justify-content:center; color: var(--text-on-ink-muted);
  transition: all var(--dur-fast);
}
.footer-social a:hover{ background:#fff; color: var(--ink-900); border-color:#fff; }
.footer-social svg{ width:15px; height:15px; }
.footer-social a.google-reviews-link{
  width:auto;
  height:auto;
  border:none;
  border-radius:0;
  background:none;
  display:inline-flex;
  align-items:center;
}
.footer-social a.google-reviews-link:hover{
  background:none;      /* removes the white hover fill from .footer-social a:hover */
}
.google-reviews-img{
  height:36px;      /* adjust to taste */
  width:auto;
}

.footer-col h4{ font-size:0.82rem; letter-spacing:0.1em; text-transform:uppercase; color: rgba(248,245,239,0.5); margin-bottom: var(--sp-5); font-weight:600; }
.footer-col li{ margin-bottom: 13px; }
.footer-col a{ color: var(--text-on-ink-muted); font-size:0.92rem; transition: color var(--dur-fast); }
.footer-col a:hover{ color:#fff; }
.footer-contact-item{ display:flex; gap:12px; margin-bottom: var(--sp-5); align-items:flex-start; }
.footer-contact-item svg{ width:17px; height:17px; color: var(--brand-500); flex-shrink:0; margin-top:2px; }
.footer-contact-item span{ color: var(--text-on-ink-muted); font-size:0.9rem; }
.footer-contact-item a{ color: var(--text-on-ink-muted); font-size:0.9rem; }
.footer-contact-item a:hover{ color:#fff; }

.footer-bottom{
  border-top: 1px solid var(--ink-line-soft);
  padding-block: var(--sp-5);
  display:flex; flex-wrap:wrap; gap: var(--sp-4); justify-content:space-between; align-items:center;
  font-size: 0.82rem; color: var(--text-on-ink-muted);
}
.footer-bottom a:hover{ color:#fff; }

@media (max-width: 980px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal utility (JS adds .is-visible)
   ========================================================================== */
[data-reveal]{ opacity:0; transform: translateY(24px); }
[data-reveal].is-visible{ opacity:1; transform:none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal-stagger] > *{ opacity:0; transform: translateY(20px); }
[data-reveal-stagger].is-visible > *{ opacity:1; transform:none; transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
@media (prefers-reduced-motion: reduce){
  [data-reveal], [data-reveal-stagger] > *{ opacity:1; transform:none; }
}

/* Two-col generic */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); }
@media (max-width: 860px){ .grid-2{ grid-template-columns: 1fr; } }

.section-head-row{ display:flex; justify-content:space-between; align-items:flex-end; gap: var(--sp-6); margin-bottom: var(--sp-8); flex-wrap:wrap; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header{
  position:relative;
  background: var(--ink-900);
  color: var(--text-on-ink);
  padding-block: clamp(140px, 18vw, 200px) var(--sp-9);
  overflow:hidden;
}
.page-header::before{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(255,106,0,0.16), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events:none;
}
.page-header.has-media{ padding-block: clamp(160px, 22vw, 260px) var(--sp-10); }
.page-header-media{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.page-header-media img{
  width:100%; height:100%; object-fit:cover; object-position: center 70%; opacity:0.6;
  transform: scale(1.06);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
.page-header-media::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(8,13,22,0.55) 0%, rgba(8,13,22,0.72) 55%, var(--ink-900) 96%);
}
.page-header .container{ position:relative; z-index:2; }
.breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-size:0.8rem; letter-spacing:0.06em; text-transform:uppercase;
  color: rgba(248,245,239,0.55);
  margin-bottom: var(--sp-5);
}
.breadcrumb a{ color: rgba(248,245,239,0.55); transition: color var(--dur-fast); }
.breadcrumb a:hover{ color:#fff; }
.breadcrumb span{ color: var(--brand-500); }
.page-header h1{ font-size: var(--fs-h1); color:#fff; max-width: 22ch; }
.page-header .lead{ margin-top: var(--sp-5); max-width: 60ch; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:0.82rem; font-weight:600; color: var(--text-on-paper); }
.form-field input, .form-field textarea{
  font-family: var(--font-body); font-size:0.95rem;
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--paper-line); background: var(--paper-000);
  color: var(--text-on-paper);
  transition: border-color var(--dur-fast);
}
.form-field input:focus, .form-field textarea:focus{ outline:none; border-color: var(--brand-500); }
.form-field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size:0.82rem; color: var(--text-on-paper-muted); margin-top: var(--sp-3); }
.form-submit{ margin-top: var(--sp-2); }

.contact-info-list{ display:flex; flex-direction:column; gap: var(--sp-6); }
.contact-info-item{ display:flex; gap: var(--sp-5); align-items:flex-start; }
.contact-info-icon{
  width:48px; height:48px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--brand-50); color: var(--brand-600);
}
.contact-info-icon svg{ width:22px; height:22px; }
.contact-info-item h3{ margin-bottom:4px; }
.contact-info-item p, .contact-info-item a{ color: var(--text-on-paper-muted); font-size:0.94rem; }
.contact-info-item a:hover{ color: var(--brand-600); }

.map-frame{ border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--paper-line); margin-top: var(--sp-7); aspect-ratio: 16/10; }
.map-frame iframe{ width:100%; height:100%; border:0; display:block; filter: grayscale(0.25); }

@media (max-width: 700px){ .form-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Document list (Annual Returns)
   ========================================================================== */
.doc-list{ display:flex; flex-direction:column; }
.doc-row{
  display:flex; align-items:center; justify-content:space-between; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--paper-line);
}
.doc-row:first-child{ border-top: 1px solid var(--paper-line); }
.doc-main{ display:flex; align-items:center; gap: var(--sp-5); }
.doc-icon{
  width:52px; height:52px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--paper-100); color: var(--brand-600); border:1px solid var(--paper-line);
}
.doc-icon svg{ width:22px; height:22px; }
.doc-title{ font-weight:600; margin-bottom:2px; }
.doc-sub{ font-size:0.85rem; color: var(--text-on-paper-muted); }

/* ==========================================================================
   Full team bios
   ========================================================================== */
.team-full-grid{ display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sp-6); }
.team-full-card{
  padding: var(--sp-8) var(--sp-6);
  border:1px solid var(--paper-line); border-radius: var(--radius-md);
  background: var(--paper-000);
}
.avatar-mono.lg{ width:84px; height:84px; font-size:1.7rem; }
.team-full-card h3{ font-size: var(--fs-h3); margin: var(--sp-5) 0 4px; }
.team-full-card p{ color: var(--text-on-paper-muted); font-size:0.95rem; margin-top: var(--sp-4); }
@media (max-width: 980px){ .team-full-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Service detail page
   ========================================================================== */
.service-detail-grid{ display:grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(32px,5vw,72px); align-items:start; }
.service-detail-body p{ color: var(--text-on-paper-muted); font-size:1.02rem; margin-bottom: var(--sp-5); }
.service-detail-list{ display:flex; flex-direction:column; gap: var(--sp-4); margin-top: var(--sp-7); }
.service-detail-list li{ display:flex; gap:14px; align-items:flex-start; color: var(--text-on-paper); font-size:0.98rem; }
.service-detail-list svg{ width:20px; height:20px; color: var(--brand-600); flex-shrink:0; margin-top:2px; }
.service-sidebar{ position:sticky; top:110px; }
.service-sidebar-card{
  background: var(--ink-900); color: var(--text-on-ink);
  border-radius: var(--radius-md); padding: var(--sp-7) var(--sp-6);
}
.service-sidebar-card h3{ color:#fff; margin-bottom: var(--sp-4); }
.service-sidebar-card p{ color: var(--text-on-ink-muted); font-size:0.92rem; margin-bottom: var(--sp-6); }
.other-services-list{ margin-top: var(--sp-7); padding-top: var(--sp-6); border-top:1px solid var(--paper-line); }
.other-services-list h4{ font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase; color: var(--text-on-paper-muted); margin-bottom: var(--sp-5); }
.other-services-list a{
  display:flex; align-items:center; justify-content:space-between;
  padding: 13px 0; border-bottom: 1px solid var(--paper-line);
  font-size:0.92rem; color: var(--text-on-paper); font-weight:500;
}
.other-services-list a:hover{ color: var(--brand-600); }
.other-services-list a svg{ width:14px; height:14px; opacity:0.5; }

@media (max-width: 900px){ .service-detail-grid{ grid-template-columns: 1fr; } .service-sidebar{ position:static; } }
