/* ==========================================================================
   GVR Groups: one design system for light AND dark (loaded last).
   Type: Mona Sans (display, set slightly wide) + Hanken Grotesk (text). One family
   voice everywhere; emphasis by colour and weight, never by switching to a serif.
   Colour: taken from the logo. Royal blue (action) + logo cyan (the "on" signal).
   Selectors start with html[data-theme] so they win over light.css / style.css.
   ========================================================================== */

@font-face{font-family:"Mona Sans";src:url("../fonts/mona-sans-var.woff2") format("woff2");font-weight:200 900;font-stretch:75% 125%;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url("../fonts/hanken-grotesk-var.woff2") format("woff2");font-weight:100 900;font-display:swap}

:root,html[data-theme="dark"],html[data-theme="light"]{
  --font-display:"Mona Sans","Hanken Grotesk",system-ui,sans-serif;
  --font-head:var(--font-display);
  --font-body:"Hanken Grotesk","Helvetica Neue",Arial,sans-serif;
  --font-serif:var(--font-display);           /* retired: any old serif accent now uses the display face */
  --cyan:#12b3ef; --amber:var(--cyan); --warm:var(--cyan);   /* legacy names, now the logo cyan */
  --ease:cubic-bezier(.2,.8,.2,1);
}
html[data-theme="light"]{--brand:#1a4fe6;--brand-2:#1a4fe6;--brand-3:#0f37b4;--brand-ink:#0b2a8a}
html[data-theme="dark"]{--brand:#4f86ff;--brand-2:#4f86ff;--brand-3:#2f67f0;--brand-ink:#9fbcff}

/* ---------- Type scale (both themes) ---------- */
html[data-theme] body{font-family:var(--font-body);font-size:1.0625rem;line-height:1.65;font-feature-settings:normal;-webkit-font-smoothing:antialiased}
html[data-theme] :is(h1,h2,h3,h4,h5,h6,.h5,.h6,.hero-title,.svc-step h3,.loc-card strong,.kinetic-row,.stat-num,.panel h2){font-family:var(--font-display);font-style:normal}
html[data-theme] :is(h1,.hero-title){font-weight:680;font-stretch:112%;letter-spacing:-.03em;line-height:1;text-wrap:balance}
html[data-theme] h2{font-weight:650;font-stretch:110%;letter-spacing:-.028em;line-height:1.06;text-wrap:balance}
html[data-theme] :is(h3,h4){font-weight:600;font-stretch:104%;letter-spacing:-.012em;line-height:1.25}
html[data-theme] :is(h5,h6){font-weight:600;letter-spacing:0}
html[data-theme] .hero-title{font-size:clamp(2.9rem,6.2vw,5.6rem)}
/* Accent words: same face, brand colour, no italics, no underline swoosh */
html[data-theme] :is(h1 em,h2 em,h3 em,.hero-title strong,.sw-accent>span,.sw-accent){font-family:inherit;font-style:normal;font-weight:inherit;font-stretch:inherit;letter-spacing:inherit;color:var(--brand);background:none;-webkit-text-fill-color:currentColor;padding:0}
html[data-theme] .hero-title strong::after{content:none;display:none}
html[data-theme] :is(p,li){max-width:72ch}
/* Inside article columns every block shares one left edge and one measure */
html[data-theme] .gvr-prose>*{max-width:68ch;margin-left:0!important;margin-right:0!important}
html[data-theme] .gvr-prose>:is(figure,.wp-block-image,.wp-block-embed,.wp-block-table,.gvr-steps,.wp-block-columns){max-width:none}
html[data-theme] .gvr-prose :is(p,li){max-width:none}
html[data-theme] .wp-block-query-no-results{display:block;margin:0;padding:2.5rem 0;text-align:left}
html[data-theme] .wp-block-query-no-results p{margin:0;color:var(--muted)}
html[data-theme] .lead{font-size:clamp(1.1rem,1.35vw,1.25rem);line-height:1.6}

/* Site title + tagline */
html[data-theme] :is(.brand-name,.wp-block-site-title){font-family:var(--font-display)!important;font-weight:720!important;font-stretch:112%!important;font-size:1.28rem!important;letter-spacing:-.025em!important;text-transform:none!important;line-height:1.05!important}
/* Site title + tagline in one colour, taken from the logo's blue */
html[data-theme="light"]{--logo-blue:#0a5ce6}
html[data-theme="dark"]{--logo-blue:#3fa6f5}
html[data-theme] :is(.brand-name,.wp-block-site-title,.brand-name a,.wp-block-site-title a){color:var(--logo-blue)!important;text-decoration:none}
html[data-theme] :is(.brand-tagline,.wp-block-site-tagline){font-family:var(--font-body)!important;font-style:normal!important;font-weight:500!important;font-size:.78rem!important;letter-spacing:.02em!important;text-transform:none!important;color:var(--logo-blue)!important;opacity:.85;margin-top:.2rem}

/* ---------- Quality floor ---------- */
p.eyebrow,.section-head>.eyebrow,.svc-overview .eyebrow{display:none!important}
.wp-block-post-terms.eyebrow{display:inline-flex;font-size:.78rem;font-weight:600;letter-spacing:.02em;text-transform:none}
.wp-block-post-terms.eyebrow::before{display:none}
.text-grad,.stat b,.badge-num,.gvr-prose .gvr-steps>li::before{background:none!important;-webkit-text-fill-color:currentColor!important;color:var(--brand)!important}
.big-card .num{display:none}
::selection{background:var(--cyan);color:#06123f}
html{scrollbar-color:var(--stroke-hi) transparent}
a{text-underline-offset:.2em}
html[data-theme] :is(.chip,.btn-glass,.wp-element-button,button,input,select,textarea){font-family:var(--font-body)}
html[data-theme] .kinetic-row.is-outline{font-style:normal;font-weight:650;color:var(--brand)}
html[data-theme] .site-footer::after{font-style:normal;font-weight:800;font-stretch:125%;letter-spacing:-.04em}

/* ---------- Buttons: one system for both themes ---------- */
html[data-theme] :is(.wp-block-button .wp-block-button__link,.btn-brand,.btn-glass){display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.75rem 1.4rem;border-radius:999px;font-family:var(--font-body);font-weight:600;font-size:1rem;line-height:1;letter-spacing:0;text-decoration:none;white-space:nowrap;transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease),box-shadow .3s var(--ease)}
html[data-theme] :is(.is-style-gvr-primary .wp-block-button__link,.btn-brand){background:var(--brand)!important;color:#fff!important;border:1px solid var(--brand)!important;box-shadow:0 12px 28px -14px rgba(26,79,230,.75);overflow:visible}
html[data-theme] :is(.is-style-gvr-primary .wp-block-button__link,.btn-brand):hover{background:var(--brand-3)!important;border-color:var(--brand-3)!important;transform:translateY(-2px)}
html[data-theme] :is(.is-style-gvr-outline .wp-block-button__link,.btn-glass){background:transparent!important;color:var(--text)!important;border:1px solid var(--stroke-hi)!important;box-shadow:none}
html[data-theme] :is(.is-style-gvr-outline .wp-block-button__link,.btn-glass):hover{background:var(--text)!important;color:var(--bg)!important;border-color:var(--text)!important}
/* Icons inside buttons sit on the text's centre line in both themes */
html[data-theme] .wp-block-button[class*="gvr-icon-"] .wp-block-button__link::before,html[data-theme] .wp-block-button[class*="gvr-icon-after-"] .wp-block-button__link::after{position:static;display:inline-block;transform:none;background:none;font-size:1.05em;line-height:1;vertical-align:0}
html[data-theme] .cta-band .is-style-gvr-primary .wp-block-button__link{background:var(--cyan)!important;border-color:var(--cyan)!important;color:#06123f!important}
html[data-theme] .cta-band .is-style-gvr-primary .wp-block-button__link:hover{background:#fff!important;border-color:#fff!important}

/* ---------- Header ---------- */
html[data-theme] .header-actions{display:flex;align-items:center;gap:.6rem}
html[data-theme] .header-actions .wp-block-button__link{min-height:46px;padding:.65rem 1.2rem}
html[data-theme] .main-nav .wp-block-navigation-item.has-child{display:flex;align-items:center}
html[data-theme] .main-nav .has-child>.wp-block-navigation-item__content{padding-right:.25rem}
html[data-theme] .main-nav .wp-block-navigation-submenu__toggle{display:inline-flex;align-items:center;justify-content:center;width:auto!important;height:2.25rem!important;padding:0 .75rem 0 .1rem!important;margin:0!important;line-height:1;color:var(--text);background:none;border:0}
html[data-theme] .main-nav .wp-block-navigation-submenu__toggle svg{display:block;width:11px!important;height:11px!important;margin:0!important;stroke:currentColor;transform:translateY(1px);transition:transform .25s var(--ease)}
html[data-theme] .main-nav .has-child:hover .wp-block-navigation-submenu__toggle svg,html[data-theme] .main-nav .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg{transform:translateY(1px) rotate(180deg)}
html[data-theme] .main-nav .wp-block-navigation-item__content::after{background:var(--cyan)}

/* ---------- Stats: one style for both themes ---------- */
html[data-theme] .trust-row{display:flex;flex-wrap:wrap;gap:0;align-items:stretch}
html[data-theme] .trust-row .stat{background:transparent;border:0;border-left:1px solid var(--stroke-hi);border-radius:0;box-shadow:none;padding:.15rem 1.6rem;min-width:0;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-theme] .trust-row .stat:first-child{border-left:0;padding-left:0}
html[data-theme] .stat .stat-num{font-weight:650;font-stretch:112%;font-size:clamp(1.8rem,2.6vw,2.4rem);letter-spacing:-.03em;line-height:1;color:var(--text)}
html[data-theme] .stat .stat-label{margin-top:.35rem;font-size:.85rem;font-weight:500;color:var(--muted)}

/* ---------- Hero visual: floating cards sit outside the panel's content ---------- */
html[data-theme] .stage{padding-block:3rem}
html[data-theme] .floater{border-radius:16px;font-family:var(--font-body);font-weight:600}
html[data-theme] .floater.f1{top:0;left:2rem;right:auto;bottom:auto}
html[data-theme] .floater.f3{top:0;right:2rem;left:auto;bottom:auto}
html[data-theme] .floater.f2{bottom:0;left:2rem;right:auto;top:auto}
html[data-theme="light"] .tile.on{background:#e4f6fd;border-color:rgba(18,179,239,.55)}
html[data-theme="dark"] .tile.on{background:linear-gradient(160deg,rgba(18,179,239,.16),rgba(18,179,239,.03));border-color:rgba(18,179,239,.5)}
html[data-theme] .tile.on .ico{color:var(--cyan)}
@media (max-width:1199.98px){html[data-theme] .floater.f1,html[data-theme] .floater.f2{left:1rem}html[data-theme] .floater.f3{right:1rem}}
@media (max-width:575.98px){html[data-theme] .stage{padding-block:0}}

/* ---------- Night bands: readable accents, breathing room after the band ---------- */
html[data-theme] .night-band .badge-num{color:var(--cyan)!important;font-family:var(--font-display);font-weight:650;font-stretch:112%;letter-spacing:-.03em}
html[data-theme] .night-band :is(h2 em,.sw-accent>span,.sw-accent){color:var(--cyan)}
html[data-theme] .night-band+*{margin-top:clamp(2.5rem,5vw,4.5rem)}
html[data-theme] .step .h5{margin-top:.35rem}

/* ---------- Floating actions: one aligned column ----------
   Bottom slot: RapidChat launcher (plugin). Above it: WhatsApp, Call (phones only: the header
   has "Call Us" on wider screens) and Back to top. Every button 56px, one centre line,
   12px apart, so each one is its own tap target. */
:root{--fab-size:56px;--fab-gap:12px;--fab-edge:24px}
@media (max-width:575.98px){:root{--fab-size:52px;--fab-edge:16px}}
html[data-theme] .fab{position:fixed;z-index:1040;right:calc(var(--fab-edge) + env(safe-area-inset-right));bottom:calc(var(--fab-edge) + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:var(--fab-gap);transition:opacity .25s}
/* Leave the bottom slot for the chat launcher when RapidChat is on the page */
html[data-theme] body:has(#rapidchat-widget) .fab{bottom:calc(var(--fab-edge) + var(--fab-size) + var(--fab-gap) + env(safe-area-inset-bottom))}
html[data-theme] .fab a{width:var(--fab-size);height:var(--fab-size);padding:0;margin:0;display:grid;place-items:center;font-size:1.3rem;line-height:1;box-sizing:border-box;border:1px solid transparent;border-radius:50%;box-shadow:0 10px 24px -10px rgba(6,18,63,.55)}
html[data-theme] .fab a i{display:block;line-height:1}
html[data-theme] .fab a i::before{display:block;vertical-align:0}
html[data-theme] .fab .call{background:var(--brand)}
html[data-theme] .fab .to-top{background:var(--glass-strong);color:var(--text);border-color:var(--stroke-hi);transition:opacity .3s,transform .25s}
html[data-theme] .fab .to-top:not(.show){display:none}
@media (min-width:576px){html[data-theme] .fab .call{display:none}}
/* RapidChat launcher: same size and centre line as the column */
html[data-theme] #rapidchat-widget .open-chat-widget{width:var(--fab-size);height:var(--fab-size);right:calc(var(--fab-edge) + env(safe-area-inset-right));bottom:calc(var(--fab-edge) + env(safe-area-inset-bottom));z-index:1041;box-shadow:0 10px 24px -10px rgba(6,18,63,.55)}
html[data-theme] #rapidchat-widget .chat-widget{right:var(--fab-edge);bottom:calc(var(--fab-edge) + var(--fab-size) + var(--fab-gap))}
html[data-theme] #rapidchat-widget .rc-teaser-bubble{right:calc(var(--fab-edge) + var(--fab-size) + var(--fab-gap));bottom:var(--fab-edge)}
/* Chat open: the column steps aside so nothing sits under the chat window */
html[data-theme] body:has(#rapidchat-widget.rc-widget-open) .fab{opacity:0;pointer-events:none}

/* ---------- Location pages ---------- */
.loc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.loc-card{display:flex;flex-direction:column;gap:.5rem;padding:1.5rem;border:1px solid var(--stroke);border-radius:16px;background:var(--glass);color:var(--text);text-decoration:none;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s,border-color .45s}
.loc-card:hover{transform:translateY(-5px);border-color:var(--stroke-hi);box-shadow:0 24px 48px -28px rgba(14,17,22,.45);text-decoration:none;color:var(--text)}
.loc-card>i{font-size:1.5rem;color:var(--brand);margin-bottom:.4rem}
.loc-card strong{font-size:1.2rem;letter-spacing:-.02em}
.loc-card>span{color:var(--muted);font-size:.94rem;line-height:1.55}
.loc-more{margin-top:auto;padding-top:.6rem;font-style:normal;font-weight:600;font-size:.9rem;color:var(--brand)}
.loc-more i{display:inline-block;transition:transform .3s}
.loc-card:hover .loc-more i{transform:translateX(5px)}
.loc-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1.25rem}
.loc-chips .chip{display:inline-flex;align-items:center;padding:.45rem 1rem;border-radius:999px;border:1px solid var(--stroke-hi);color:var(--text);font-size:.9rem;font-weight:500;text-decoration:none;transition:background .25s,color .25s,border-color .25s,transform .25s}
.loc-chips .chip:hover{background:var(--text);color:var(--bg);border-color:var(--text);transform:translateY(-2px)}
.night-band .loc-chips .chip{color:#e9e6df;border-color:rgba(255,255,255,.25)}
.night-band .loc-chips .chip:hover{background:#fff;color:#0b0e14}
.loc-sub{margin-top:1.5rem;font-family:var(--font-body)!important;font-size:.82rem;font-weight:600;color:var(--muted)}
.loc-profile{display:inline-flex;align-items:center;gap:.5rem;font-weight:600;color:var(--muted)}
.loc-city-block{border-top:1px solid var(--stroke)}
.loc-svc-img{width:100%;max-height:380px;object-fit:contain}
.gvr-location .page-hero h1{font-size:clamp(2.4rem,5.4vw,4.6rem)}

/* ==========================================================================
   "Switch the house on" (home)
   ========================================================================== */
.house3d{position:relative;height:460vh;margin-top:clamp(2rem,5vw,5rem)}
.h3d-sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;display:flex;align-items:center;isolation:isolate}
.h3d-sticky::before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(60% 70% at 70% 50%,rgba(31,92,255,.10),transparent 70%);transition:background 1s}
.house3d.is-on .h3d-sticky::before{background:radial-gradient(60% 70% at 70% 50%,rgba(18,179,239,.16),transparent 70%)}
.h3d-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(1rem,4vw,4rem);align-items:center;width:100%}
.h3d-copy h2{font-size:clamp(2.4rem,4.6vw,4.4rem);margin-bottom:.6rem}
.h3d-copy .lead{color:var(--muted);margin-bottom:1.6rem}
.h3d-steps{list-style:none;margin:0;padding:0;display:grid;gap:.35rem;counter-reset:none}
.h3d-step{display:grid;grid-template-columns:44px 1fr;column-gap:1rem;align-items:start;padding:.85rem 0;border-top:1px solid var(--stroke);opacity:.38;transition:opacity .5s,transform .5s cubic-bezier(.2,.8,.2,1)}
.h3d-step h3{display:flex;align-items:center;min-height:44px;font-size:1.12rem;line-height:1.2;margin:0}
.h3d-step>div{min-width:0}
.h3d-step p{margin:0;font-size:.95rem;color:var(--muted);max-height:0;overflow:hidden;transition:max-height .6s cubic-bezier(.2,.8,.2,1)}
.h3d-ico{display:grid;place-items:center;width:44px;height:44px;line-height:1;border-radius:12px;border:1px solid var(--stroke-hi);font-size:1.15rem;transition:background .5s,color .5s,border-color .5s,box-shadow .5s}
.h3d-step.is-done{opacity:.7}
.h3d-step.is-done .h3d-ico{border-color:var(--amber,#12b3ef);color:var(--amber,#12b3ef)}
.h3d-step.is-active{opacity:1;transform:translateX(6px)}
.h3d-step.is-active p{max-height:6rem;margin-top:.15rem}
.h3d-step.is-active .h3d-ico{background:var(--cyan);border-color:var(--cyan);color:#06123f;box-shadow:0 10px 26px -8px rgba(18,179,239,.75)}
.h3d-cta{margin-top:1.6rem}
.h3d-stage{position:relative;height:min(78vh,720px)}
.h3d-canvas{width:100%;height:100%;display:block;opacity:0;transition:opacity 1.2s}
.house3d.h3d-ready .h3d-canvas{opacity:1}
.h3d-hud{position:absolute;right:1rem;bottom:1rem;display:inline-flex;align-items:center;gap:.6rem;padding:.5rem .95rem;border-radius:999px;border:1px solid var(--stroke);background:var(--glass-strong,#fff);font-size:.82rem;font-weight:600}
.h3d-hud-dot{width:9px;height:9px;border-radius:50%;background:var(--muted);transition:background .4s,box-shadow .4s}
.house3d.is-on .h3d-hud-dot{background:var(--amber,#12b3ef);box-shadow:0 0 0 4px rgba(18,179,239,.2)}
.h3d-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--stroke)}
.h3d-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--amber,#12b3ef),var(--brand));transform-origin:0 50%;transform:scaleX(0)}
/* No WebGL / reduced motion: a normal section with every chapter readable */
.house3d.h3d-nogl,.house3d.is-static{height:auto}
.house3d.h3d-nogl .h3d-sticky,.house3d.is-static .h3d-sticky{position:relative;height:auto;padding:clamp(3rem,8vw,6rem) 0}
.house3d.h3d-nogl .h3d-stage{display:none}
.house3d.h3d-nogl .h3d-grid{grid-template-columns:1fr}
.house3d.h3d-nogl .h3d-step,.house3d.is-static .h3d-step{opacity:1;transform:none}
.house3d.h3d-nogl .h3d-step p,.house3d.is-static .h3d-step p{max-height:none}
.no-js .house3d{height:auto}
@media (max-width:991.98px){
  .house3d{height:520vh}
  .h3d-grid{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:100%;padding-block:5.5rem 1.5rem}
  .h3d-stage{order:-1;height:42vh}
  .h3d-copy .lead,.h3d-cta{display:none}
  .h3d-copy h2{font-size:clamp(2rem,8vw,2.8rem)}
  .h3d-step{display:none}
  .h3d-step.is-active{display:grid;transform:none}
  .house3d.h3d-nogl .h3d-step,.house3d.is-static .h3d-step{display:grid}
}
@media (prefers-reduced-motion:reduce){.h3d-step,.h3d-step p,.h3d-canvas{transition:none}}

/* ---------- Case study video ---------- */
.case-video{margin:2rem 0}
.case-video .video-frame{border-radius:16px}
.case-video figcaption{margin-top:.6rem;font-size:.85rem;color:var(--muted)}

/* ---------- Mobile header: brand left, actions grouped right ---------- */
@media (max-width:1199.98px){
  html[data-theme] .site-header .nav-shell{gap:.5rem}
  html[data-theme] .site-header .brand{margin-right:0;min-width:0}
  html[data-theme] .site-header .header-actions{order:2;margin-left:auto!important}
  html[data-theme] .site-header .main-nav.wp-block-navigation{order:3;width:auto!important;flex:none;margin:0!important}
}

/* ==========================================================================
   Founder page + home teaser
   ========================================================================== */
.founder-intro{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(2rem,5vw,5rem);align-items:center;margin-top:1.5rem}
.founder-intro h1{font-size:clamp(2.6rem,5.4vw,4.8rem);margin:0 0 1.2rem}
.founder-intro .lead{color:var(--muted);margin-bottom:1.8rem}
.founder-intro .lead strong{color:var(--text)}
.founder-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.founder-portrait{position:relative;margin:0;isolation:isolate}
.founder-portrait::before{content:"";position:absolute;inset:18px -18px -18px 18px;z-index:-1;border-radius:28px;background:linear-gradient(150deg,var(--cyan),var(--brand))}
.founder-portrait img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:24px;box-shadow:0 40px 80px -40px rgba(6,18,63,.6)}
.founder-portrait figcaption{position:absolute;left:1rem;bottom:1rem;display:flex;flex-direction:column;gap:.1rem;padding:.7rem 1rem;border-radius:14px;background:var(--glass-strong,#fff);border:1px solid var(--stroke);font-size:.82rem;color:var(--muted)}
.founder-portrait figcaption strong{font-family:var(--font-display);font-stretch:110%;font-size:1rem;color:var(--text)}

.founder-numbers{padding-block:clamp(2rem,4vw,3rem)!important}
.founder-stats{list-style:none;margin:0;padding:0;justify-content:space-between}
.founder-stats .stat{display:flex;flex-direction:column;flex:1 1 0}
.founder-stats .stat-label{display:block}

.founder-story-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(2rem,5vw,5rem);align-items:start}
.founder-story-head{position:sticky;top:120px}
.founder-story-head h2{font-size:clamp(2.2rem,4vw,3.4rem);margin-bottom:.8rem}
.founder-story-head p{color:var(--muted)}
.founder-chapters{list-style:none;margin:0;padding:0;position:relative}
.founder-chapters::before{content:"";position:absolute;left:23px;top:24px;bottom:24px;width:1px;background:linear-gradient(var(--cyan),var(--brand))}
.founder-chapter{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:1.4rem;padding-bottom:clamp(2rem,4vw,3rem)}
.founder-chapter:last-child{padding-bottom:0}
.founder-chapter-mark{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.founder-chapter-ico{position:relative;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--bg);border:1px solid var(--stroke-hi);color:var(--brand);font-size:1.2rem;line-height:1}
.founder-chapter-tag{font-size:.72rem;font-weight:600;color:var(--muted);background:var(--bg);padding:.2rem .3rem;line-height:1.2;text-align:center}
.founder-chapter-body h3{display:flex;align-items:center;min-height:48px;margin:0 0 .4rem;font-size:clamp(1.3rem,2vw,1.6rem)}
.founder-chapter-body p{margin:0;color:var(--muted);font-size:1.05rem;line-height:1.7}
.founder-chapter:hover .founder-chapter-ico{background:var(--cyan);border-color:var(--cyan);color:#06123f;transition:background .3s,color .3s,border-color .3s}

.founder-belief h2{max-width:none}
.founder-belief .step{height:100%;padding:1.6rem;border-radius:16px}
.founder-links-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem;align-items:center}
.founder-links h2{font-size:clamp(2rem,3.4vw,2.8rem)}
.founder-link-list{list-style:none;padding:0;margin:0}
.founder-link-list .chip{gap:.5rem}
.founder-cta-line{max-width:none!important;margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--stroke);color:var(--muted)}

.founder-teaser{display:inline-flex;align-items:center;gap:.9rem;margin-top:1.4rem;padding:.55rem 1.1rem .55rem .55rem;border:1px solid var(--stroke-hi);border-radius:999px;color:var(--text);text-decoration:none;transition:border-color .3s,background .3s}
.founder-teaser img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.founder-teaser span{display:flex;flex-direction:column;line-height:1.3}
html[data-theme] .founder-teaser strong{font-size:.98rem;color:var(--text)}
.founder-teaser small{font-size:.85rem;color:var(--brand);font-weight:600}
.founder-teaser small i{display:inline-block;transition:transform .3s}
.founder-teaser:hover{border-color:var(--brand);text-decoration:none;color:var(--text)}
.founder-teaser:hover small i{transform:translateX(4px)}

@media (max-width:991.98px){
  .founder-intro,.founder-story-grid,.founder-links-grid{grid-template-columns:1fr}
  .founder-portrait{max-width:420px;margin-inline:14px auto}
  .founder-story-head{position:static}
  .founder-stats{gap:1.25rem 0}
  .founder-stats .stat{flex:1 1 45%}
  .founder-stats .stat:nth-child(3){border-left:0;padding-left:0}
}

html[data-theme] .site-footer .copyright{max-width:none;text-align:left}

/* Long site title/tagline (set in Settings > General) must never push the menu button off screen */
html[data-theme] .site-header .brand{min-width:0;flex:0 1 auto}
html[data-theme] .site-header .brand-text{min-width:0;overflow:hidden}
html[data-theme] .site-header :is(.brand-name,.wp-block-site-title,.brand-tagline,.wp-block-site-tagline){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:575.98px){html[data-theme] .site-header :is(.brand-tagline,.wp-block-site-tagline){display:none}}

/* ===== Phone pass (≤575px): touch targets, floating-button clearance, stacked layouts ===== */
@media (max-width:575.98px){
  :root{--fab-size:48px;--fab-gap:10px;--fab-edge:12px}
  html[data-theme] .fab a{font-size:1.15rem}
  /* 44px minimum touch targets */
  html[data-theme] a.chip{min-height:44px;display:inline-flex;align-items:center}
  html[data-theme] .wp-block-social-link-anchor{min-width:44px;min-height:44px;display:grid!important;place-items:center}
  html[data-theme] .wp-block-post-excerpt__more-link{display:inline-flex;align-items:center;min-height:44px}
  html[data-theme] .wp-block-post-terms a{display:inline-flex;align-items:center;min-height:44px}
  html[data-theme] .round-btn{width:44px;height:44px}
  html[data-theme] .switch{position:relative}
  html[data-theme] .switch::after{content:"";position:absolute;inset:-10px -4px}
  /* hero stats: tidy three-up grid, no stray dividers */
  html[data-theme] .trust-row:not(.founder-stats){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
  html[data-theme] .trust-row .stat{padding:.15rem .75rem;border-left:1px solid var(--stroke-hi)}
  html[data-theme] .trust-row .stat:first-child{padding-left:0;border-left:0}
  html[data-theme] .founder-stats{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem 0}
  html[data-theme] .founder-stats .stat:nth-child(odd){border-left:0;padding-left:0}
  html[data-theme] .stat .stat-num{font-size:1.75rem}
  /* integration tiles: one per row so labels don't wrap */
  html[data-theme] .int-item{flex-direction:row;align-items:center}
  html[data-theme] .row>.col-6:has(>.int-item){width:100%}
  /* keep the last lines of the page clear of the floating stack */
  html[data-theme] footer,html[data-theme] .wp-block-template-part:last-of-type{padding-bottom:calc(var(--fab-size) + var(--fab-edge) + 8px)}
  html[data-theme] .site-footer a{overflow-wrap:anywhere}
}
@media (max-width:575.98px){html[data-theme] .facts dd a{display:inline-block;padding:11px 0;line-height:22px}}
@media (max-width:575.98px){html[data-theme] .copyright{padding-right:calc(var(--fab-size) + var(--fab-edge));padding-bottom:calc(var(--fab-size) * 2 + var(--fab-gap))}}


/* ===== Mobile / tablet menu (below 1200px): full-screen sheet, brand row, accordion "More", call + WhatsApp ===== */
.gvr-menu-cta{display:none!important}
@media (max-width:1199.98px){
  html.has-modal-open .fab,html.has-modal-open #rapidchat-widget{display:none!important}
  html[data-theme] .main-nav .wp-block-navigation__responsive-container.is-menu-open{padding:0!important;background:var(--bg)!important;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-close{max-width:none;margin:0;width:100%;min-height:100%;display:flex;box-sizing:border-box}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-dialog{position:relative;width:100%;max-width:640px;margin-inline:auto;min-height:100%;display:flex;flex-direction:column;box-sizing:border-box;padding:0 20px max(28px,env(safe-area-inset-bottom))}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-dialog::before{content:"GVR Groups";flex:none;display:flex;align-items:center;height:76px;padding-left:58px;background:url(../img/gvr-mark.png) left center/52px no-repeat;font-family:var(--font-display);font-weight:650;font-stretch:112%;font-size:1.2rem;letter-spacing:-.02em;color:var(--logo-blue)}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-container-close{position:absolute;top:15px;right:20px;width:46px;height:46px;padding:0;margin:0;border-radius:50%;display:grid;place-items:center;background:rgba(128,128,128,.14);color:var(--text)}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-container-close svg{width:22px;height:22px}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__responsive-container-content{flex:1 1 auto;display:flex;flex-direction:column;align-items:stretch;width:100%;padding:0!important;overflow:visible}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__container{flex:1 1 auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:0;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-item{display:block;position:relative;width:100%}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-item__content{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;width:100%;min-height:58px;padding:0 .25rem;border:0;border-bottom:1px solid var(--stroke);border-radius:0;background:none;box-shadow:none;opacity:1;color:var(--text);font-family:var(--font-display);font-size:1.3rem;font-weight:560;letter-spacing:-.015em;text-align:left;line-height:1.2}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-item__content::after{display:none}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-item__content:hover,
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-item__content:active{background:rgba(51,204,255,.1);color:var(--text)}
  html[data-theme] .main-nav .is-menu-open a:focus:not(:focus-visible),html[data-theme] .main-nav .is-menu-open button:focus:not(:focus-visible){outline:0}
  html[data-theme] .main-nav .is-menu-open :is(a,button):focus-visible{outline:2px solid var(--cyan);outline-offset:-2px;border-radius:10px}
  /* More: accordion */
  html[data-theme] .main-nav .is-menu-open .has-child{display:block}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation-submenu__toggle{width:100%!important;height:auto!important;min-height:58px;padding:0 .25rem!important;cursor:pointer}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__submenu-icon{position:absolute;right:.35rem;top:0;height:58px;display:grid;place-items:center;pointer-events:none;color:var(--muted)}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__submenu-icon svg{width:16px!important;height:16px!important;transition:transform .25s}
  html[data-theme] .main-nav .is-menu-open .has-child.gvr-open>.wp-block-navigation__submenu-icon svg{transform:rotate(180deg)}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__submenu-container{display:none;position:static;width:100%;min-width:0;height:auto;opacity:1;visibility:visible;margin:0;padding:6px 0 10px 4px!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
  html[data-theme] .main-nav .is-menu-open .has-child.gvr-open>.wp-block-navigation__submenu-container{display:flex;flex-direction:column}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{min-height:52px;font-family:var(--font-body);font-size:1.05rem;font-weight:500;letter-spacing:0;border-bottom:0;border-radius:12px;padding:0 .6rem}
  html[data-theme] .main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before{color:var(--brand);font-size:1.2rem}
  /* Call + WhatsApp pinned under the list */
  html[data-theme] .main-nav .is-menu-open .gvr-menu-cta{display:block!important}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-call{margin-top:auto;padding-top:28px}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-wa{margin-top:10px}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-cta>.wp-block-navigation-item__content{justify-content:center;min-height:56px;border:1px solid var(--stroke-hi);border-radius:999px;font-family:var(--font-body);font-size:1.05rem;font-weight:600;letter-spacing:0}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-cta>.wp-block-navigation-item__content::before{font-family:"bootstrap-icons";font-weight:400;font-size:1.2rem;line-height:1}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-call>.wp-block-navigation-item__content{background:var(--brand);border-color:var(--brand);color:#fff}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-call>.wp-block-navigation-item__content::before{content:"\f5c1"}
  html[data-theme] .main-nav .is-menu-open .gvr-menu-wa>.wp-block-navigation-item__content::before{content:"\f618";color:#1da851}
}

/* ===== Phone: keep the pinned 3D section copy clear of the floating buttons ===== */
@media (max-width:575.98px){
  html[data-theme] .h3d-copy{padding-right:calc(var(--fab-size) + var(--fab-edge) + 6px)}
}

/* ===== Phone: remaining small links (breadcrumbs, footer lists) get a 44px touch row ===== */
@media (max-width:575.98px){
  html[data-theme] .gvr-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;padding-inline:.15rem}
  html[data-theme] .gvr-breadcrumb{row-gap:0}
  html[data-theme] .site-footer :is(li,p)>a{display:inline-flex;align-items:center;min-height:44px}
  html[data-theme] .site-footer li{margin:0}
  html[data-theme] .site-footer .copyright a{min-height:0;display:inline}
}
@media (max-width:575.98px){
  html[data-theme] .breadcrumb{align-items:center;margin-bottom:0}
  html[data-theme] .breadcrumb-item a{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
  html[data-theme] .site-footer :is(li,p)>a{min-width:44px}
}
@media (max-width:575.98px){html[data-theme] .breadcrumb-item{display:flex;align-items:center}html[data-theme] .breadcrumb-item+.breadcrumb-item::before{line-height:1;float:none}}

/* Dark mode: a blurred header becomes the containing block for the fixed menu sheet and traps it
   inside the header bar. Drop the effects on every header ancestor while the menu is open. */
@media (max-width:1199.98px){
  html.has-modal-open :is(.site-header,.site-header .container,.nav-shell,.main-nav,.header-actions){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important;transform:none!important;will-change:auto!important;contain:none!important;perspective:none!important}
}
