/* ==========================================================================
   Indie & Co. — Digital Marketing Agency
   Core Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root{
  --teal: #1f8a8c;
  --teal-dark: #16656a;
  --teal-deep: #0d2b35;
  --teal-light: #d7ece9;
  --teal-pale: #f0f8f7;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #142a2c;
  --text-mid: #3d5457;
  --text-light: #5c7376;
  --text-xlight: #8ba0a2;
  --border: #e7ede9;
  --border-mid: #d9e4e1;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 4px 20px rgba(13,43,53,0.06);
  --shadow-lg: 0 20px 60px rgba(13,43,53,0.18);
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
  --nav-h: 206px;
  --nav-h-tablet: 122px;
  --nav-h-mobile: 96px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4,h5,h6{margin:0;font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif;font-weight:700;letter-spacing:-0.01em;}
p{margin:0;}
button{font-family:inherit;}
.container{max-width:1280px;margin:0 auto;padding:0 1.5rem;}
.section-inner{max-width:1180px;margin:0 auto;padding:0 1.5rem;}
section{padding:clamp(3.5rem,7vw,6rem) 0;}
.text-center{text-align:center;}
.divider{height:1px;background:var(--border);max-width:1180px;margin:0 auto;}

/* ── Reveal on scroll ── */
.reveal{opacity:0;transform:translateY(24px);transition:opacity 0.7s ease, transform 0.7s ease;}
.reveal.visible{opacity:1;transform:translateY(0);}
.reveal-delay-1.visible{transition-delay:0.05s;}
.reveal-delay-2.visible{transition-delay:0.15s;}
.reveal-delay-3.visible{transition-delay:0.25s;}
.reveal-delay-4.visible{transition-delay:0.35s;}

/* ── Section headers ── */
.section-label{
  display:inline-block;
  font-size:clamp(0.66rem,2vw,0.7rem);font-weight:800;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--teal-dark);
  background:var(--teal-pale);
  border:1px solid var(--border-mid);
  padding:0.35rem 0.9rem;
  border-radius:50px;
  margin-bottom:1rem;
  max-width:100%;white-space:normal;word-break:break-word;line-height:1.4;
}
.section-title{
  font-size:clamp(1.7rem,4vw,2.75rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.01em;
  margin-bottom:1rem;
}
.section-title .accent{color:var(--teal);font-weight:800;}
.section-sub{
  color:var(--text-light);
  font-size:1rem;
  max-width:640px;
  margin:0 auto;
  line-height:1.75;
}

/* ── Buttons ── */
.btn-primary,.btn-outline,.btn-white,.btn-ghost{
  display:inline-flex;align-items:center;gap:0.4rem;
  font-weight:700;font-size:0.88rem;
  padding:0.8rem 1.7rem;
  border-radius:50px;
  border:none;cursor:pointer;
  transition:var(--transition);
  white-space:nowrap;
}
.btn-primary{background:var(--teal-dark);color:#fff;box-shadow:0 8px 24px rgba(22,101,106,0.28);}
.btn-primary:hover{background:var(--teal);transform:translateY(-2px);box-shadow:0 12px 30px rgba(22,101,106,0.35);}
.btn-outline{background:transparent;color:var(--text);border:1.5px solid var(--border-mid);}
.btn-outline:hover{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-pale);}
.btn-white{background:#fff;color:var(--teal-dark);box-shadow:0 4px 16px rgba(0,0,0,0.15);}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(0,0,0,0.2);}
.btn-ghost{background:var(--teal-pale);color:var(--teal-dark);}
.btn-ghost:hover{background:var(--teal-light);}

/* ==========================================================================
   NAV
   ========================================================================== */
nav{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(251,250,248,0.98);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 10px rgba(13,43,53,0.04);
  transition:box-shadow 0.2s ease;
}
nav.is-scrolled{box-shadow:0 4px 20px rgba(13,43,53,0.1);}
.nav-inner{
  max-width:1320px;margin:0 auto;padding:0.6rem 1.5rem;
  min-height:206px;
  display:flex;align-items:center;justify-content:space-between;gap:0.75rem;
}
.nav-logo{display:flex;align-items:center;flex-shrink:0;}
.nav-logo img{
  height:184px;
  width:auto;
  max-width:460px;
  display:block;
  object-fit:contain;
  object-position:left center;
}

/* ── Desktop nav links (hidden below 981px — mobile uses the drawer) ── */
.nav-links{display:flex;align-items:center;gap:0.05rem;flex-wrap:nowrap;}
.nav-links > li{position:relative;display:flex;align-items:center;}
.nav-links > li > a{
  display:flex;align-items:center;gap:0.2rem;
  padding:0.45rem 0.55rem;font-size:0.79rem;font-weight:600;color:var(--text-mid);
  border-radius:50px;transition:var(--transition);white-space:nowrap;
}
.nav-links > li > a:hover,.nav-links > li.active > a{color:var(--teal-dark);background:var(--teal-pale);}
.nav-links .nav-cta{background:var(--teal-dark);color:#fff !important;padding:0.56rem 1rem;font-size:0.79rem;margin-left:0.4rem;}
.nav-links .nav-cta:hover{background:var(--teal);}
.nav-caret{font-size:0.58rem;transition:transform 0.25s;opacity:0.6;}
.nav-item.has-mega:hover .nav-caret,.nav-item.has-mega.open .nav-caret,.nav-item.has-mega:focus-within .nav-caret{transform:rotate(180deg);}

/* Mega menu (desktop hover dropdown) */
.mega{
  position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(8px);
  width:min(760px,90vw);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-lg);
  padding:1.75rem;
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index:50;
}
.mega.mega-2col{grid-template-columns:repeat(2,1fr);width:min(560px,90vw);}
.nav-item.has-mega:hover .mega,.nav-item.has-mega.open .mega,.nav-item.has-mega:focus-within .mega{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);
}
.mega-col h6{
  font-size:0.68rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;
  color:var(--teal-dark);margin-bottom:0.75rem;
}
.mega-col a{
  display:block;font-size:0.85rem;color:var(--text-mid);padding:0.4rem 0;font-weight:500;
  transition:var(--transition);border-radius:6px;
}
.mega-col a:hover{color:var(--teal-dark);padding-left:0.35rem;}
.mega-foot{
  grid-column:1/-1;border-top:1px solid var(--border);padding-top:1.1rem;margin-top:0.25rem;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
}
.mega-foot p{font-size:0.8rem;color:var(--text-light);max-width:360px;}

/* ── Hamburger trigger (mobile/tablet only) ── */
.hamburger{
  display:none;flex-direction:column;justify-content:center;align-items:center;gap:5px;
  width:44px;height:44px;border:none;background:transparent;cursor:pointer;
  border-radius:50%;flex-shrink:0;-webkit-tap-highlight-color:transparent;
}
.hamburger:hover{background:var(--teal-pale);}
.hamburger span{width:20px;height:2px;background:var(--text);transition:var(--transition);border-radius:2px;}
.hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ── Top utility bar (phone / local) ── */
.topbar-strip{
  background:var(--teal-deep);color:rgba(255,255,255,0.85);font-size:0.76rem;font-weight:600;
  text-align:center;padding:0.4rem 1rem;letter-spacing:0.02em;
}
.topbar-strip a{color:#fff;text-decoration:underline;text-underline-offset:2px;}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER
   A dedicated overlay + drawer, structurally separate from <nav> (which
   uses backdrop-filter — nesting position:fixed drawer content inside a
   filtered ancestor is what silently breaks fixed positioning on iOS
   Safari and recent Chrome/Firefox, since filter/backdrop-filter creates
   a new containing block). Keeping the drawer as a sibling of <nav>
   avoids that failure mode entirely.
   ========================================================================== */
.drawer-overlay{
  position:fixed;inset:0;z-index:1990;
  background:rgba(13,43,53,0.55);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.active{opacity:1;visibility:visible;pointer-events:auto;}

.mobile-drawer{
  position:fixed;top:0;right:0;bottom:0;z-index:2000;
  width:min(360px,86vw);
  background:var(--surface);
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow:-10px 0 36px rgba(13,43,53,0.2);
}
.mobile-drawer.active{transform:translateX(0);}
.mobile-drawer-head{
  display:flex;align-items:center;justify-content:space-between;gap:0.75rem;
  padding:1rem 1.1rem;border-bottom:1px solid var(--border);flex-shrink:0;
}
.mobile-drawer-logo{height:32px;width:auto;object-fit:contain;}
.drawer-close{
  width:44px;height:44px;border-radius:50%;flex-shrink:0;
  border:1px solid var(--border-mid);background:var(--teal-pale);color:var(--text-mid);
  font-size:1rem;line-height:1;cursor:pointer;transition:var(--transition);
  display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;
}
.drawer-close:hover{background:var(--teal-light);color:var(--teal-dark);}

.mobile-drawer-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0.25rem 1.1rem 1.5rem;}
.mobile-nav-links{list-style:none;margin:0;padding:0;}
.mobile-nav-links > li{border-bottom:1px solid var(--border);}
.mobile-nav-links > li > a{
  display:flex;align-items:center;padding:0.95rem 0.15rem;
  font-size:0.94rem;font-weight:600;color:var(--text);transition:var(--transition);
}
.mobile-nav-links > li > a:active{color:var(--teal-dark);}
.mobile-nav-links > li.mobile-active > a{color:var(--teal-dark);}

.mobile-accordion-trigger{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  background:transparent;border:none;padding:0.95rem 0.15rem;
  font-family:inherit;font-size:0.94rem;font-weight:600;color:var(--text);
  cursor:pointer;-webkit-tap-highlight-color:transparent;
}
.acc-caret{font-size:0.65rem;color:var(--text-xlight);transition:transform 0.25s ease;flex-shrink:0;}
.mobile-accordion.open .acc-caret{transform:rotate(180deg);}
.mobile-accordion.open > .mobile-accordion-trigger{color:var(--teal-dark);}
.mobile-accordion-panel{
  max-height:0;overflow:hidden;transition:max-height 0.3s ease;
  background:var(--teal-pale);border-radius:var(--radius-xs);
}
.mobile-accordion.open .mobile-accordion-panel{max-height:1800px;padding:0.25rem 0.5rem 0.85rem;margin-bottom:0.5rem;}
.mobile-accordion-panel .mega-col{padding:0.8rem 0.5rem 0.3rem;}
.mobile-accordion-panel .mega-col + .mega-col{border-top:1px solid var(--border-mid);}
.mobile-accordion-panel .mega-col h6{
  font-size:0.68rem;color:var(--teal-dark);margin-bottom:0.55rem;
  display:flex;align-items:center;gap:0.4rem;
}
.mobile-accordion-panel .mega-col h6::before{content:'';width:12px;height:2px;background:var(--teal);border-radius:2px;flex-shrink:0;}
.mobile-accordion-panel .mega-col a{display:block;padding:0.55rem 0.25rem;font-size:0.85rem;color:var(--text-mid);border-radius:8px;}
.mobile-accordion-panel .mega-col a:active{background:rgba(31,138,140,0.14);}

.mobile-drawer-cta{width:100%;justify-content:center;display:flex;margin-top:1.4rem;}
.mobile-drawer-foot{margin-top:1.1rem;text-align:center;font-size:0.78rem;color:var(--text-xlight);}
.mobile-drawer-foot a{color:var(--teal-dark);font-weight:700;}

body.drawer-open{overflow:hidden;}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — NAV
   Clean split: desktop keeps the inline nav + hover mega menus; anything
   980px and below hides the desktop links and switches entirely to the
   hamburger + slide-out drawer.
   ========================================================================== */
@media (min-width:1181px){
  .hamburger,.drawer-overlay,.mobile-drawer{display:none !important;}
}
@media (max-width:1180px){
  :root{ --nav-h: var(--nav-h-tablet); }
  .nav-logo img{height:100px;max-width:250px;}
  .nav-links{display:none;}
  .hamburger{display:flex;}
}
@media (max-width:560px){
  :root{ --nav-h: var(--nav-h-mobile); }
  .nav-logo img{height:76px;max-width:190px;}
  .nav-inner{padding:0.6rem 1.1rem;}
  .mobile-drawer{width:min(320px,88vw);}
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{position:relative;padding-top:calc(var(--nav-h) + 3.5rem);padding-bottom:4rem;overflow:hidden;}
.hero-bg{position:absolute;inset:0;z-index:0;}
.hero-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:0.35;}
.hero-blob-1{width:480px;height:480px;background:var(--teal);top:-160px;right:-120px;}
.hero-blob-2{width:380px;height:380px;background:#e8c46b;top:220px;left:-140px;opacity:0.22;}
.hero-grid-lines{
  position:absolute;inset:0;
  background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);
  background-size:56px 56px;mask-image:radial-gradient(ellipse 70% 60% at 50% 0%,#000 40%,transparent 100%);opacity:0.5;
}
.hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.05fr 0.95fr;gap:3rem;align-items:center;}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:0.5rem;background:var(--surface);border:1px solid var(--border-mid);
  padding:0.4rem 0.9rem 0.4rem 0.6rem;border-radius:50px;font-weight:700;color:var(--teal-dark);
  margin-bottom:1.5rem;box-shadow:var(--shadow);
  font-size:clamp(0.72rem,2.2vw,0.78rem);
  max-width:100%;white-space:normal;line-height:1.4;
}
.hero-eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--teal);animation:pulse 2s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.4;}}
.hero-title{font-size:clamp(2.2rem,5.2vw,3.6rem);font-weight:800;line-height:1.08;letter-spacing:-0.02em;margin-bottom:1.4rem;}
.hero-title .line-teal{display:block;color:var(--teal-dark);}
.hero-title .line-italic{display:block;font-weight:800;}
.hero-subtitle{font-size:1.05rem;color:var(--text-light);max-width:520px;margin-bottom:2rem;line-height:1.75;}
.hero-ctas{display:flex;gap:0.9rem;flex-wrap:wrap;margin-bottom:2rem;}
.hero-trust{display:flex;align-items:center;gap:0.9rem;flex-wrap:wrap;font-size:0.78rem;color:var(--text-xlight);font-weight:600;}
.hero-trust-divider{width:4px;height:4px;border-radius:50%;background:var(--border-mid);}

.hero-visual{position:relative;}
.hero-card-stack{position:relative;}
.hero-card{
  background:linear-gradient(160deg,var(--teal-deep),#123c42);
  border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-lg);
  transform:rotate(-2deg);
}
.hero-card-header{display:flex;align-items:center;gap:5px;margin-bottom:1.1rem;}
.hero-card-dot{width:9px;height:9px;border-radius:50%;}
.hero-card-body{}
.hero-card-stat{display:flex;justify-content:space-between;align-items:center;padding:0.6rem 0;border-bottom:1px solid rgba(255,255,255,0.08);}
.hero-card-stat:last-child{border-bottom:none;}
.hero-stat-label{font-size:0.8rem;color:rgba(255,255,255,0.6);}
.hero-stat-val{font-size:0.92rem;font-weight:700;color:#fff;font-family:'Space Mono',monospace;}
.hero-badge{
  position:absolute;background:var(--surface);border:1px solid var(--border-mid);border-radius:50px;
  padding:0.6rem 1.1rem;font-weight:700;box-shadow:var(--shadow-lg);
  display:flex;align-items:center;gap:0.5rem;
  font-size:clamp(0.66rem,2.4vw,0.78rem);
  max-width:min(230px,58vw);
  white-space:normal;
  line-height:1.35;
  word-break:break-word;
}
.hero-badge .ico{font-size:0.95rem;flex-shrink:0;}
.hero-badge.b1{top:-18px;left:-10px;}
.hero-badge.b2{bottom:-16px;right:-14px;}

@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{order:-1;max-width:340px;margin:0 auto 1.5rem;}
}
@media (max-width:560px){
  .hero{padding-top:calc(var(--nav-h) + 2rem);padding-bottom:2.5rem;}
  .hero-blob-1{width:300px;height:300px;top:-100px;right:-100px;}
  .hero-blob-2{width:240px;height:240px;top:140px;left:-100px;}
  .hero-title{font-size:clamp(1.9rem,8vw,2.4rem);}
  .hero-ctas{flex-direction:column;align-items:stretch;}
  .hero-ctas .btn-primary,.hero-ctas .btn-outline{justify-content:center;}
  .hero-visual{max-width:280px;}
  .hero-badge{padding:0.45rem 0.75rem;max-width:min(190px,54vw);}
  .hero-badge.b1{top:-12px;left:-6px;}
  .hero-badge.b2{bottom:-12px;right:-6px;}
  .hero-card{padding:1.15rem;}
}

/* ── Ticker ── */
.ticker-wrap{background:var(--teal-deep);overflow:hidden;padding:0.9rem 0;white-space:nowrap;}
.ticker-inner{display:inline-flex;align-items:center;gap:1.5rem;animation:ticker 32s linear infinite;color:rgba(255,255,255,0.85);font-size:0.82rem;font-weight:700;letter-spacing:0.03em;}
.ticker-inner .dot{color:var(--teal);font-size:0.5rem;}
@keyframes ticker{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.pt-page{padding-top:calc(var(--nav-h) + 4rem);padding-bottom:2.5rem;position:relative;background:var(--teal-pale);}
.pt-page::after{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--border-mid) 1px,transparent 1px),linear-gradient(90deg,var(--border-mid) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse 60% 100% at 50% 0%,#000 0%,transparent 90%);opacity:0.4;pointer-events:none;}
.pt-page .section-inner{position:relative;z-index:1;}
.breadcrumbs{display:flex;justify-content:center;gap:0.4rem;font-size:0.78rem;color:var(--text-xlight);margin-bottom:1rem;font-weight:600;}
.breadcrumbs a{color:var(--teal-dark);}

/* ==========================================================================
   WORK / PORTFOLIO
   ========================================================================== */
.work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.75rem;}
.work-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:var(--transition);}
.work-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--border-mid);}

/* Preview container — fixed aspect ratio, fully clipped, so nothing a
   child element does (image, placeholder) can ever overflow or get
   visually "cut off" oddly. */
.work-preview{position:relative;width:100%;aspect-ratio:16/10;background:var(--teal-pale);overflow:hidden;}
.work-preview-img{display:block;width:100%;height:100%;object-fit:cover;object-position:top center;}

/* Branded placeholder used whenever a real screenshot hasn't been
   uploaded yet. Deliberately NOT a live <iframe> of the third-party
   site: most real-world sites send X-Frame-Options / CSP headers that
   block embedding outright, and even when they don't, an embedded
   scrollable page (cookie banners, popups, unpredictable load times)
   reads as "glitchy" no matter how the CSS scaling is tuned. A
   placeholder can never glitch or get cut off. */
.work-preview-placeholder{
  width:100%;height:100%;
  display:flex;flex-direction:column;
  background:linear-gradient(135deg,var(--teal-deep),var(--teal-dark));
}
.work-preview-browser-bar{
  display:flex;align-items:center;gap:5px;flex-shrink:0;
  padding:0.6rem 0.75rem;background:rgba(255,255,255,0.08);
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.work-preview-browser-bar span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,0.25);}
.work-preview-browser-url{
  flex:1;margin-left:0.5rem;padding:0.2rem 0.6rem;border-radius:50px;
  background:rgba(255,255,255,0.1);
  font-family:'Space Mono',monospace;font-size:0.66rem;color:rgba(255,255,255,0.55);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.work-preview-placeholder-body{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.6rem;
}
.work-preview-mark{
  width:56px;height:56px;border-radius:16px;
  background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.18);
  display:flex;align-items:center;justify-content:center;
  font-family:'Plus Jakarta Sans',sans-serif;font-size:1.5rem;font-weight:800;color:#fff;
}
.work-preview-domain{font-family:'Space Mono',monospace;font-size:0.75rem;color:rgba(255,255,255,0.65);}

.work-preview-overlay{position:absolute;inset:0;background:rgba(13,43,53,0.55);opacity:0;display:flex;align-items:center;justify-content:center;transition:var(--transition);}
.work-card:hover .work-preview-overlay{opacity:1;}
.work-preview-btn{background:#fff;color:var(--teal-dark);font-weight:700;font-size:0.82rem;padding:0.6rem 1.3rem;border-radius:50px;}
.work-info{padding:1.4rem 1.5rem 1.6rem;}
.work-domain{font-family:'Space Mono',monospace;font-size:0.7rem;color:var(--teal);font-weight:700;margin-bottom:0.35rem;}
.work-name{font-size:1.15rem;font-weight:700;margin-bottom:0.55rem;}
.work-desc{font-size:0.87rem;color:var(--text-light);line-height:1.65;margin-bottom:0.9rem;}
.work-tags{display:flex;flex-wrap:wrap;gap:0.4rem;}
.tag{font-size:0.7rem;font-weight:700;background:var(--teal-pale);color:var(--teal-dark);padding:0.28rem 0.7rem;border-radius:50px;border:1px solid var(--border-mid);}
@media (max-width:760px){.work-grid{grid-template-columns:1fr;}}

/* ==========================================================================
   WHY / FEATURE CARDS
   ========================================================================== */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;}
.why-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.75rem;transition:var(--transition);}
.why-card:hover{border-color:var(--teal);box-shadow:var(--shadow);}
.why-title{font-size:1.02rem;font-weight:700;margin-bottom:0.5rem;font-family:'Inter',sans-serif;}
.why-text{font-size:0.85rem;color:var(--text-light);line-height:1.65;}

/* ==========================================================================
   SERVICE / SILO CARDS (mega services listing)
   ========================================================================== */
.silo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;}
.silo-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;transition:var(--transition);position:relative;overflow:hidden;}
.silo-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--teal);}
.silo-icon{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,var(--teal-dark),var(--teal));display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:1.25rem;}
.silo-card h3{font-size:1.2rem;font-weight:700;margin-bottom:0.6rem;}
.silo-card > p{font-size:0.88rem;color:var(--text-light);line-height:1.65;margin-bottom:1.1rem;}
.silo-list{margin-bottom:0.5rem;}
.silo-list li{font-size:0.84rem;color:var(--text-mid);padding:0.4rem 0;border-top:1px solid var(--border);display:flex;align-items:center;gap:0.5rem;}
.silo-list li:first-child{border-top:none;}
.silo-list a{color:inherit;font-weight:600;transition:var(--transition);}
.silo-list a:hover{color:var(--teal-dark);}
.silo-check{color:var(--teal);font-weight:800;}
@media (max-width:980px){.silo-grid{grid-template-columns:1fr;}}

/* Detailed service section anchors */
.svc-block{padding:3rem 0;border-top:1px solid var(--border);}
.svc-block:first-of-type{border-top:none;}
.svc-head{display:flex;align-items:flex-start;gap:1.25rem;margin-bottom:1.75rem;flex-wrap:wrap;}
.svc-num{font-family:'Space Mono',monospace;font-weight:700;font-size:0.85rem;color:var(--teal);background:var(--teal-pale);border:1px solid var(--border-mid);width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.svc-head h3{font-size:1.5rem;font-weight:800;}
.svc-head p{color:var(--text-light);max-width:640px;font-size:0.92rem;line-height:1.7;margin-top:0.4rem;}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;}
.svc-item{background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius-sm);padding:1.25rem 1.4rem;}
.svc-item h5{font-size:0.92rem;font-weight:700;margin-bottom:0.4rem;}
.svc-item p{font-size:0.82rem;color:var(--text-light);line-height:1.6;}

/* ==========================================================================
   MATRIX SECTION (homepage strategy quadrant)
   ========================================================================== */
.matrix-wrap{display:grid;grid-template-columns:auto 1fr;gap:0.75rem;align-items:stretch;}
.matrix-axis-y{writing-mode:vertical-rl;transform:rotate(180deg);display:flex;align-items:center;justify-content:space-between;font-size:0.7rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-xlight);padding:0.5rem 0;}
.matrix-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:1.25rem;}
.matrix-cell{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.6rem;transition:var(--transition);}
.matrix-cell:hover{border-color:var(--teal);box-shadow:var(--shadow);transform:translateY(-3px);}
.matrix-cell .m-tag{font-size:0.68rem;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--teal-dark);margin-bottom:0.5rem;display:block;}
.matrix-cell h4{font-size:1.02rem;font-weight:700;margin-bottom:0.5rem;font-family:'Inter',sans-serif;}
.matrix-cell p{font-size:0.83rem;color:var(--text-light);line-height:1.6;}
.matrix-axis-x{display:flex;justify-content:space-between;font-size:0.7rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-xlight);padding:0 0.25rem;margin-top:0.75rem;grid-column:2;}
@media (max-width:760px){
  .matrix-grid{grid-template-columns:1fr;}
  .matrix-wrap{grid-template-columns:1fr;}
  .matrix-axis-y{display:none;}
}

/* ==========================================================================
   INDUSTRIES / WHO WE SERVE
   ========================================================================== */
.industry-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.industry-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.6rem;text-align:center;transition:var(--transition);}
.industry-card:hover{border-color:var(--teal);transform:translateY(-4px);box-shadow:var(--shadow);}
.industry-ico{font-size:1.8rem;margin-bottom:0.75rem;}
.industry-card h4{font-size:0.98rem;font-weight:700;margin-bottom:0.4rem;font-family:'Inter',sans-serif;}
.industry-card p{font-size:0.8rem;color:var(--text-light);line-height:1.6;}
@media (max-width:860px){.industry-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.industry-grid{grid-template-columns:1fr;}}

.biztype-row{display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:center;}
.biztype-pill{background:var(--surface);border:1px solid var(--border-mid);padding:0.65rem 1.3rem;border-radius:50px;font-size:0.85rem;font-weight:600;color:var(--text-mid);transition:var(--transition);}
.biztype-pill:hover{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-pale);}

/* ==========================================================================
   METRICS / STATS
   ========================================================================== */
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
.stat-card{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.75rem 1rem;}
.stat-num{font-family:'Plus Jakarta Sans',sans-serif;font-size:2.1rem;font-weight:800;color:var(--teal-dark);}
.stat-label{font-size:0.78rem;color:var(--text-light);font-weight:600;margin-top:0.35rem;}
@media (max-width:760px){.stats-row{grid-template-columns:repeat(2,1fr);}}

.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.25rem;}
.metric-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.4rem;max-width:340px;}
.metric-label{font-size:0.75rem;color:var(--text-xlight);font-weight:700;text-transform:uppercase;letter-spacing:0.05em;}
.metric-val{font-family:'Plus Jakarta Sans',sans-serif;font-size:1.6rem;font-weight:800;margin:0.35rem 0;}
.metric-sub{font-size:0.78rem;color:var(--text-light);}
@media (max-width:860px){.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}.metric-card{max-width:none;}}
@media (max-width:860px){.metrics-grid{grid-template-columns:repeat(2,1fr);}}

/* ==========================================================================
   PACKAGES / PRICING
   ========================================================================== */
.grant-card{
  background:linear-gradient(135deg,var(--teal-deep),var(--teal-dark));
  color:#fff;border-radius:var(--radius);padding:clamp(2rem,5vw,3rem);
  display:grid;grid-template-columns:1.4fr 0.6fr;gap:2rem;align-items:center;
  position:relative;overflow:hidden;
}
.grant-card::after{content:'';position:absolute;top:-100px;right:-100px;width:320px;height:320px;background:radial-gradient(circle,rgba(255,255,255,0.08),transparent 70%);border-radius:50%;}
.grant-badge{display:inline-block;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.25);padding:0.35rem 0.9rem;border-radius:50px;font-size:0.72rem;font-weight:800;letter-spacing:0.05em;margin-bottom:1.1rem;}
.grant-title{font-size:clamp(1.5rem,3.2vw,2.2rem);font-weight:800;line-height:1.2;margin-bottom:1rem;}
.grant-desc{font-size:0.92rem;color:rgba(255,255,255,0.78);line-height:1.75;margin-bottom:1.5rem;max-width:560px;}
.grant-list{display:grid;grid-template-columns:1fr 1fr;gap:0.5rem 1.5rem;margin-bottom:1.75rem;}
.grant-list li{font-size:0.83rem;color:rgba(255,255,255,0.85);padding-left:1.3rem;position:relative;}
.grant-list li::before{content:'✓';position:absolute;left:0;color:#7fe0d6;font-weight:800;}
.grant-cta-box{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);border-radius:var(--radius-sm);padding:1.75rem 1.25rem;text-align:center;}
.price-big{font-family:'Plus Jakarta Sans',sans-serif;font-size:2.8rem;font-weight:900;line-height:1;}
.price-label{font-size:0.78rem;text-transform:uppercase;letter-spacing:0.08em;opacity:0.75;margin:0.4rem 0 0.25rem;}
@media (max-width:860px){.grant-card{grid-template-columns:1fr;}.grant-list{grid-template-columns:1fr;}}

.packages-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.pkg-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem 1.75rem;position:relative;transition:var(--transition);}
.pkg-card:hover{border-color:var(--teal);transform:translateY(-5px);box-shadow:var(--shadow-lg);}
.pkg-card.featured{border-color:var(--teal);box-shadow:var(--shadow-lg);transform:scale(1.03);}
.pkg-featured-tag{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--teal-dark);color:#fff;font-size:0.68rem;font-weight:800;letter-spacing:0.05em;padding:0.3rem 1rem;border-radius:50px;white-space:nowrap;}
.pkg-icon{font-size:1.6rem;margin-bottom:0.9rem;}
.pkg-name{font-size:1.15rem;font-weight:700;margin-bottom:0.3rem;font-family:'Inter',sans-serif;}
.pkg-tagline{font-size:0.82rem;color:var(--text-light);margin-bottom:1.1rem;}
.pkg-price{font-family:'Plus Jakarta Sans',sans-serif;font-size:1.85rem;font-weight:800;color:var(--teal-dark);margin-bottom:1.25rem;}
.pkg-price span{font-size:0.75rem;color:var(--text-xlight);font-weight:500;font-family:'Inter',sans-serif;}
.pkg-list{margin-bottom:1.5rem;}
.pkg-list li{font-size:0.85rem;padding:0.5rem 0;border-top:1px solid var(--border);padding-left:1.5rem;position:relative;color:var(--text-mid);}
.pkg-list li:first-child{border-top:none;}
.pkg-list li::before{content:'✓';position:absolute;left:0;color:var(--teal);font-weight:800;}
@media (max-width:980px){.packages-grid{grid-template-columns:1fr;}.pkg-card.featured{transform:none;}}

.features-tabs{display:flex;gap:0.6rem;flex-wrap:wrap;justify-content:center;margin-bottom:2rem;}
.feature-tab{background:var(--surface);border:1px solid var(--border-mid);padding:0.6rem 1.2rem;border-radius:50px;font-size:0.83rem;font-weight:700;cursor:pointer;transition:var(--transition);color:var(--text-mid);flex-shrink:0;}
.feature-tab:hover{border-color:var(--teal);}
.feature-tab.active{background:var(--teal-dark);color:#fff;border-color:var(--teal-dark);}
.feature-panel{display:none;grid-template-columns:0.9fr 1.1fr;gap:2.5rem;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2.25rem;}
.feature-panel.active{display:grid;}
.feature-panel-visual{font-size:4rem;text-align:center;background:var(--teal-pale);border-radius:var(--radius-sm);padding:3rem 1rem;}
.feature-panel-list li{display:flex;gap:0.9rem;padding:0.85rem 0;border-top:1px solid var(--border);}
.feature-panel-list li:first-child{border-top:none;}
.feature-check{width:22px;height:22px;border-radius:50%;background:var(--teal);color:#fff;font-size:0.72rem;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:0.1rem;}
.feature-item-title{font-weight:700;font-size:0.9rem;margin-bottom:0.2rem;}
.feature-item-desc{font-size:0.82rem;color:var(--text-light);line-height:1.6;}
@media (max-width:760px){.feature-panel{grid-template-columns:1fr;}}

.fine-print{background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius);padding:2rem;}
.fine-print h4{font-size:1rem;font-weight:700;margin-bottom:1.25rem;font-family:'Inter',sans-serif;}
.fine-print-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;}
.fine-print-item h5{font-size:0.85rem;font-weight:700;margin-bottom:0.4rem;}
.fine-print-item p{font-size:0.8rem;color:var(--text-light);line-height:1.65;}

/* ==========================================================================
   COMMISSION / PARTNER PROGRAMME
   ========================================================================== */
.commission-hero{background:linear-gradient(135deg,var(--teal-deep),var(--teal-dark));color:#fff;border-radius:var(--radius);padding:clamp(2.5rem,6vw,3.5rem) 2rem;text-align:center;position:relative;overflow:hidden;margin-bottom:2rem;}
.commission-hero::before{content:'';position:absolute;top:-120px;left:50%;transform:translateX(-50%);width:400px;height:400px;background:radial-gradient(circle,rgba(255,255,255,0.08),transparent 70%);border-radius:50%;}
.commission-big{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(3rem,8vw,5rem);font-weight:900;line-height:1;}
.commission-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;}
.commission-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.5rem;text-align:center;}
.commission-card-icon{font-size:1.6rem;margin-bottom:0.6rem;}
.commission-card-val{font-family:'Plus Jakarta Sans',sans-serif;font-size:1.5rem;font-weight:800;color:var(--teal-dark);}
.commission-card-label{font-size:0.78rem;color:var(--text-light);margin-top:0.3rem;}
@media (max-width:760px){.commission-cards{grid-template-columns:repeat(2,1fr);}}

/* ==========================================================================
   FORMS
   ========================================================================== */
.contact-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:2.5rem;align-items:flex-start;}
.contact-form-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.form-group{margin-bottom:1.1rem;}
.form-group label{display:block;font-size:0.82rem;font-weight:700;margin-bottom:0.4rem;color:var(--text-mid);}
.form-group input,.form-group select,.form-group textarea{
  width:100%;padding:0.75rem 1rem;border:1.5px solid var(--border-mid);border-radius:var(--radius-xs);
  font-family:inherit;font-size:0.9rem;color:var(--text);background:var(--bg);transition:var(--transition);
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--teal);background:#fff;}
.form-group textarea{resize:vertical;}
.contact-info-block{background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius);padding:2rem;}
.contact-info-title{font-size:1.35rem;font-weight:800;margin-bottom:0.5rem;}
.contact-info-sub{font-size:0.88rem;color:var(--text-light);margin-bottom:1.5rem;line-height:1.7;}
.contact-item{display:flex;gap:0.9rem;align-items:flex-start;padding:0.85rem 0;border-top:1px solid var(--border-mid);}
.contact-item:first-of-type{border-top:none;}
.contact-ico{font-size:1.1rem;width:38px;height:38px;background:var(--surface);border:1px solid var(--border-mid);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.contact-item-label{font-size:0.75rem;color:var(--text-xlight);font-weight:700;text-transform:uppercase;letter-spacing:0.04em;}
.contact-item-val{font-size:0.92rem;font-weight:700;margin-top:0.15rem;}
.contact-item-val a{color:var(--teal-dark);}
@media (max-width:860px){.contact-grid{grid-template-columns:1fr;}.form-row{grid-template-columns:1fr;}}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer{background:var(--teal-deep);color:rgba(255,255,255,0.7);padding:4rem 0 1.5rem;}
.footer-inner{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:2.5rem;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-logo-plate{
  display:inline-flex;align-items:center;
  margin-bottom:1.1rem;
}
.footer-brand img{
  height:34px;width:auto;object-fit:contain;display:block;
}
.footer-brand p{font-size:0.85rem;line-height:1.7;max-width:280px;color:rgba(255,255,255,0.55);}
.footer-col h5{color:#fff;font-size:0.78rem;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;margin-bottom:1rem;font-family:'Inter',sans-serif;}
.footer-col ul li{margin-bottom:0.6rem;}
.footer-col a{font-size:0.85rem;color:rgba(255,255,255,0.6);transition:var(--transition);}
.footer-col a:hover{color:#fff;}
.footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:0.75rem;padding-top:1.5rem;font-size:0.78rem;color:rgba(255,255,255,0.45);}
.footer-bottom a{color:rgba(255,255,255,0.55);}
@media (max-width:980px){.footer-inner{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.footer-inner{grid-template-columns:1fr;}}

/* ==========================================================================
   PORTAL (staff.html shared shell — unaffected sections keep working)
   ========================================================================== */
.portal-page{background:var(--bg);}
.p-alert{background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius-sm);padding:1rem 1.25rem;font-size:0.85rem;color:var(--text-mid);display:none;}
.p-alert.success{background:#f0fdf4;border-color:#86efac;color:#15803d;}
.p-alert.error{background:#fdecec;border-color:#f5c2c2;color:#b42318;}

/* ==========================================================================
   BUSINESS PORTAL — DASHBOARD SHELL
   ========================================================================== */
.portal-layout{display:flex;min-height:100vh;}

/* ── Sidebar ── */
.sidebar{
  width:260px;flex-shrink:0;
  background:var(--teal-deep);color:rgba(255,255,255,0.82);
  display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;overflow-y:auto;
  z-index:200;
}
.sidebar-head{
  padding:1.25rem 1.1rem 1rem;border-bottom:1px solid rgba(255,255,255,0.1);
  display:flex;flex-direction:column;gap:1rem;
}
.sidebar-brand{display:flex;align-items:center;gap:0.7rem;}
.sidebar-brand-icon{
  height:100px;width:auto;object-fit:contain;flex-shrink:0;
}
.sidebar-brand-text{
  font-family:'Plus Jakarta Sans',sans-serif;
  font-size:1.4rem;font-weight:800;color:#fff;line-height:1.15;
}
.sidebar-brand-text em{display:block;font-style:normal;color:var(--teal);font-size:1.05rem;font-weight:700;}
.sidebar-user-row{display:flex;align-items:center;gap:0.6rem;}
.sidebar-user-name{font-size:0.85rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-user-role{font-size:0.72rem;color:rgba(255,255,255,0.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-nav{flex:1;padding:1rem 0.75rem;overflow-y:auto;}
.sidebar-section-label{
  font-size:0.66rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;
  color:rgba(255,255,255,0.35);padding:1rem 0.6rem 0.5rem;
}
.sidebar-section-label:first-child{padding-top:0.25rem;}
.sidebar-nav .nav-item{
  width:100%;display:flex;align-items:center;gap:0.7rem;
  background:transparent;border:none;border-radius:var(--radius-xs);
  padding:0.65rem 0.7rem;margin-bottom:0.15rem;
  font-family:inherit;font-size:0.85rem;font-weight:600;color:rgba(255,255,255,0.72);
  cursor:pointer;transition:var(--transition);text-align:left;position:relative;
}
.sidebar-nav .nav-item:hover{background:rgba(255,255,255,0.06);color:#fff;}
.sidebar-nav .nav-item.active{background:var(--teal-dark);color:#fff;}
.n-icon{font-size:1rem;width:20px;text-align:center;flex-shrink:0;}
.nav-badge{
  margin-left:auto;background:var(--teal);color:#fff;font-size:0.68rem;font-weight:800;
  min-width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 4px;
}
.sidebar-footer{
  padding:1rem 0.9rem;border-top:1px solid rgba(255,255,255,0.1);
  display:flex;flex-direction:column;gap:0.5rem;
}
.sidebar-footer a{font-size:0.8rem;color:rgba(255,255,255,0.55);transition:var(--transition);}
.sidebar-footer a:hover{color:#fff;}
.sidebar-footer button{
  background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);color:#fff;
  font-family:inherit;font-size:0.8rem;font-weight:700;padding:0.6rem 0.9rem;border-radius:var(--radius-xs);
  cursor:pointer;transition:var(--transition);text-align:left;
}
.sidebar-footer button:hover{background:rgba(255,255,255,0.15);}
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(13,43,53,0.5);z-index:190;}
.sidebar-overlay.active{display:block;}

/* ── Main area ── */
.portal-main{flex:1;min-width:0;display:flex;flex-direction:column;}
.portal-topbar{
  --topbar-bg: var(--surface);
  --topbar-text: var(--text);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 1.5rem;
  background:var(--topbar-bg);
  color:var(--topbar-text);
  border-bottom:1px solid var(--border);
  box-shadow:0 1px 0 rgba(13,43,53,0.03);
  position:sticky;top:0;z-index:150;
}
.topbar-left{display:flex;align-items:center;gap:0.9rem;}
.topbar-title{font-size:1.05rem;font-weight:700;font-family:'Plus Jakarta Sans',sans-serif;color:var(--topbar-text);}
.sidebar-toggle{
  display:none;background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius-xs);
  width:44px;height:44px;font-size:1rem;cursor:pointer;color:var(--text-mid);
  align-items:center;justify-content:center;flex-shrink:0;
}
.portal-content{
  padding:1.5rem;flex:1;
  max-width:1400px;width:100%;margin:0 auto;
}

/* ── Panels ── */
.panel{display:none;}
.panel.active{display:block;animation:fadeUp 0.3s ease;}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}

/* ── Cards / tables ── */
.p-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1.5rem;margin-bottom:1.25rem;}
.dash-grid-2col{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:1.25rem;align-items:start;}
.p-card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.1rem;}
.p-card-head h3{font-size:1rem;font-weight:700;font-family:'Plus Jakarta Sans',sans-serif;}
.p-card-body{font-size:0.87rem;color:var(--text-mid);}
.p-table-wrap{overflow-x:auto;}
.p-table{width:100%;border-collapse:collapse;font-size:0.83rem;}
.p-table th{
  text-align:left;font-size:0.7rem;font-weight:800;letter-spacing:0.05em;text-transform:uppercase;
  color:var(--text-xlight);padding:0.6rem 0.75rem;border-bottom:1.5px solid var(--border);white-space:nowrap;
}
.p-table td{padding:0.7rem 0.75rem;border-bottom:1px solid var(--border);color:var(--text-mid);vertical-align:middle;}
.p-table tr:last-child td{border-bottom:none;}
.p-table tr:hover td{background:var(--teal-pale);}

/* ── Status badges ── */
.s-badge{
  display:inline-block;font-size:0.7rem;font-weight:700;text-transform:capitalize;
  padding:0.25rem 0.65rem;border-radius:50px;background:var(--border);color:var(--text-mid);
}
.s-new,.s-pending{background:#fef3c7;color:#92400e;}
.s-contacted,.s-in-progress{background:#dbeafe;color:#1e40af;}
.s-confirmed,.s-approved,.s-active,.s-live{background:#dcfce7;color:#15803d;}
.s-rejected,.s-removed,.s-archived{background:#fee2e2;color:#b91c1c;}

/* ── Action / icon buttons ── */
.action-btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:inherit;font-size:0.76rem;font-weight:700;cursor:pointer;
  border:1.5px solid var(--border-mid);background:var(--surface);color:var(--text-mid);
  padding:0.4rem 0.8rem;border-radius:50px;transition:var(--transition);text-decoration:none;margin:0 0.15rem 0.15rem 0;
}
.action-btn:hover{border-color:var(--teal);color:var(--teal-dark);background:var(--teal-pale);}
.action-view{border-color:var(--border-mid);}
.action-approve{background:var(--teal-dark);border-color:var(--teal-dark);color:#fff;}
.action-approve:hover{background:var(--teal);border-color:var(--teal);color:#fff;}
.action-delete{color:#b91c1c;border-color:#f5c2c2;}
.action-delete:hover{background:#fdecec;border-color:#f5c2c2;color:#b91c1c;}
.order-btn{
  width:26px;height:22px;border-radius:6px;border:1px solid var(--border-mid);background:var(--surface);
  color:var(--text-mid);cursor:pointer;font-size:0.7rem;display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
}
.order-btn:hover:not(:disabled){border-color:var(--teal);color:var(--teal-dark);}
.order-btn:disabled{opacity:0.35;cursor:not-allowed;}
.copy-btn{
  font-family:inherit;font-size:0.76rem;font-weight:700;cursor:pointer;
  background:var(--teal-pale);border:1px solid var(--border-mid);color:var(--teal-dark);
  padding:0.4rem 0.85rem;border-radius:50px;transition:var(--transition);
}
.copy-btn:hover{background:var(--teal-light);}

/* ── Empty states ── */
.empty-state{text-align:center;padding:2.5rem 1rem;color:var(--text-light);}
.empty-icon{font-size:2rem;margin-bottom:0.75rem;opacity:0.6;}

/* ── Staff / partner rows ── */
.staff-row{
  display:flex;align-items:center;gap:1rem;padding:1rem 0.25rem;
  border-top:1px solid var(--border);flex-wrap:wrap;
}
.staff-row:first-child{border-top:none;}
.staff-ava{
  width:42px;height:42px;border-radius:50%;flex-shrink:0;overflow:hidden;
  background:var(--teal-pale);border:1.5px solid var(--border-mid);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;color:var(--teal-dark);font-size:1rem;
}
.staff-ava img{width:100%;height:100%;object-fit:cover;}
.staff-info{flex:1;min-width:160px;}
.staff-name{font-size:0.9rem;font-weight:700;color:var(--text);}
.staff-meta{font-size:0.78rem;color:var(--text-light);margin-top:0.1rem;}
.staff-num{text-align:right;margin-right:0.5rem;}
.staff-earn{font-size:0.95rem;font-weight:800;color:var(--teal-dark);font-family:'Space Mono',monospace;}
.staff-clients-count{font-size:0.72rem;color:var(--text-xlight);margin-top:0.1rem;}

/* ── Portfolio manager rows ── */
.port-item{display:flex;align-items:center;gap:0.85rem;padding:0.9rem 0.25rem;border-top:1px solid var(--border);flex-wrap:wrap;}
.port-item:first-child{border-top:none;}
.port-item-info{flex:1;min-width:160px;}
.port-item-name{font-size:0.9rem;font-weight:700;display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap;}
.port-item-order{font-size:0.7rem;font-weight:700;color:var(--text-xlight);background:var(--teal-pale);padding:0.1rem 0.5rem;border-radius:50px;}
.port-item-url{font-size:0.78rem;color:var(--text-light);font-family:'Space Mono',monospace;margin-top:0.15rem;}

/* ── Generic modal (Website edit / "Manage Website") ──
   Reusable overlay + centered card pattern. Opens via a JS-toggled
   `.active` class on the overlay; body scroll is locked while open. */
body.modal-open{overflow:hidden;}
.modal-overlay{
  position:fixed;inset:0;z-index:3000;
  background:rgba(13,43,53,0.55);
  display:flex;align-items:center;justify-content:center;padding:1.25rem;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active{opacity:1;visibility:visible;pointer-events:auto;}
.modal-card{
  width:100%;max-width:600px;max-height:88vh;
  background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;
  transform:translateY(14px) scale(0.98);transition:transform 0.25s ease;
}
.modal-overlay.active .modal-card{transform:translateY(0) scale(1);}
.modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);flex-shrink:0;
}
.modal-head h3{font-size:1.1rem;font-weight:700;font-family:'Plus Jakarta Sans',sans-serif;}
.modal-close{
  width:36px;height:36px;border-radius:50%;flex-shrink:0;
  border:1px solid var(--border-mid);background:var(--teal-pale);color:var(--text-mid);
  font-size:1rem;cursor:pointer;transition:var(--transition);
  display:flex;align-items:center;justify-content:center;
}
.modal-close:hover{background:var(--teal-light);color:var(--teal-dark);}
.modal-body{padding:1.5rem;overflow-y:auto;flex:1;}
.modal-foot{
  display:flex;justify-content:flex-end;gap:0.75rem;
  padding:1.1rem 1.5rem;border-top:1px solid var(--border);flex-shrink:0;
}
@media (max-width:560px){
  .modal-overlay{padding:0;align-items:flex-end;}
  .modal-card{max-width:none;max-height:92vh;border-radius:var(--radius) var(--radius) 0 0;}
}

/* ── Referral link box ── */
.ref-link-box{
  display:flex;align-items:center;gap:0.6rem;background:var(--teal-pale);border:1px solid var(--border-mid);
  border-radius:var(--radius-xs);padding:0.7rem 0.9rem;flex-wrap:wrap;
}
.ref-link-text{flex:1;font-size:0.82rem;font-family:'Space Mono',monospace;color:var(--teal-dark);word-break:break-all;}

.customizer-preview{}

/* ── Portal responsive ── */
@media (max-width:900px){
  .sidebar{
    position:fixed;top:0;left:0;bottom:0;height:100vh;
    transform:translateX(-100%);transition:transform 0.3s ease;
  }
  .sidebar.open{transform:translateX(0);}
  .sidebar-toggle{display:flex;}
  .portal-content{padding:1.1rem;}
  .p-card{padding:1.15rem;}
  #dashGrids{grid-template-columns:1fr !important;}
}

/* ==========================================================================
   MISC UTILITIES
   ========================================================================== */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;}
.blog-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.75rem;transition:var(--transition);}
.blog-card:hover{border-color:var(--teal);transform:translateY(-4px);box-shadow:var(--shadow);}
.blog-cat{font-size:0.68rem;font-weight:800;letter-spacing:0.08em;text-transform:uppercase;color:var(--teal-dark);}
.blog-card h3{font-size:1.05rem;font-weight:700;margin:0.6rem 0;line-height:1.4;}
.blog-card p{font-size:0.84rem;color:var(--text-light);line-height:1.65;}
@media (max-width:860px){.blog-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.blog-grid{grid-template-columns:1fr;}}

.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
.team-card{text-align:center;}
.team-photo{width:100%;aspect-ratio:1;border-radius:var(--radius-sm);background:linear-gradient(135deg,var(--teal-light),var(--teal-pale));display:flex;align-items:center;justify-content:center;font-size:2.2rem;font-weight:800;color:var(--teal-dark);font-family:'Plus Jakarta Sans',sans-serif;margin-bottom:0.9rem;}
.team-card h4{font-size:0.95rem;font-weight:700;}
.team-card span{font-size:0.78rem;color:var(--text-light);}
@media (max-width:860px){.team-grid{grid-template-columns:repeat(2,1fr);}}

.value-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
@media (max-width:860px){.value-grid{grid-template-columns:repeat(2,1fr);}}

.faq-item{border-top:1px solid var(--border);padding:1.25rem 0;cursor:pointer;}
.faq-item:first-child{border-top:none;}
.faq-q{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:0.95rem;gap:1rem;}
.faq-q .faq-plus{font-size:1.2rem;color:var(--teal);transition:transform 0.25s;flex-shrink:0;}
.faq-item.open .faq-plus{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height 0.3s ease;font-size:0.87rem;color:var(--text-light);line-height:1.7;}
.faq-item.open .faq-a{max-height:400px;padding-top:0.85rem;}

/* Skip link for accessibility */
.skip-link{position:absolute;left:-999px;top:auto;background:var(--teal-dark);color:#fff;padding:0.75rem 1.25rem;z-index:5000;border-radius:0 0 8px 0;}
.skip-link:focus{left:0;top:0;}

@media (max-width:980px){
  .silo-grid,.industry-grid,.packages-grid,.commission-cards,.team-grid,.value-grid,.stats-row,.metrics-grid,.blog-grid{gap:1.25rem;}
}

/* ── Pill / tab-bar rows: scroll instead of wrapping awkwardly on phones ── */
@media (max-width:560px){
  .features-tabs{
    flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;
    -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;
    margin-left:-1.25rem;margin-right:-1.25rem;padding:0 1.25rem 0.5rem;
  }
  .features-tabs::-webkit-scrollbar{height:0;}
  .feature-tab{scroll-snap-align:start;}
  .biztype-row{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;justify-content:flex-start;margin:0 -1.25rem;padding:0 1.25rem 0.4rem;}
  .biztype-pill{flex-shrink:0;}
  .ticker-inner{gap:1rem;font-size:0.74rem;}
  .grant-list{grid-template-columns:1fr;}
  .section-title{font-size:clamp(1.5rem,7vw,2rem);}
  section{padding:clamp(2.5rem,10vw,3.5rem) 0;}
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-consent{
  position:fixed;left:0;right:0;bottom:0;z-index:4000;
  display:flex;justify-content:center;
  padding:1rem;
  transform:translateY(120%);
  transition:transform 0.4s cubic-bezier(.4,0,.2,1);
  pointer-events:none;
}
.cookie-consent.visible{transform:translateY(0);pointer-events:auto;}
.cookie-consent-card{
  max-width:760px;width:100%;
  background:var(--surface);
  border:1px solid var(--border-mid);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-lg);
  padding:1.1rem 1.25rem;
  display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;
  pointer-events:auto;
}
.cookie-consent-icon{
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  background:var(--teal-pale);border:1px solid var(--border-mid);
  display:flex;align-items:center;justify-content:center;font-size:1.05rem;
}
.cookie-consent-text{flex:1;min-width:200px;}
.cookie-consent-text p{font-size:0.83rem;color:var(--text-light);line-height:1.6;}
.cookie-consent-text a{color:var(--teal-dark);font-weight:700;text-decoration:underline;text-underline-offset:2px;}
.cookie-consent-actions{display:flex;gap:0.6rem;flex-shrink:0;margin-left:auto;}
.cookie-consent-actions button{
  font-family:inherit;font-weight:700;font-size:0.8rem;
  padding:0.55rem 1.1rem;border-radius:50px;cursor:pointer;border:none;transition:var(--transition);
}
.cookie-btn-decline{background:transparent;color:var(--text-mid);border:1.5px solid var(--border-mid) !important;}
.cookie-btn-decline:hover{background:var(--teal-pale);}
.cookie-btn-accept{background:var(--teal-dark);color:#fff;}
.cookie-btn-accept:hover{background:var(--teal);}
@media (max-width:560px){
  .cookie-consent{padding:0.75rem;}
  .cookie-consent-card{padding:1rem;flex-direction:column;align-items:flex-start;text-align:left;}
  .cookie-consent-actions{margin-left:0;width:100%;}
  .cookie-consent-actions button{flex:1;}
}

/* ==========================================================================
   PUSH NOTIFICATION PROMPT (toast)
   ========================================================================== */
.push-toast{
  position:fixed;top:calc(var(--nav-h) + 16px);right:20px;z-index:4100;
  width:320px;max-width:calc(100vw - 40px);
  background:var(--surface);border:1px solid var(--border-mid);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-lg);
  padding:1.1rem 1.15rem;
  display:flex;gap:0.85rem;align-items:flex-start;
  opacity:0;transform:translateY(-14px) scale(0.97);
  transition:opacity 0.35s ease, transform 0.35s ease;
  pointer-events:none;
}
.push-toast.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;}
.push-toast-icon{
  width:38px;height:38px;border-radius:10px;flex-shrink:0;
  background:linear-gradient(135deg,var(--teal-dark),var(--teal));
  display:flex;align-items:center;justify-content:center;font-size:1.05rem;color:#fff;
}
.push-toast-body{flex:1;}
.push-toast-body strong{display:block;font-size:0.88rem;font-weight:700;margin-bottom:0.2rem;color:var(--text);}
.push-toast-body p{font-size:0.78rem;color:var(--text-light);line-height:1.55;margin-bottom:0.75rem;}
.push-toast-actions{display:flex;gap:0.5rem;}
.push-toast-actions button{
  font-family:inherit;font-weight:700;font-size:0.76rem;cursor:pointer;border:none;transition:var(--transition);
  border-radius:50px;padding:0.42rem 0.9rem;
}
.push-btn-allow{background:var(--teal-dark);color:#fff;}
.push-btn-allow:hover{background:var(--teal);}
.push-btn-dismiss{background:transparent;color:var(--text-xlight);border:1.5px solid var(--border-mid) !important;}
.push-btn-dismiss:hover{background:var(--teal-pale);color:var(--text-mid);}
.push-toast-close{
  position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;
  border:none;background:transparent;color:var(--text-xlight);font-size:0.9rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.push-toast-close:hover{background:var(--border);color:var(--text);}
@media (max-width:560px){
  .push-toast{left:16px;right:16px;width:auto;top:auto;bottom:96px;}
}

/* ==========================================================================
   AUTH / BUSINESS PORTAL LOGIN CARD
   ========================================================================== */
.auth-shell{
  min-height:100vh;display:flex;align-items:center;justify-content:center;
  padding:2rem 1.25rem;position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(31,138,140,0.16), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(31,138,140,0.12), transparent 45%),
    var(--bg);
}
.auth-card{
  width:100%;max-width:400px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  padding:2.5rem 2.25rem 2.25rem;
  position:relative;z-index:1;
}
.auth-logo{display:flex;justify-content:center;margin-bottom:1.5rem;}
.auth-logo img{height:52px;width:auto;object-fit:contain;}
.auth-heading{text-align:center;margin-bottom:1.75rem;}
.auth-heading h1{font-size:1.35rem;font-weight:800;margin-bottom:0.4rem;}
.auth-heading p{font-size:0.85rem;color:var(--text-light);}
.auth-field{margin-bottom:1.1rem;}
.auth-field label{display:block;font-size:0.78rem;font-weight:700;color:var(--text-mid);margin-bottom:0.4rem;}
.auth-field input{
  width:100%;padding:0.8rem 1rem;border:1.5px solid var(--border-mid);border-radius:var(--radius-xs);
  font-family:inherit;font-size:0.92rem;color:var(--text);background:var(--bg);transition:var(--transition);
}
.auth-field input:focus{outline:none;border-color:var(--teal);background:#fff;}
.auth-submit{
  width:100%;justify-content:center;display:flex;margin-top:0.5rem;
  padding:0.85rem 1.5rem;font-size:0.92rem;
}
.auth-meta{display:flex;justify-content:space-between;align-items:center;margin:1rem 0 0.25rem;font-size:0.78rem;}
.auth-meta a{color:var(--teal-dark);font-weight:600;}
.auth-divider{display:flex;align-items:center;gap:0.75rem;margin:1.5rem 0;color:var(--text-xlight);font-size:0.75rem;font-weight:600;}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--border);}
.auth-footer-note{text-align:center;font-size:0.8rem;color:var(--text-light);margin-top:0.5rem;}
.auth-footer-note a{color:var(--teal-dark);font-weight:700;}
.auth-error{
  background:#fdecec;border:1px solid #f5c2c2;color:#b42318;font-size:0.82rem;
  padding:0.7rem 0.9rem;border-radius:var(--radius-xs);margin-bottom:1.1rem;display:none;
}
.auth-error.visible{display:block;}
.role-tabs{
  display:flex;background:var(--teal-pale);border:1px solid var(--border-mid);
  border-radius:50px;padding:4px;margin-bottom:1.5rem;gap:2px;
}
.role-tab{
  flex:1;background:transparent;border:none;border-radius:50px;
  padding:0.55rem 0.5rem;font-family:inherit;font-size:0.83rem;font-weight:700;
  color:var(--text-mid);cursor:pointer;transition:var(--transition);
}
.role-tab.active{background:var(--surface);color:var(--teal-dark);box-shadow:0 2px 8px rgba(13,43,53,0.1);}
.role-tab:not(.active):hover{color:var(--teal-dark);}
.auth-back{
  position:absolute;top:1.75rem;left:1.75rem;font-size:0.8rem;font-weight:600;color:var(--text-light);
  display:flex;align-items:center;gap:0.4rem;z-index:2;
}
.auth-back:hover{color:var(--teal-dark);}
@media (max-width:480px){
  .auth-card{padding:2rem 1.5rem 1.75rem;}
  .auth-back{position:static;margin-bottom:1.5rem;}
  .auth-shell{padding:1.25rem;align-items:flex-start;padding-top:2rem;}
}

/* ==========================================================================
   LEGAL / PROSE CONTENT (Privacy Policy, Terms & Conditions)
   ========================================================================== */
.legal-shell{display:grid;grid-template-columns:220px 1fr;gap:3rem;align-items:start;}
.legal-toc{position:sticky;top:calc(var(--nav-h) + 1.5rem);}
.legal-toc-label{font-size:0.68rem;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-xlight);margin-bottom:0.9rem;}
.legal-toc a{display:block;font-size:0.83rem;color:var(--text-light);padding:0.4rem 0;border-left:2px solid var(--border);padding-left:0.85rem;transition:var(--transition);}
.legal-toc a:hover{color:var(--teal-dark);border-left-color:var(--teal);}
.legal-updated{
  display:inline-block;background:var(--teal-pale);border:1px solid var(--border-mid);
  padding:0.35rem 0.9rem;border-radius:50px;font-size:0.78rem;font-weight:700;color:var(--teal-dark);
  margin-bottom:2rem;
}
.legal-content{max-width:720px;font-size:0.95rem;line-height:1.8;color:var(--text-mid);}
.legal-content h2{
  font-size:1.35rem;font-weight:800;color:var(--text);margin-top:2.5rem;margin-bottom:0.9rem;
  padding-top:1rem;scroll-margin-top:calc(var(--nav-h) + 1rem);
}
.legal-content h2:first-child{margin-top:0;padding-top:0;}
.legal-content h3{font-size:1.05rem;font-weight:700;color:var(--text);margin-top:1.5rem;margin-bottom:0.6rem;}
.legal-content p{margin-bottom:1.1rem;}
.legal-content ul,.legal-content ol{margin:0 0 1.1rem;padding-left:1.4rem;}
.legal-content li{margin-bottom:0.5rem;}
.legal-content a{color:var(--teal-dark);font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.legal-content strong{color:var(--text);}
.legal-note{
  background:var(--teal-pale);border:1px solid var(--border-mid);border-radius:var(--radius-sm);
  padding:1.1rem 1.3rem;margin:1.5rem 0;font-size:0.87rem;
}
@media (max-width:860px){
  .legal-shell{grid-template-columns:1fr;}
  .legal-toc{position:static;display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:2rem;}
  .legal-toc-label{width:100%;}
  .legal-toc a{border-left:none;border:1px solid var(--border-mid);border-radius:50px;padding:0.4rem 0.9rem;}
}
