/* ===========================================================================
   BOREON — site.css  ·  monochrome pane-of-glass design system
   Mobile-first. Tested target: iOS Safari + Android Chrome. Soli Deo Gloria ✝
   =========================================================================== */
:root{
  --b-black:#000;--b-ink:#0A0A0B;--b-surface:#111114;--b-surface-2:#17181C;
  --b-graphite:#2A2C31;--b-steel:#4A4D54;--b-gray:#6B6E73;--b-silver:#A7ABB2;
  --b-mist:#D7DADF;--b-offwhite:#F6F7F8;--b-white:#FFF;
  --bg:var(--b-ink);--bg-elev:var(--b-surface);--fg:var(--b-white);
  --fg-muted:var(--b-silver);--fg-subtle:var(--b-gray);
  --line:rgba(255,255,255,.10);--line-strong:rgba(255,255,255,.18);
  --glass-bg:rgba(255,255,255,.06);--glass-bg-2:rgba(255,255,255,.10);
  --glass-border:rgba(255,255,255,.16);--glass-blur:18px;
  --grad-ink:linear-gradient(160deg,#17181C 0%,#0A0A0B 60%,#000 100%);
  --grad-steel:linear-gradient(135deg,#4A4D54 0%,#17181C 100%);
  --grad-sheen:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.35) 50%,rgba(255,255,255,0) 70%);
  --grad-radial:radial-gradient(60% 60% at 50% 0%,rgba(255,255,255,.10),rgba(255,255,255,0) 70%);
  --font-display:"Saira","Rajdhani","Segoe UI",system-ui,sans-serif;
  --font-body:"Inter",-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --r-sm:8px;--r-md:14px;--r-lg:22px;--r-xl:32px;--r-pill:999px;
  --shadow-md:0 8px 24px rgba(0,0,0,.45);--shadow-lg:0 24px 60px rgba(0,0,0,.55);
  --shadow-glass:0 8px 32px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.18);
  --glow:0 0 40px rgba(255,255,255,.10);
  --ease-out:cubic-bezier(.22,1,.36,1);--dur-fast:140ms;--dur-base:260ms;--dur-slow:520ms;
  --container:1200px;--container-wide:1440px;--gutter:clamp(16px,4vw,48px);
  /* accent layer — mono by default; color themes override (see THEMES.md) */
  --accent:var(--b-white);--accent-strong:var(--b-mist);--accent-contrast:var(--b-black);
  --accent-soft:rgba(255,255,255,.08);--accent-glow:rgba(255,255,255,.12);
}
[data-theme="light"]{
  --bg:var(--b-white);--bg-elev:var(--b-offwhite);--fg:var(--b-black);
  --fg-muted:var(--b-steel);--fg-subtle:var(--b-gray);
  --line:rgba(0,0,0,.10);--line-strong:rgba(0,0,0,.18);
  --glass-bg:rgba(255,255,255,.6);--glass-bg-2:rgba(255,255,255,.75);--glass-border:rgba(0,0,0,.10);
  --accent:var(--b-ink);--accent-strong:var(--b-steel);--accent-contrast:var(--b-white);
  --accent-soft:rgba(0,0,0,.08);--accent-glow:rgba(0,0,0,.12);
}

/* ============ COLOR THEMES (dark base + living accent) — THEMES.md ============ */
[data-theme="cerulean"]{--accent:#29A9E0;--accent-strong:#1B86B8;--accent-contrast:#04141d;
  --accent-soft:rgba(41,169,224,.14);--accent-glow:rgba(41,169,224,.45)}
[data-theme="green"]{--accent:#22A95C;--accent-strong:#15813F;--accent-contrast:#03140a;
  --accent-soft:rgba(34,169,92,.14);--accent-glow:rgba(34,169,92,.42)}
[data-theme="rose"]{--accent:#F0466C;--accent-strong:#CC2A4F;--accent-contrast:#ffffff;
  --accent-soft:rgba(240,70,108,.14);--accent-glow:rgba(240,70,108,.42)}
[data-theme="lemon"]{--accent:#F2C744;--accent-strong:#C99B12;--accent-contrast:#1a1403;
  --accent-soft:rgba(242,199,68,.16);--accent-glow:rgba(242,199,68,.40)}
/* CSS-master "AIC" palette set — 6 more colour themes (dark base + living accent) */
[data-theme="aic-base"]{--accent:#2e5bff;--accent-strong:#6f3de8;--accent-contrast:#ffffff;
  --accent-soft:rgba(46,91,255,.16);--accent-glow:rgba(46,91,255,.45)}
[data-theme="aic-green"]{--accent:#16a34a;--accent-strong:#0f7c39;--accent-contrast:#ffffff;
  --accent-soft:rgba(22,163,74,.16);--accent-glow:rgba(22,163,74,.42)}
[data-theme="aic-rose"]{--accent:#e11d48;--accent-strong:#b71539;--accent-contrast:#ffffff;
  --accent-soft:rgba(225,29,72,.16);--accent-glow:rgba(225,29,72,.42)}
[data-theme="aic-lemon"]{--accent:#f5c400;--accent-strong:#c79e00;--accent-contrast:#1a1403;
  --accent-soft:rgba(245,196,0,.18);--accent-glow:rgba(245,196,0,.42)}
[data-theme="aic-blue"]{--accent:#0ea5e9;--accent-strong:#0784bd;--accent-contrast:#04141d;
  --accent-soft:rgba(14,165,233,.16);--accent-glow:rgba(14,165,233,.45)}
[data-theme="aic-dark"]{--accent:#22b6f0;--accent-strong:#1490c4;--accent-contrast:#04141d;
  --accent-soft:rgba(34,182,240,.16);--accent-glow:rgba(34,182,240,.45)}

/* accent applied ONLY when a color theme is active — B&W stays untouched */
.theme-color .eyebrow{color:var(--accent)}
.theme-color #themeBtn{color:var(--accent)}
.theme-color .btn--primary{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}
.theme-color .btn--primary:hover{box-shadow:0 0 42px var(--accent-glow),var(--shadow-md)}
.theme-color .btn--ghost:hover{border-color:var(--accent)}
.theme-color nav.primary a:hover,.theme-color nav.primary a.active{color:var(--accent)}
.theme-color nav.primary a:hover::after,.theme-color nav.primary a.active::after{background:var(--accent)}
.theme-color .card .link{color:var(--accent)}
/* LinkedIn mark on the leadership cards: quiet until the card is hovered */
.li-mark{display:block;margin:14px auto 0;width:20px;height:20px;fill:var(--fg-subtle);transition:fill .2s ease}
a.card:hover .li-mark,a.card:focus-visible .li-mark{fill:var(--fg)}
.theme-color a.card:hover .li-mark,.theme-color a.card:focus-visible .li-mark{fill:var(--accent)}
.theme-color .card:hover{border-color:var(--accent-soft)}
.theme-color .eco .ext{color:var(--accent)}
.theme-color a:focus-visible,.theme-color button:focus-visible,
.theme-color .btn:focus-visible,.theme-color summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.theme-color #glow{background:radial-gradient(circle,var(--accent-glow),transparent 60%)}
.theme-color ::selection{background:var(--accent);color:var(--accent-contrast)}
/* PHOTOS COME ALIVE in color themes (logos stay mono silhouettes) */
.theme-color .team-card img{filter:saturate(1.06) contrast(1.03)}
.theme-color .prose img,.theme-color .prose figure img{filter:saturate(1.05) contrast(1.02)}
/* photos greyscaled via inline style (work, servers, post hero, leadership) come alive too */
.theme-color [style*="grayscale"]{filter:saturate(1.05) contrast(1.03)!important}

/* ===================== THEME PICKER (donut popover) ===================== */
.theme-wrap{position:relative}
.theme-pop{position:absolute;top:calc(100% + 14px);right:0;z-index:120;width:240px;padding:18px 18px 16px;
  background:var(--glass-bg-2);backdrop-filter:blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(140%);
  border:1px solid var(--glass-border);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  opacity:0;transform:translateY(-8px) scale(.96);transform-origin:top right;
  transition:opacity .2s var(--ease-out),transform .2s var(--ease-out)}
.theme-pop.open{opacity:1;transform:none}
.theme-pop[hidden]{display:none}
.tp-title{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.16em;
  font-size:.7rem;color:var(--fg-muted);text-align:center;margin-bottom:12px}
.theme-donut{display:block;margin:0 auto;width:190px;height:190px;filter:drop-shadow(0 8px 22px rgba(0,0,0,.4))}
.theme-slice{cursor:pointer;stroke:var(--bg-elev);stroke-width:1.5;
  transition:transform .18s var(--ease-out),filter .18s var(--ease-out);transform-origin:100px 100px}
.theme-slice:hover{filter:brightness(1.14);transform:scale(1.04)}
.theme-slice:focus-visible{outline:none;filter:brightness(1.22)}
.theme-slice.sel{stroke:var(--fg);stroke-width:3.5}
.tp-center{font-family:var(--font-display);font-weight:700;letter-spacing:.02em;pointer-events:none}
.tp-hint{margin-top:12px;text-align:center;font-size:.7rem;color:var(--fg-subtle);
  font-family:var(--font-mono);letter-spacing:.03em}

/* ===================== TabTotal GRC nav + mega-menu ===================== */
.tm-sup{font-size:.58em;vertical-align:super;color:var(--fg-muted);margin-left:1px}
nav.primary a.tt-nav{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--fg)}
nav.primary a.tt-nav::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 10px var(--accent-glow);flex-shrink:0}
nav.primary a.tt-nav .caret{font-size:.7em;color:var(--fg-muted);transition:transform var(--dur-fast)}
.nav-mega{position:relative;display:inline-block}
.nav-mega:hover .caret,.nav-mega:focus-within .caret{transform:rotate(180deg)}
.mega{position:absolute;top:calc(100% + 16px);left:0;z-index:130;width:min(660px,86vw);padding:16px;
  display:grid;gap:12px;border-radius:var(--r-lg);
  background:var(--glass-bg-2);backdrop-filter:blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(140%);
  border:1px solid var(--glass-border);box-shadow:var(--shadow-lg);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .2s var(--ease-out),transform .2s var(--ease-out),visibility .2s}
.nav-mega:hover .mega,.nav-mega:focus-within .mega{opacity:1;visibility:visible;transform:none}
.mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mega-item{display:flex;gap:12px;align-items:center;padding:11px;border-radius:var(--r-md);
  transition:background var(--dur-fast)}
.mega-item:hover{background:var(--glass-bg)}
.mega-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--accent);
  background:var(--glass-bg);border:1px solid var(--glass-border);flex-shrink:0}
.mega-ico svg{width:20px;height:20px}
.mega-tx{display:flex;flex-direction:column;line-height:1.25}
.mega-tx b{font-family:var(--font-display);font-size:.95rem;letter-spacing:.01em}
.mega-tx small{color:var(--fg-muted);font-size:.75rem}
/* GRC mega — three pillar columns (Govern · Risk · Comply) */
.pill-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 10px var(--accent-glow);flex-shrink:0;display:inline-block}
.mega.mega-grc{width:min(900px,94vw)}
.mega-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 16px}
.mega-col{display:flex;flex-direction:column;gap:2px}
.mega-col-head{display:flex;align-items:center;gap:8px;font-family:var(--font-display);
  text-transform:uppercase;letter-spacing:.14em;font-size:.66rem;font-weight:700;
  color:var(--fg-muted);padding:4px 8px 8px}
.mega-col .mega-item{padding:9px 8px}
.mega-foot{display:flex;gap:20px;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--line)}
.mega-foot a{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;
  color:var(--accent);font-weight:600}
.drawer a.tt-nav{display:inline-flex;align-items:center;gap:8px;color:var(--fg)}
.drawer a.tt-nav::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.drawer a.drawer-sub{font-size:.95rem;opacity:.66;padding-left:18px}
@media (max-width:1080px){ .nav-mega .mega{display:none!important} }
@media (prefers-reduced-motion:reduce){
  :root{--dur-fast:0ms;--dur-base:0ms;--dur-slow:0ms}
  html{scroll-behavior:auto}
  .sheen,.cta-band::before,.marquee .track{animation:none!important}
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
/* No grey/blue tap-flash on any interactive element (mobile + trackpad) */
a,button,.btn,.icon-btn,.card,[role=button],summary,label{-webkit-tap-highlight-color:transparent}
body{
  font-family:var(--font-body);color:var(--fg);background:var(--bg);line-height:1.55;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  /* iOS safe areas */
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body::before{content:"";position:fixed;inset:0;z-index:-2;background:var(--grad-ink)}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--container);margin:0 auto;padding-inline:var(--gutter)}
.wide{max-width:var(--container-wide)}
section{padding-block:clamp(56px,9vw,128px);position:relative}
.eyebrow{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.12em;
  font-size:.8125rem;color:var(--fg-muted);font-weight:600;margin-bottom:12px}
h1,h2,h3,h4{font-family:var(--font-display);line-height:1.05;font-weight:700;letter-spacing:.04em}
h2{font-size:clamp(1.9rem,5vw,3.25rem);margin-bottom:16px}
h3{font-size:clamp(1.15rem,3vw,1.625rem)}
p.lead{color:var(--fg-muted);font-size:clamp(1rem,2.4vw,1.25rem);max-width:62ch}
.scripture{font-family:var(--font-display);font-style:italic;color:var(--fg-muted);
  letter-spacing:.02em;font-size:clamp(1.05rem,2.6vw,1.45rem);line-height:1.4}
.scripture cite{display:block;font-style:normal;font-size:.8em;color:var(--fg-subtle);margin-top:8px;letter-spacing:.1em;text-transform:uppercase}

/* glass */
.glass{background:var(--glass-bg);backdrop-filter:blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(120%);
  border:1px solid var(--glass-border);border-radius:var(--r-lg);box-shadow:var(--shadow-glass)}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){.glass{background:var(--b-surface)}}

/* header */
header.site{position:sticky;top:0;z-index:100;padding-block:14px;transition:padding var(--dur-base)}
header.site .bar{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;
  padding:12px 18px;border-radius:var(--r-pill);border:1px solid transparent;transition:all var(--dur-base)}
.brand{justify-self:start}
.header-actions{justify-self:end}
/* Scrolled-header frost lives on a pseudo-element, NOT on .bar itself, so the
   mega-menu / theme popdowns (children of .bar) are never nested inside a
   backdrop-filtered ancestor — nested backdrop-filters cancel out and the
   popdowns would otherwise lose their frost the moment the header scrolls. */
header.site .bar::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  opacity:0;transition:opacity var(--dur-base);
  background:var(--glass-bg);backdrop-filter:blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(120%);
  border:1px solid var(--glass-border);box-shadow:var(--shadow-md)}
header.site.scrolled .bar::before{opacity:1}
.brand img{height:22px;display:block}
nav.primary{display:flex;gap:22px;align-items:center}
nav.primary a{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.08em;
  font-size:.8125rem;font-weight:600;color:var(--fg-muted);position:relative;padding-block:4px;transition:color var(--dur-fast)}
nav.primary a::after{content:"";position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--fg);transition:width var(--dur-base)}
nav.primary a:hover,nav.primary a.active{color:var(--fg)}
nav.primary a:hover::after,nav.primary a.active::after{width:100%}
.header-actions{display:flex;align-items:center;gap:12px}
.icon-btn{background:none;border:none;color:var(--fg-muted);cursor:pointer;font-size:20px;
  padding:8px;border-radius:var(--r-sm);min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
  touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  transition:color var(--dur-fast),transform var(--dur-fast) var(--ease-out)}
.icon-btn:hover{color:var(--fg)}
.icon-btn:active{transform:scale(.9);transition-duration:70ms}
.menu-toggle{display:none}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-family:var(--font-display);
  text-transform:uppercase;letter-spacing:.12em;font-size:.8125rem;font-weight:600;line-height:1;white-space:nowrap;
  padding:14px 26px;border-radius:var(--r-pill);border:1px solid transparent;min-height:46px;
  touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
  transition:transform var(--dur-fast) var(--ease-out),box-shadow var(--dur-base),background var(--dur-base),filter var(--dur-fast)}
.btn--primary{background:var(--b-white);color:var(--b-black)}
.btn--primary:hover{transform:translateY(-2px);box-shadow:var(--glow),var(--shadow-md)}
.btn--ghost{background:var(--glass-bg);color:var(--fg);border-color:var(--glass-border)}
.btn--ghost:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:var(--shadow-md)}
/* Tactile press — snaps down quickly, overrides the hover lift (declared after :hover).
   Short, fixed duration so it reads as a real physical press, not a glide. */
.btn:active{transform:translateY(0) scale(.955);filter:brightness(.96);box-shadow:var(--shadow-sm);transition-duration:70ms}
.btn--primary:active{box-shadow:var(--shadow-sm)}
.btn--ghost:active{box-shadow:none;border-color:var(--line-strong)}

/* hero */
.hero{min-height:88vh;display:flex;align-items:center;padding-top:40px}
.hero>.container{width:100%}   /* fill the container on wide screens instead of shrinking to content */
.hero .stage{width:100%;padding:clamp(24px,5vw,72px);position:relative;overflow:hidden}
.hero .stage::before{content:"";position:absolute;inset:0;background:var(--grad-radial);pointer-events:none}
.hero-wordmark{width:min(640px,86%);height:auto;margin-bottom:24px}
.hero-wordmark path{fill:var(--fg)}
.sheen{position:absolute;inset:0;pointer-events:none;mix-blend-mode:overlay;
  background:var(--grad-sheen);background-size:250% 100%;animation:sweep 6s var(--ease-out) infinite}
@keyframes sweep{0%{background-position:200% 0}60%,100%{background-position:-120% 0}}
.hero h1{font-size:clamp(1.4rem,3.4vw,2.25rem);font-weight:600;max-width:26ch;margin-bottom:22px}
.hero h1 em{font-style:italic;color:var(--fg-muted)}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
/* canonical button row — same 12px gap as .hero-cta, site-wide (not just TabTotal) */
.cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hero-meta{margin-top:40px;display:flex;gap:clamp(20px,5vw,48px);flex-wrap:wrap}
.hero-meta .n{font-family:var(--font-display);font-size:clamp(1.5rem,5vw,2.25rem);font-weight:700}
.hero-meta .l{font-size:.8125rem;color:var(--fg-subtle);text-transform:uppercase;letter-spacing:.1em}

/* grids */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{padding:clamp(20px,3vw,32px);position:relative;overflow:hidden;transition:transform var(--dur-base) var(--ease-out),border-color var(--dur-base),box-shadow var(--dur-base) var(--ease-out)}
.card:hover{transform:translateY(-6px);border-color:var(--line-strong);box-shadow:var(--shadow-lg)}
/* clickable cards (those wrapping a link) get a gentle press settle */
a.card:active,.card:has(>a):active{transform:translateY(-2px);transition-duration:90ms}
.card .num{font-family:var(--font-mono);font-size:.8125rem;color:var(--fg-subtle)}
.card h3{margin:12px 0}
.card p{color:var(--fg-muted);font-size:.9375rem}
.card .link{display:inline-block;margin-top:16px;font-family:var(--font-display);font-size:.8125rem;
  text-transform:uppercase;letter-spacing:.1em;color:var(--fg)}
.card .link::after{content:" →"}

/* clients marquee */
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.marquee .track{display:flex;gap:clamp(28px,6vw,64px);width:max-content;align-items:center;animation:scroll 40s linear infinite}
.marquee:hover .track{animation-play-state:paused}
.marquee img{height:38px;width:auto;filter:grayscale(1) brightness(0) invert(1);opacity:.75;transition:opacity var(--dur-fast)}
[data-theme="light"] .marquee img{filter:grayscale(1);opacity:.8}
.marquee img:hover{opacity:1}
@keyframes scroll{to{transform:translateX(-50%)}}

/* client logo grid (static) */
.logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px}
.logo-grid .glass{display:flex;align-items:center;justify-content:center;padding:22px;min-height:96px;background:rgba(255,255,255,0.04)}
.logo-grid img{height:42px;width:auto;max-width:110px;filter:grayscale(1) brightness(0) invert(1);opacity:.85;transition:opacity var(--dur-fast)}
.logo-grid img:hover{opacity:1}
[data-theme="light"] .logo-grid img{filter:grayscale(1) brightness(.2);opacity:.75}

/* team */
.team-card{padding:0;overflow:hidden}
.team-card img{width:100%;aspect-ratio:1/1;object-fit:cover;filter:grayscale(1) contrast(1.02)}

/* media gallery — work / product photos (mono default, alive in colour themes) */
.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;align-items:stretch}
.media-card{overflow:hidden;border-radius:var(--r-md);background:var(--glass-bg);border:1px solid var(--glass-border);
  min-width:0;transition:border-color var(--dur-base),box-shadow var(--dur-base)}
.media-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow-md)}
.media-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;
  filter:grayscale(1) contrast(1.05);transition:transform var(--dur-base) var(--ease-out)}
.media-card:hover img{transform:scale(1.04)}
.media-card figcaption{padding:11px 14px;font-family:var(--font-display);text-transform:uppercase;
  letter-spacing:.05em;font-size:.72rem;color:var(--fg-muted);line-height:1.35}
.theme-color .media-card img{filter:saturate(1.06) contrast(1.04)}
.team-card .body{padding:20px}
.team-card h3{font-size:1.25rem;letter-spacing:0}
.team-card .role{color:var(--fg-muted);font-size:.875rem;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;margin-top:4px}

/* ecosystem cards */
.eco{padding:clamp(22px,3vw,34px);display:flex;flex-direction:column;gap:10px;position:relative;overflow:hidden}
.eco .tag{font-family:var(--font-mono);font-size:.75rem;color:var(--fg-subtle);letter-spacing:.08em}
.eco h3{font-size:1.4rem;letter-spacing:0}
.eco p{color:var(--fg-muted);font-size:.9375rem;flex:1}
.eco .ext{margin-top:8px;font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;font-size:.8125rem}
.eco .ext::after{content:" ↗"}

/* pricing */
.price{padding:clamp(20px,3vw,32px);display:flex;flex-direction:column}
.price.feature{border-color:var(--line-strong);box-shadow:var(--shadow-lg)}
.price .tier{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;color:var(--fg-muted);font-size:.8125rem}
.price .amt{font-family:var(--font-display);font-size:clamp(1.6rem,5vw,2.25rem);font-weight:700;margin:8px 0 12px}
.price ul{list-style:none;display:flex;flex-direction:column;gap:8px;font-size:.9375rem;color:var(--fg-muted)}
.price li::before{content:"—  ";color:var(--fg-subtle)}
.badge{position:absolute;top:16px;right:16px;font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;padding:4px 10px;border-radius:var(--r-pill);background:var(--b-white);color:var(--b-black)}

/* spec table */
.spec{width:100%;border-collapse:collapse;font-family:var(--font-mono);font-size:.85rem}
.spec th,.spec td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}
.spec th{color:var(--fg-subtle);text-transform:uppercase;letter-spacing:.08em;font-size:.7rem}
.spec-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* values */
.values{display:flex;flex-wrap:wrap;gap:12px}
.values .v{padding:12px 20px;border-radius:var(--r-pill);font-family:var(--font-display);
  text-transform:uppercase;letter-spacing:.12em;font-size:.875rem}

/* posts */
.post{padding:20px;display:flex;flex-direction:column;gap:8px;height:100%}
.post .date{font-family:var(--font-mono);font-size:.75rem;color:var(--fg-subtle)}
.post h3{font-size:1.1rem;font-weight:600;letter-spacing:0}
.post p{color:var(--fg-muted);font-size:.9rem}

/* cta band */
.cta-band{padding:clamp(36px,6vw,80px);text-align:center;overflow:hidden;position:relative}
.cta-band::before{content:"";position:absolute;inset:0;background:var(--grad-sheen);background-size:250% 100%;animation:sweep 7s var(--ease-out) infinite;mix-blend-mode:overlay}
.cta-band h2{font-size:clamp(1.7rem,4vw,3.25rem)}
.cta-band .btn{position:relative}

/* split panel (AI Church promo on home + /ai) */
.split-panel{overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr;gap:0}
.split-panel--rev{grid-template-columns:.9fr 1.1fr}
.split-copy{padding:clamp(28px,4vw,48px)}
.split-img{position:relative;min-height:280px}
@media (max-width:760px){
  .split-panel,.split-panel--rev{grid-template-columns:1fr}
  .split-panel--rev .split-img{order:-1}
  .split-img{min-height:220px}
}

/* faith blocks */
.faith-hero{text-align:center;padding:clamp(40px,7vw,96px) clamp(20px,5vw,64px)}
.faith-verse{max-width:48ch;margin:0 auto}

/* forms (contact / portal / admin) */
.form{display:flex;flex-direction:column;gap:16px;max-width:560px}
.form label{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;font-size:.75rem;color:var(--fg-muted)}
.field{display:flex;flex-direction:column;gap:6px}
.input,textarea.input,select.input{font-family:var(--font-body);font-size:1rem;color:var(--fg);
  background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:var(--r-md);
  padding:13px 15px;min-height:46px;width:100%}
.input:focus{outline:2px solid var(--line-strong);outline-offset:1px}
textarea.input{min-height:140px;resize:vertical}
.alert{padding:12px 16px;border-radius:var(--r-md);border:1px solid var(--glass-border);background:var(--glass-bg);font-size:.9rem}
.alert.err{border-color:var(--line-strong);border-left:3px solid var(--b-steel)}
.alert.err::before{content:"✕  "}
.alert.ok{border-color:var(--line-strong);border-left:3px solid var(--b-white)}
.alert.ok::before{content:"✓  "}

/* admin / portal layout */
.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.app-side{border-right:1px solid var(--line);padding:24px 18px;position:sticky;top:0;height:100vh;overflow:auto}
.app-side a{display:block;padding:11px 12px;border-radius:var(--r-sm);color:var(--fg-muted);font-size:.9rem;margin-bottom:4px}
.app-side a:hover,.app-side a.active{background:var(--glass-bg);color:var(--fg)}
.app-main{padding:clamp(20px,4vw,40px)}
.table{width:100%;border-collapse:collapse;font-size:.9rem}
.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}
.table th{color:var(--fg-subtle);text-transform:uppercase;font-size:.7rem;letter-spacing:.08em}

/* footer */
footer.site{padding-block:clamp(56px,9vw,96px) 28px;border-top:1px solid var(--line);margin-top:64px}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:clamp(24px,4vw,48px);margin-bottom:40px}
footer.site .fmark{height:26px;margin-bottom:16px}
footer.site h4{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.1em;font-size:.75rem;color:var(--fg-subtle);margin-bottom:14px}
footer.site ul{list-style:none;display:flex;flex-direction:column;gap:10px}
footer.site a{color:var(--fg-muted);font-size:.9rem}
footer.site a:hover{color:var(--fg)}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
  padding-top:24px;border-top:1px solid var(--line);color:var(--fg-subtle);font-size:.8125rem}
.faith-line{font-family:var(--font-display);letter-spacing:.1em}

/* reveal — content is visible by default; the hidden/animated state only applies
   once JS confirms it can reveal (html.reveal-on). If JS never runs, content stays
   fully visible instead of a blank page. */
.reveal-on [data-reveal]{opacity:0;transform:translateY(24px);transition:opacity var(--dur-slow) var(--ease-out),transform var(--dur-slow) var(--ease-out)}
.reveal-on [data-reveal].in{opacity:1;transform:none}
/* Cards that are also reveal targets: beat the reveal rule's transition (0,3,0 > 0,2,0)
   so the hover lift, shadow and border all glide at the snappy base speed — while still
   including opacity/transform so the entrance fade-in stays smooth. */
.reveal-on [data-reveal].card{transition:transform var(--dur-base) var(--ease-out),border-color var(--dur-base),box-shadow var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out)}

/* drawer */
.drawer{display:none;position:fixed;inset:0;z-index:1000;flex-direction:column;gap:4px;align-items:center;justify-content:center;
  background:rgba(8,8,10,.92);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
.drawer a{font-family:var(--font-display);text-transform:uppercase;letter-spacing:.12em;font-size:1.4rem;color:var(--fg);
  padding:12px 28px;min-height:44px;display:flex;align-items:center}
.drawer .close{position:absolute;top:max(24px,env(safe-area-inset-top));right:24px;min-width:44px;min-height:44px}
.drawer.open{display:flex}

/* glow */
#glow{position:fixed;width:60vmax;height:60vmax;left:0;top:0;z-index:-1;pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.07),rgba(255,255,255,0) 60%);
  transform:translate3d(-50%,-50%,0);will-change:transform}

/* ============ responsive ============ */
@media (max-width:1024px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .app-shell{grid-template-columns:1fr}
  .app-side{position:static;height:auto;border-right:none;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:6px}
  .app-side a{margin:0}
}
/* Header collapses to the hamburger across the whole tablet band: with this many
   nav items the desktop nav only fits comfortably above ~1080px, so below that we
   show the drawer rather than let the nav wrap to two lines / overflow the viewport. */
@media (max-width:1080px){
  header.site{padding-block:10px}
  header.site .bar{grid-template-columns:auto 1fr;gap:12px;padding:8px 14px}
  nav.primary{display:none}
  .brand{grid-column:1;justify-self:start}
  .header-actions{grid-column:2;justify-self:end;gap:4px}
  .header-actions .btn{display:none}
  .menu-toggle{display:inline-flex}
}
@media (max-width:760px){

  /* Comfortable, uniform tap targets on phones; slightly smaller, tighter type
     so long uppercase labels stay on one line inside the button. */
  .btn{min-height:50px;padding:15px 22px;font-size:.75rem;letter-spacing:.06em}
  .icon-btn{min-width:48px;min-height:48px}

  /* Grid stacking */
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr}

  /* Hero — compact, no overflow */
  .hero{min-height:auto;padding-block:clamp(32px,6vw,56px)}
  .hero .stage{padding:clamp(20px,5vw,36px)}
  .hero h1{font-size:clamp(1.3rem,6vw,2rem);max-width:100%}
  /* Every CTA row stacks to full-width buttons with one consistent gap —
     guarantees each button gets the full content width and never overflows. */
  .hero-cta,.cta-row{flex-direction:column;align-items:stretch;gap:10px}
  .hero-cta .btn,.cta-row .btn{width:100%;justify-content:center}
  .hero-meta{margin-top:28px;gap:clamp(14px,4vw,28px)}

  /* Sections — tighter vertical rhythm */
  section{padding-block:clamp(36px,7vw,72px)}

  /* Glass cards — ensure no side overflow */
  .glass.stage,.glass.card{padding:clamp(18px,5vw,32px)}

  /* Footer */
  .foot-grid{grid-template-columns:1fr 1fr}
  .fmark{height:18px}

  /* Post cards — text padding */
  .glass.post > div{padding:16px 18px}
}
@media (max-width:460px){
  .media-grid{grid-template-columns:1fr}
}
@media (max-width:420px){
  .foot-grid{grid-template-columns:1fr}
  .hero-meta{gap:14px;flex-wrap:wrap}
  .hero-meta .n{font-size:clamp(1.3rem,7vw,1.8rem)}
  header.site .bar{padding:8px 10px}
}
/* touch devices — no sticky hover, only the physical :active press */
@media (hover:none){
  nav.primary a,.btn,.icon-btn{-webkit-tap-highlight-color:transparent}
  .btn:hover,.btn--primary:hover,.btn--ghost:hover{transform:none;box-shadow:none}
  .card:hover,.eco:hover{transform:none}
}

/* keyboard focus — WCAG 2.4.7 (applies only to keyboard nav, not mouse) */
a:focus-visible,.btn:focus-visible,.icon-btn:focus-visible,button:focus-visible,
nav.primary a:focus-visible,.drawer a:focus-visible,.eco:focus-visible,
footer a:focus-visible,.card .link:focus-visible,.app-side a:focus-visible{
  outline:2px solid var(--fg);outline-offset:3px;border-radius:2px}
.input:focus-visible{outline:2px solid var(--line-strong);outline-offset:1px}

/* watermark overlay helper */
.wm{position:relative}
.wm::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:url('../img/logo/watermark/boreon-watermark-white-18.png') bottom right / 160px auto no-repeat;
  opacity:.55}

/* ── Post / Work prose body ─────────────────────────────────────────────── */
.prose{font-size:clamp(1rem,1.8vw,1.125rem);line-height:1.75;color:var(--fg)}
.prose h2,.prose h3,.prose h4{margin-top:2em;margin-bottom:.6em;color:var(--fg)}
.prose p{margin-bottom:1.2em}
.prose ul,.prose ol{padding-left:1.5em;margin-bottom:1.2em}
.prose li{margin-bottom:.45em;color:var(--fg-muted)}
.prose figure{margin:2em 0}
.prose figure img{width:100%;height:auto;border-radius:var(--r-md);display:block}
.prose figure figcaption{font-size:.8rem;color:var(--fg-subtle);margin-top:8px;text-align:center;font-family:var(--font-mono)}
/* Images inside prose that aren't in a figure (old WP content) */
.prose img{max-width:100%;height:auto;border-radius:var(--r-md);margin:1.5em auto;display:block}
.prose strong{color:var(--fg);font-weight:600}
.prose a{color:var(--fg);text-decoration:underline;text-underline-offset:3px;opacity:.85}
.prose a:hover{opacity:1}
@media(max-width:600px){
  .prose figure,.prose img{margin-inline:-4px}
}

/* ── Partner logo grid (About / Services partner section) ───────────────── */
.logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.logo-grid .glass{display:flex;align-items:center;justify-content:center;
  padding:clamp(14px,2.5vw,24px);min-height:88px}
.logo-grid img{height:38px;width:auto;max-width:110px;object-fit:contain;
  filter:grayscale(1) brightness(0) invert(1);opacity:.82;transition:opacity var(--dur-fast)}
[data-theme="light"] .logo-grid img{filter:grayscale(1) brightness(0);opacity:.7}
.logo-grid img:hover{opacity:1}
@media(max-width:480px){
  .logo-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
  .logo-grid .glass{min-height:72px;padding:12px}
  .logo-grid img{height:30px;max-width:90px}
}

/* ============ LARGE DESKTOP / 4K / 8K — scale the whole design out to fill the screen ============
   Mirrors freechms (CSS-MASTER): lift the root font-size so all rem type + clamp() maxima grow,
   AND widen the px container so content fills the dead space instead of stranding it in margins.
   Entry point is 1600px so it also catches a 4K running at 200% scaling (≈1920 CSS px) and large
   desktops. Below 1600px (laptops, tablets, phones) nothing changes.
   Built so Joe can keep building as his eyesight fails — bigger, fuller, legible on huge displays. */
@media (min-width:1600px){
  :root{ font-size:105%; --container:1480px; --container-wide:1680px; --gutter:clamp(40px,4vw,64px); }
  .hero-wordmark{width:min(720px,62%)}
  .hero h1{max-width:30ch} p.lead{max-width:70ch}
}
@media (min-width:2200px){
  :root{ font-size:112.5%; --container:2000px; --container-wide:2240px; --gutter:clamp(48px,4vw,80px); }
  .hero-wordmark{width:min(860px,60%)}
  .hero h1{max-width:32ch} p.lead{max-width:76ch}
}
@media (min-width:3200px){ /* 4K territory (native, 100% scaling) */
  :root{ font-size:125%; --container:2960px; --container-wide:3200px; --gutter:clamp(64px,4vw,120px); }
  .hero-wordmark{width:min(1080px,58%)}
  .hero h1{max-width:34ch} p.lead{max-width:82ch}
}
@media (min-width:5000px){ /* 8K territory */
  :root{ font-size:150%; --container:4400px; --container-wide:4720px; --gutter:clamp(96px,4vw,180px); }
}

/* Boreon ecosystem: 5 cards, flex-centered so the last row never orphans/chops */
.eco-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;max-width:1080px;margin:40px auto 0}
.eco-grid .eco{flex:1 1 270px;max-width:330px;min-width:0}
/* internal cards use a forward arrow instead of the external ↗ */
.eco-int .ext::after{content:" →"}

/* Very small phones: tighten EVERY button so the longest labels
   (e.g. "Swiss Sovereign Data Backup 🇨🇭") stay on one tidy, padded line. */
@media (max-width:400px){
  .btn{letter-spacing:.03em;padding-left:16px;padding-right:16px;gap:6px;font-size:.72rem}
}

/* "Five practices" — flex-centered so 5 cards lay out 3 + 2 centered (never orphan/chop) */
.cap-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px;margin-top:40px}
.cap-grid .card{flex:1 1 300px;max-width:368px;min-width:0}
/* brushed Snowflake mark on the migration card (theme-safe: silver on dark, ink on light) */
.cap-snowflake .cap-logo{height:24px;width:auto;display:block;margin:12px 0 2px;
  filter:grayscale(1) brightness(0) invert(.92) drop-shadow(0 1px 1px rgba(0,0,0,.35));opacity:.92}
[data-theme="light"] .cap-snowflake .cap-logo{filter:grayscale(1) brightness(0);opacity:.8}
.theme-color .cap-snowflake{border-color:var(--accent-soft)}

/* ============================================================================
   Large-screen / 4K centring. On big displays the wide container is great for
   card grids but left-aligned heroes + section intros stranded with a huge empty
   right side. Here we centre-justify the punchy content and grow the few hard
   px caps so nothing sits small-and-left in a wide column. Soli Deo Gloria ✝
   ============================================================================ */
@media (min-width:1600px){
  /* Heroes — centre the wordmark / headline / lead / CTAs / stats */
  .hero .stage{text-align:center}
  .hero-wordmark{margin-inline:auto}
  .hero h1{margin-inline:auto}
  .hero .lead,.hero p.lead{margin-inline:auto}
  .hero-cta,.hero-meta{justify-content:center}
  /* Standard section intros (eyebrow + h2 + lead as direct children of the
     section container) centre above their grids. Nested heads (.tt-head,
     .split-copy, .grc-fw-head, card bodies) are untouched. */
  section > .container > .eyebrow,
  section > .container > h2,
  section > .container > .lead,
  section > .container.wide > .eyebrow,
  section > .container.wide > h2,
  section > .container.wide > .lead{text-align:center}
  section > .container > .lead,
  section > .container.wide > .lead{margin-inline:auto}
  /* Stranded layout caps grow so they fill the wide column, centred */
  .eco-grid{max-width:1340px}
  .cap-grid .card{max-width:430px}
}
@media (min-width:2200px){
  .eco-grid{max-width:1760px}
  .cap-grid .card{max-width:520px}
}
@media (min-width:3200px){
  .eco-grid{max-width:2560px}
  .cap-grid .card{max-width:620px}
}

/* ── Legal pages (Privacy / Terms): keep every cell + token inside the card ──
   The 3-column data tables can't shrink to fit a phone-width card, so on small
   screens we stack each row into a padded, bordered block (first cell as title).
   Long tokens (emails, code) break instead of overspilling. */
.legal{overflow-wrap:break-word}
.legal td,.legal th,.legal code{overflow-wrap:anywhere}
.legal table{max-width:100%}
@media (max-width:560px){
  .legal table,.legal tbody,.legal tr,.legal td{display:block;width:auto}
  .legal thead{display:none}
  .legal tr{border:1px solid var(--line)!important;border-radius:10px;padding:10px 14px;margin:12px 0}
  .legal td{border:none!important;padding:4px 0!important}
  .legal td:first-child{font-weight:700;color:var(--fg);font-size:.98rem;margin-bottom:2px}
}
