/* ==========================================================================
   Himalayan Haze — shared design system
   Every page links this one file. Edit here to restyle the whole site.
   ========================================================================== */

:root{
  --bg:#050a10;
  --bg-alt:#08111a;
  --surface:#0c1620;
  --surface-2:#111e2b;
  --border:#1c2c3d;
  --border-soft:#152230;
  --text:#eaf4fb;
  --text-muted:#9eb8d0;
  --text-faint:#7390a8;
  --accent:#7fe0ff;
  --accent-soft:#bdf1ff;
  --accent-dim:#2a7896;
  --accent-glow:rgba(127,224,255,0.28);
  --surface-glow:rgba(127,224,255,0.05);
  --radius-sm:6px;
  --radius-md:10px;
  --maxw:1180px;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Montserrat','Segoe UI',system-ui,sans-serif;
  font-weight:400;
  line-height:1.65;
  letter-spacing:0.012em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
}

a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img,svg{display:block; max-width:100%;}
button, input, select{font-family:inherit;}
::selection{background:var(--accent); color:#03131c;}
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------- PERSISTENT SCROLL CLIMBER WIDGET (homepage only) ---------- */
.climber-fixed-container{
  position:fixed; bottom:24px; right:28px; z-index:150;
  display:flex; flex-direction:column; align-items:center; pointer-events:none;
}
.climber-hud{
  background:rgba(12,22,32,0.88); border:1px solid var(--border); backdrop-filter:blur(8px);
  padding:4px 10px; border-radius:100px; font-size:0.72rem; font-weight:700; color:var(--accent-soft);
  margin-bottom:8px; box-shadow:0 4px 16px rgba(0,0,0,0.4); letter-spacing:0.05em; text-transform:uppercase;
}
.climber-stage{ width:110px; height:120px; position:relative; filter:drop-shadow(0 6px 12px rgba(0,0,0,0.5)); }
.climber-stage svg{ width:100%; height:100%; overflow:visible; }
.climber-part{ transition:transform 0.18s cubic-bezier(0.25,1,0.5,1), d 0.18s ease; transform-origin:center; }
@media (max-width:700px){
  .climber-fixed-container{ bottom:16px; right:16px; transform:scale(0.82); transform-origin:bottom right; }
}

/* ---------- NAV ---------- */
header.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(5,10,16,0.82); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border-soft);
}
.nav-inner{ max-width:var(--maxw); margin:0 auto; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.05rem; letter-spacing:0.01em; }
.brand-mark{ width:26px; height:26px; flex-shrink:0; }
.nav-links{ display:flex; gap:24px; align-items:center; }
.nav-links a{ font-size:0.92rem; font-weight:500; color:var(--text-muted); transition:color .2s ease; }
.nav-links a:hover{color:var(--text);}
.nav-cta{
  padding:10px 20px; background:var(--accent); color:#03131c; font-weight:700; font-size:0.88rem;
  border-radius:var(--radius-sm); transition:transform .18s ease, box-shadow .18s ease; cursor:pointer; border:none;
}
.nav-cta:hover{ transform:translateY(-1px); box-shadow:0 6px 24px var(--accent-glow); }
.nav-toggle{ display:none; background:none; border:none; color:var(--text); font-size:1.5rem; cursor:pointer; }

@media (max-width:980px){
  .nav-links{
    position:fixed; top:64px; left:0; right:0; bottom:0; background:var(--bg);
    flex-direction:column; justify-content:flex-start; padding:40px 24px; gap:26px;
    transform:translateX(100%); transition:transform .3s ease;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:1.1rem; }
  .nav-toggle{ display:block; }
}

/* ---------- HERO (homepage only) ---------- */
.hero{ position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center; overflow:hidden; padding-top:80px; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg svg{ width:100%; height:100%; display:block; }
.hero-grain{
  position:absolute; inset:0; z-index:1;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  pointer-events:none; mix-blend-mode:overlay; opacity:0.5;
}
.hero-content{ position:relative; z-index:2; max-width:var(--maxw); margin:0 auto; width:100%; padding:0 24px; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-size:0.85rem; font-weight:600; color:var(--accent-soft); margin-bottom:22px;
  opacity:0; transform:translateY(10px); animation:reveal .7s ease forwards; animation-delay:.15s;
}
.hero-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 10px var(--accent); }
.hero h1{
  font-size:clamp(2.6rem,6vw,5.2rem); font-weight:800; letter-spacing:-0.02em; line-height:1.06; max-width:17ch; color:var(--text);
  opacity:0; transform:translateY(16px); animation:reveal .8s ease forwards; animation-delay:.3s;
}
.hero h1 .glow{ color:var(--accent); text-shadow:0 0 28px rgba(127,224,255,0.25); }
.hero p.sub{
  margin-top:26px; font-size:clamp(1.02rem,1.6vw,1.2rem); color:var(--text-muted); max-width:54ch; font-weight:400;
  opacity:0; transform:translateY(16px); animation:reveal .8s ease forwards; animation-delay:.48s;
}
.hero-actions{
  margin-top:38px; display:flex; align-items:center; gap:22px; flex-wrap:wrap;
  opacity:0; transform:translateY(16px); animation:reveal .8s ease forwards; animation-delay:.62s;
}
.hero-stats{
  margin-top:74px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); max-width:620px; gap:36px;
  opacity:0; transform:translateY(16px); animation:reveal .8s ease forwards; animation-delay:.78s;
}
.stat-num{ font-size:clamp(1.6rem,2.6vw,2.1rem); font-weight:800; color:var(--text); display:flex; align-items:baseline; gap:2px; }
.stat-num .unit{ font-size:0.55em; color:var(--accent-soft); font-weight:700; }
.stat-label{ margin-top:6px; font-size:0.82rem; color:var(--text-muted); font-weight:500; max-width:16ch; }
@keyframes reveal{ to{opacity:1; transform:translateY(0);} }
.scroll-cue{ position:absolute; bottom:34px; left:24px; z-index:2; display:flex; align-items:center; gap:12px; color:var(--text-faint); font-size:0.78rem; font-weight:600; }
.scroll-cue svg{ width:14px; height:22px; }

@keyframes twinkle{ 0%,100%{opacity:0.3; transform:scale(0.8);} 50%{opacity:1; transform:scale(1.2);} }
.twinkle-1{ animation:twinkle 3s infinite ease-in-out; }
.twinkle-2{ animation:twinkle 4.5s infinite ease-in-out 1.2s; }
.twinkle-3{ animation:twinkle 2.5s infinite ease-in-out 0.6s; }
@keyframes shootingStar{ 0%{transform:translate(0,0) scale(0); opacity:0;} 15%{opacity:1; transform:translate(-20px,20px) scale(1);} 100%{transform:translate(-300px,300px) scale(0.2); opacity:0;} }
.meteor-1{ animation:shootingStar 6s infinite ease-in 1s; }
.meteor-2{ animation:shootingStar 8s infinite ease-in 4s; }

@media (max-width:700px){ .hero-stats{ gap:18px; } .scroll-cue{ display:none; } }

/* ---------- MOTTO BAND (homepage only) ---------- */
.motto-band{ background:var(--surface); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); padding:clamp(3.2rem,7vw,5rem) 0; position:relative; }
.motto-band::before{ content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:120px; height:1px; background:linear-gradient(90deg, transparent, var(--accent), transparent); }
.motto-inner{ max-width:820px; margin:0 auto; text-align:center; padding:0 24px; }
.motto-inner h2{ font-size:clamp(1.7rem,4vw,3rem); font-weight:800; letter-spacing:-0.01em; line-height:1.18; color:var(--text); }
.motto-inner h2 span{ color:var(--accent); }
.motto-inner p{ margin-top:22px; color:var(--text-muted); font-size:1.02rem; max-width:56ch; margin-left:auto; margin-right:auto; }

/* ---------- SECTION SHARED ---------- */
section{ padding:clamp(4.5rem,8vw,7.5rem) 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:clamp(2.5rem,5vw,4rem); }
.section-head h2{ font-size:clamp(1.9rem,3.4vw,2.7rem); font-weight:700; letter-spacing:-0.01em; color:var(--text); }
.section-head p{ margin-top:16px; color:var(--text-muted); font-size:1.02rem; max-width:56ch; }
.section-head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }

/* ---------- FEATURES ---------- */
.features{ background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.category-block + .category-block{ margin-top:56px; }
.category-label{ display:flex; align-items:baseline; gap:14px; margin-bottom:22px; }
.category-label h3{ font-size:1.05rem; font-weight:700; color:var(--accent-soft); }
.category-label .rule{ flex:1; height:1px; background:linear-gradient(90deg, var(--border), transparent); }
.category-label .count{ font-size:0.82rem; color:var(--text-faint); font-weight:600; }

.feature-grid{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1px;
  background:var(--border); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
}
.feature-card{ background:var(--surface); padding:28px 26px; transition:background .22s ease, transform .22s ease, box-shadow .22s ease; }
.feature-card:hover{ background:var(--surface-2); box-shadow:inset 0 0 20px var(--surface-glow); }
.feature-icon{ width:38px; height:38px; color:var(--accent); margin-bottom:18px; flex-shrink:0; }
.feature-card h4{ font-size:1.02rem; font-weight:700; color:var(--text); margin-bottom:8px; }
.feature-card p{ font-size:0.92rem; color:var(--text-muted); }

/* Orphan-row fix: when a category's card count isn't a multiple of 3, the
   lone card in the final row spans the full row (icon+text side by side)
   instead of leaving empty background cells next to it. */
.feature-grid .feature-card:nth-child(3n+1):nth-last-child(1){
  grid-column:1 / -1; display:flex; align-items:flex-start; gap:22px;
}
.feature-grid .feature-card:nth-child(3n+1):nth-last-child(1) .feature-icon{ margin-bottom:0; }

@media (max-width:860px){
  .feature-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .feature-grid .feature-card:nth-child(3n+1):nth-last-child(1){ grid-column:auto; display:block; }
}
@media (max-width:560px){ .feature-grid{ grid-template-columns:1fr; } }

/* ---------- PROPRIETARY TOOLS ---------- */
.tools-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
.tool-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  padding:32px; display:flex; flex-direction:column; gap:16px; position:relative; overflow:hidden;
  transition:border-color .22s ease, transform .22s ease;
}
.tool-card:hover{ border-color:var(--accent-dim); transform:translateY(-2px); }
.tool-badge{
  align-self:flex-start; font-size:0.75rem; font-weight:800; letter-spacing:0.04em; color:#03131c;
  background:var(--accent); padding:4px 10px; border-radius:4px; text-transform:uppercase;
}
.tool-card h4{ font-size:1.2rem; font-weight:700; color:var(--text); }
.tool-card p{ font-size:0.92rem; color:var(--text-muted); }
@media (max-width:800px){ .tools-grid{ grid-template-columns:1fr; } }

/* ---------- DISCOVERIES (data-driven) ---------- */
.discoveries-section{ background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.discovery-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
.discovery-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:28px 30px; display:flex; gap:20px; align-items:flex-start; }
.discovery-num{ font-size:1.6rem; font-weight:900; color:var(--accent-dim); line-height:1; flex-shrink:0; }
.discovery-content h4{ font-size:1.08rem; font-weight:700; color:var(--text); margin-bottom:8px; }
.discovery-content p{ font-size:0.9rem; color:var(--text-muted); }
@media (max-width:800px){ .discovery-grid{ grid-template-columns:1fr; } }

/* ---------- SIGNUP SECTION & MODAL ---------- */
.signup-section{ background:var(--bg); padding:clamp(4.5rem,8vw,7.5rem) 0; border-top:1px solid var(--border-soft); }
.signup-box{ max-width:540px; margin:0 auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:42px 36px; box-shadow:0 12px 40px rgba(0,0,0,0.35); }
.signup-box h3{ font-size:1.8rem; font-weight:800; color:var(--text); text-align:center; margin-bottom:8px; }
.signup-box p.signup-sub{ font-size:0.92rem; color:var(--text-muted); text-align:center; margin-bottom:30px; }
.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-size:0.85rem; font-weight:700; color:var(--text-muted); margin-bottom:8px; }
.form-group input, .form-group select, .form-group textarea{
  width:100%; background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 16px; color:var(--text); font-size:0.92rem; outline:none; transition:border-color .2s ease;
  font-family:inherit;
}
.form-group textarea{ resize:vertical; min-height:90px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color:var(--accent); }
.btn-submit{
  width:100%; padding:15px; background:var(--accent); color:#03131c; font-weight:800; font-size:0.98rem;
  border-radius:var(--radius-sm); border:none; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease; margin-top:10px;
}
.btn-submit:hover{ transform:translateY(-1px); box-shadow:0 8px 28px var(--accent-glow); }

.modal-overlay{
  position:fixed; inset:0; z-index:200; background:rgba(5,10,16,0.88); backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.modal-overlay.active{ opacity:1; pointer-events:auto; }
.modal-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md);
  max-width:480px; width:100%; padding:36px; position:relative; transform:scale(0.94); transition:transform .25s ease;
}
.modal-overlay.active .modal-card{ transform:scale(1); }
.modal-close{ position:absolute; top:18px; right:20px; background:none; border:none; color:var(--text-faint); font-size:1.5rem; cursor:pointer; line-height:1; }
.modal-close:hover{ color:var(--text); }

/* ---------- PROCESS STRIP ---------- */
.strip{ display:flex; flex-wrap:wrap; gap:14px; padding:20px 0; }
.pill{
  padding:9px 16px; border:1px solid var(--border); border-radius:100px; font-size:0.84rem; font-weight:600;
  color:var(--text-muted); display:flex; align-items:center; gap:8px; background:var(--surface);
  transition:border-color 0.2s ease, color 0.2s ease;
}
.pill:hover{ border-color:var(--accent-dim); color:var(--text); }
.pill .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); }

/* ---------- CASE STUDIES (data-driven) ---------- */
.case-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.case-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:30px;
  display:flex; flex-direction:column; gap:18px; box-shadow:0 4px 20px rgba(0,0,0,0.25);
  transition:transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.case-card:hover{ transform:translateY(-2px); border-color:var(--accent-dim); box-shadow:0 8px 30px var(--surface-glow); }
.case-tag{ font-size:0.8rem; font-weight:700; color:var(--accent-soft); }
.case-card h4{ font-size:1.12rem; font-weight:700; color:var(--text); line-height:1.35; }
.case-body p{ font-size:0.9rem; color:var(--text-muted); }
.case-body p + p{ margin-top:10px; }
.case-body strong{ color:var(--text); font-weight:700; }
.case-result{ margin-top:auto; padding-top:18px; border-top:1px solid var(--border-soft); display:flex; align-items:baseline; gap:10px; }
.case-stat{ font-size:1.9rem; font-weight:800; color:var(--accent); }
.case-stat-label{ font-size:0.82rem; color:var(--text-muted); max-width:20ch; }
.case-link{ font-size:0.85rem; font-weight:700; color:var(--accent-soft); display:flex; align-items:center; gap:6px; }
.case-link svg{ width:14px; height:14px; }
@media (max-width:900px){ .case-grid{ grid-template-columns:1fr; } }

/* ---------- BLOG (data-driven) ---------- */
.blog{ background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.blog-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.blog-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:28px;
  display:flex; flex-direction:column; gap:14px; transition:border-color .2s ease;
}
.blog-card:hover{ border-color:var(--accent-dim); }
.blog-tag{ align-self:flex-start; font-size:0.76rem; font-weight:700; color:var(--accent); padding:5px 11px; border:1px solid var(--border); border-radius:100px; }
.blog-card h4{ font-size:1.05rem; font-weight:700; color:var(--text); line-height:1.4; }
.blog-card p{ font-size:0.88rem; color:var(--text-muted); }
.blog-meta{ margin-top:auto; padding-top:6px; display:flex; align-items:center; justify-content:space-between; }
.blog-meta span{ font-size:0.8rem; color:var(--text-faint); font-weight:600; }
.blog-read{ font-size:0.85rem; font-weight:700; color:var(--accent-soft); display:flex; align-items:center; gap:6px; }
.blog-read svg{ width:14px; height:14px; }
@media (max-width:900px){ .blog-grid{ grid-template-columns:1fr; } }

/* ---------- TESTIMONIALS (data-driven) ---------- */
.testimonials{ overflow:hidden; }
.marquee-track{ display:flex; gap:20px; width:max-content; animation:scrollX 42s linear infinite; }
.testimonials:hover .marquee-track{ animation-play-state:paused; }
@keyframes scrollX{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.t-card{ width:360px; flex-shrink:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:28px; box-shadow:0 4px 20px rgba(0,0,0,0.2); }
.t-quote{ font-size:0.96rem; color:var(--text); line-height:1.65; }
.t-foot{ margin-top:22px; display:flex; align-items:center; gap:12px; }
.t-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--surface-2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.82rem; color:var(--accent-soft);
}
.t-name{ font-size:0.88rem; font-weight:700; color:var(--text); }
.t-role{ font-size:0.8rem; color:var(--text-faint); }
.fade-l, .fade-r{ position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none; }
.fade-l{ left:0; background:linear-gradient(90deg, var(--bg), transparent); }
.fade-r{ right:0; background:linear-gradient(270deg, var(--bg), transparent); }

/* ---------- CTA BAND ---------- */
.cta-band{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:clamp(2.5rem,5vw,4rem);
  display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; position:relative; overflow:hidden;
  box-shadow:0 8px 32px rgba(0,0,0,0.3);
}
.cta-band::before{ content:''; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle, var(--accent-glow), transparent 70%); }
.cta-band h3{ font-size:clamp(1.5rem,2.6vw,2rem); font-weight:700; max-width:20ch; position:relative; }
.cta-band .btn-primary, .cta-band button{ position:relative; }

.btn-primary{
  padding:15px 30px; background:var(--accent); color:#03131c; font-weight:700; font-size:0.98rem;
  border-radius:var(--radius-sm); border:none; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease;
  display:inline-block;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 34px var(--accent-glow); }
.btn-ghost{
  display:inline-flex; align-items:center; gap:10px; font-weight:600; font-size:0.95rem; color:var(--text);
  padding:15px 4px; border-bottom:1px solid var(--border); transition:border-color .2s ease, color .2s ease;
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent-soft); }
.btn-ghost svg{ width:16px; height:16px; }

/* ---------- PAGE HERO (listing pages) ---------- */
.page-hero{ padding:150px 0 60px; border-bottom:1px solid var(--border-soft); background:var(--bg-alt); }
.page-hero .crumb{ font-size:0.85rem; color:var(--text-faint); font-weight:600; margin-bottom:18px; display:block; }
.page-hero .crumb a{ color:var(--accent-soft); }
.page-hero h1{ font-size:clamp(2.1rem,4.5vw,3.2rem); font-weight:800; letter-spacing:-0.01em; max-width:20ch; }
.page-hero p{ margin-top:18px; color:var(--text-muted); font-size:1.05rem; max-width:56ch; }

/* ---------- ARTICLE / CASE STUDY DETAIL PAGES ---------- */
.article-top{ padding:150px 0 10px; }
.article-tag{ display:inline-block; font-size:0.8rem; font-weight:700; color:var(--accent); padding:5px 12px; border:1px solid var(--border); border-radius:100px; }
.article-title{ font-size:clamp(2rem,4.5vw,3.1rem); font-weight:800; letter-spacing:-0.01em; line-height:1.12; margin-top:20px; max-width:22ch; }
.article-meta{ margin-top:20px; display:flex; gap:20px; flex-wrap:wrap; color:var(--text-faint); font-size:0.88rem; font-weight:600; }
.article-body{ padding:30px 0 50px; }
.prose p{ margin-bottom:18px; color:var(--text-muted); font-size:1.03rem; }
.prose h2{ margin-top:42px; margin-bottom:14px; font-size:1.5rem; font-weight:700; color:var(--text); }
.prose h3{ margin-top:30px; margin-bottom:10px; font-size:1.15rem; font-weight:700; color:var(--text); }
.prose ul{ margin:16px 0 20px 22px; list-style:disc; color:var(--text-muted); }
.prose li{ margin-bottom:8px; font-size:1rem; }
.prose strong{ color:var(--text); font-weight:700; }
.prose blockquote{ border-left:2px solid var(--accent); padding:4px 0 4px 20px; margin:28px 0; color:var(--text); font-size:1.05rem; }
.stat-band{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin:36px 0 8px; padding:28px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); }
.stat-band .stat-num{ animation:none; opacity:1; transform:none; font-size:clamp(1.5rem,3vw,2rem); }
@media (max-width:700px){ .stat-band{ grid-template-columns:1fr; } }
.back-link{ display:inline-flex; align-items:center; gap:8px; font-size:0.9rem; font-weight:700; color:var(--accent-soft); margin-bottom:28px; }
.back-link svg{ width:15px; height:15px; }
.related-block{ background:var(--bg-alt); border-top:1px solid var(--border-soft); }
.related-block .section-head h2{ font-size:clamp(1.4rem,2.6vw,1.9rem); }

/* ---------- TEMPLATE-ONLY BANNER (never appears on real pages) ---------- */
.template-banner{
  background:#3a1c1c; border:1px solid #7a3a3a; color:#ffd9d9; border-radius:var(--radius-md);
  padding:18px 22px; font-size:0.9rem; line-height:1.6; margin-bottom:32px;
}
.template-banner strong{ color:#fff; }
.template-banner code{ background:rgba(0,0,0,0.3); padding:1px 6px; border-radius:4px; font-size:0.85em; }

/* ---------- FOOTER ---------- */
footer{ background:var(--bg-alt); border-top:1px solid var(--border-soft); padding:64px 0 28px; }
.footer-top{ display:grid; grid-template-columns:1.2fr 0.75fr 0.75fr 1.3fr; gap:32px; padding-bottom:48px; border-bottom:1px solid var(--border-soft); }
.footer-brand p{ margin-top:14px; color:var(--text-muted); font-size:0.9rem; max-width:32ch; }
.footer-col h5{ font-size:0.88rem; font-weight:700; color:var(--text); margin-bottom:16px; }
.footer-col ul li + li{ margin-top:10px; }
.footer-col a{ font-size:0.87rem; color:var(--text-muted); transition:color .2s ease; }
.footer-col a:hover{ color:var(--accent-soft); }
.newsletter-form{ display:flex; margin-top:16px; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.newsletter-form input{ flex:1; background:transparent; border:none; outline:none; padding:13px 14px; color:var(--text); font-size:0.88rem; }
.newsletter-form input::placeholder{ color:var(--text-faint); }
.newsletter-form button{ background:var(--accent); color:#03131c; border:none; padding:0 18px; font-weight:700; font-size:0.85rem; cursor:pointer; transition:filter .18s ease; }
.newsletter-form button:hover{ filter:brightness(1.08); }
.newsletter-note{ margin-top:10px; font-size:0.78rem; color:var(--text-faint); }
.social-row{ display:flex; gap:10px; margin-top:20px; }
.social-row a{ width:34px; height:34px; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--text-muted); transition:color .2s ease, border-color .2s ease; }
.social-row a:hover{ color:var(--accent); border-color:var(--accent-dim); }
.social-row svg{ width:15px; height:15px; }
.visit-address{ margin-top:14px; font-size:0.85rem; color:var(--text-muted); line-height:1.6; }
.map-embed{ margin-top:16px; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; background:var(--surface); filter:grayscale(0.15) invert(0.9) contrast(0.9); }
.map-embed iframe{ width:100%; height:170px; display:block; border:0; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-top:26px; font-size:0.82rem; color:var(--text-faint); }
.footer-bottom .legal-links{ display:flex; gap:22px; }
.footer-bottom a:hover{ color:var(--text-muted); }
@media (max-width:980px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } .cta-band{ flex-direction:column; align-items:flex-start; } }

/* ---- Connect page (social cards) ---- */
.social-card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.social-card{ display:flex; align-items:center; gap:14px; padding:18px 20px; border:1px solid var(--border); border-radius:14px; background:var(--surface, rgba(255,255,255,.02)); color:var(--text); text-decoration:none; transition:border-color .2s ease, transform .2s ease; }
.social-card:hover{ border-color:var(--accent-dim); transform:translateY(-2px); }
.social-card-icon{ width:40px; height:40px; flex:none; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--accent); }
.social-card-icon svg{ width:18px; height:18px; }
.social-card-text{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.social-card-text small{ color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.social-group-title{ margin:48px 0 18px; font-size:1rem; color:var(--text-muted); font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
