/* assets/css/groke-home.css
 * Homepage-only visual layer. Loaded after groke-2026.css by index.html only,
 * and every rule is scoped to body.home, so no other page can be affected.
 * Decorative patterns are CSS gradients or tiny inline SVGs on pseudo-elements:
 * pointer-events:none, behind content, and kept to roughly 3–5% strength.
 */

.home{
  --home-line:#ECEAE7;
  --home-tint:#FFF8F3;
  --home-warm:#FAFAF8;
  --home-faq:#FFFCF9;
  --home-muted:#606060;
  --home-shadow:0 8px 30px rgba(20,20,20,.045);
  --home-shadow-hover:0 14px 38px rgba(20,20,20,.075);
  --home-pad:clamp(64px,7vw,96px);
}

/* ---------- section scaffolding ---------- */
.home main > section{position:relative;isolation:isolate}
.home main > section > .wrap{position:relative;z-index:1}
.home .sec{padding-block:var(--home-pad)}
.home .bg-tint{background:var(--home-tint)}
.home .bg-faq{background:var(--home-faq)}
.home .pat-dots,.home .pat-chartgrid,.home .pat-diag,.home .pat-lines,.home .pat-globe{overflow:hidden}
.home .pat-dots::before,.home .pat-dots::after,
.home .pat-chartgrid::before,.home .pat-chartgrid::after,
.home .pat-diag::before,.home .pat-diag::after,
.home .pat-lines::before,
.home .pat-globe::before,.home .pat-globe::after{content:"";position:absolute;z-index:0;pointer-events:none}

/* ---------- readable secondary text (was #8A8A8A, ~3.5:1) ---------- */
.home .hero-pts,.home .metric-l,.home .who small,.home .post-meta,.home .cert,.home .cmp-them,
.home .case-ml,.home .trust-l,.home .snap-o-t,.home .dash-t,.home .price span,.home .snap-sel,.home .opp small{color:var(--home-muted)}

/* ---------- one card system ---------- */
.home .card{border-color:var(--home-line);box-shadow:var(--home-shadow);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.home .card:hover{border-color:var(--home-line)}
.home a.card:hover,.home .svc-card:hover{transform:translateY(-3px);border-color:rgba(255,107,0,.28);box-shadow:var(--home-shadow-hover)}
.home a.card{display:flex;flex-direction:column}
.home a.card .price{margin-top:auto}
.home .svc-foot{border-top-color:var(--home-line)}
.home .svc-head{margin-bottom:40px}

/* ---------- 1. hero ---------- */
.home .hero{
  overflow:hidden;
  border-bottom:1px solid var(--home-line);
  background:
    radial-gradient(circle at 76% 36%,rgba(255,107,0,.12),transparent 32%),
    linear-gradient(135deg,#FFFFFF 0%,#FFFAF6 55%,#FFF4EB 100%);
}
.home .hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(21,21,21,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(21,21,21,.035) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.35) 70%,transparent);
          mask-image:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.35) 70%,transparent);
}
.home .hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;z-index:0;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,107,0,.35) 50%,transparent)}
.home .hero-visual{isolation:isolate}
/* growth curve: a soft rising area behind the visual; the edge line is kept faint so no hard fragments show */
.home .hero-visual::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;left:-6%;right:-26%;top:14%;bottom:-6%;
  /* fade both ends so the curve never shows a hard cut-off beside the photo or card */
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 70%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 70%,transparent 100%);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FF6B00' stop-opacity='.10'/%3E%3Cstop offset='1' stop-color='%23FF6B00' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 430 C120 420 170 360 250 330 S380 250 450 190 S560 90 600 60 L600 500 L0 500Z' fill='url(%23g)'/%3E%3Cpath d='M0 430 C120 420 170 360 250 330 S380 250 450 190 S560 90 600 60' fill='none' stroke='%23FF6B00' stroke-opacity='.13' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}
.home .hero-visual::after{content:"";position:absolute;z-index:-2;pointer-events:none;inset:2% -6% -4% -6%;background:radial-gradient(closest-side,rgba(255,107,0,.15),transparent)}
/* height:auto lets aspect-ratio win over the img height attribute, so the photo is never cropped */
.home .hero-photo{height:auto;max-height:clamp(380px,26vw,480px);box-shadow:var(--home-shadow)}
/* scale type and hero spacing with the wide container on large desktops */
@media (min-width:1280px){
  .home .hero h1{font-size:clamp(56px,3.5vw,68px)}
  .home h2{font-size:clamp(40px,2.5vw,48px)}
  .home .hero-grid{gap:clamp(56px,4.5vw,88px)}
}
.home .snap{border-color:var(--home-line);box-shadow:0 18px 50px rgba(20,20,20,.08)}

/* ---------- 2. platform strip ---------- */
.home .trust{background:#fff;border-top:0;border-bottom:1px solid var(--home-line);padding:30px 0}
.home .trust-l{margin-bottom:16px}
.home .trust-r{opacity:1;color:#8E8E8E;gap:clamp(24px,5vw,60px)}

/* ---------- 3. challenge: dotted matrix + connecting lines at the edges ---------- */
.home .pat-dots::before,.home .pat-dots::after{
  top:0;bottom:0;width:min(22vw,300px);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 600' preserveAspectRatio='none' fill='none' stroke='%23FF6B00' stroke-opacity='.18'%3E%3Cpath d='M30 70 L150 150 L70 290 L200 380 L50 520' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M150 150 L250 240 L200 380' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    radial-gradient(circle,rgba(21,21,21,.11) 1.1px,transparent 1.6px);
  background-size:100% 100%,20px 20px;
  -webkit-mask-image:radial-gradient(ellipse 100% 60% at 0% 50%,#000 20%,transparent 75%);
          mask-image:radial-gradient(ellipse 100% 60% at 0% 50%,#000 20%,transparent 75%);
}
.home .pat-dots::before{left:0}
.home .pat-dots::after{right:0;transform:scaleX(-1)}

/* ---------- 5. analytics: chart grid, distant curves (kept under the content), halo behind the dashboard ---------- */
.home .dash-split{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}
.home .pat-chartgrid::before{
  inset:0;
  background-image:linear-gradient(rgba(21,21,21,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(21,21,21,.04) 1px,transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 60% 75% at 28% 50%,#000,transparent 75%);
          mask-image:radial-gradient(ellipse 60% 75% at 28% 50%,#000,transparent 75%);
}
.home .pat-chartgrid::after{
  left:0;right:0;bottom:0;height:24%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 250 C200 240 300 200 450 190 S700 120 850 110 S1100 50 1200 40' stroke='%23FF6B00' stroke-opacity='.12' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 280 C220 270 340 250 480 235 S720 190 880 180 S1080 140 1200 120' stroke='%23151515' stroke-opacity='.06' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}
.home .pat-chartgrid .dash{border-color:var(--home-line);box-shadow:0 30px 70px -30px rgba(255,107,0,.35),var(--home-shadow)}
.home .pat-chartgrid .dash-bar{background:var(--home-warm);border-bottom-color:var(--home-line)}

/* ---------- 6. approach: heading on top, three full-width cards, fine diagonal lines at the edges ---------- */
.home .pat-diag .split{grid-template-columns:1fr;gap:40px}
.home .pat-diag .split > div:first-child{max-width:680px}
.home .pat-diag::before,.home .pat-diag::after{
  top:0;bottom:0;width:min(18vw,240px);
  background:repeating-linear-gradient(135deg,rgba(255,107,0,.10) 0 1px,transparent 1px 18px);
  -webkit-mask-image:linear-gradient(90deg,#000,transparent);
          mask-image:linear-gradient(90deg,#000,transparent);
}
.home .pat-diag::before{left:0}
.home .pat-diag::after{right:0;transform:scaleX(-1)}

/* ---------- 7. comparison ---------- */
.home .home-cmp .cmp{border-color:var(--home-line);box-shadow:var(--home-shadow)}
.home .cmp-r{grid-template-columns:1.4fr 1fr 1fr;border-bottom-color:var(--home-line)}
.home .cmp-r > :first-child{color:var(--ink-900);font-weight:600}
.home .cmp-r > :last-child{background:var(--home-tint)}
.home .cmp-h{background:#fff}
.home .cmp-h .me{background:var(--orange-50);color:var(--orange-700);box-shadow:inset 0 3px 0 var(--orange-500)}
.home .cmp-me{color:var(--ink-900);font-weight:700}

/* ---------- 8. case study ---------- */
.home .pat-lines::before{
  right:-40px;bottom:-10px;width:min(56vw,720px);height:70%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 300' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 260 L90 230 L180 245 L270 190 L360 200 L450 140 L540 150 L630 90 L720 60' stroke='%23151515' stroke-opacity='.07' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 280 L90 265 L180 270 L270 240 L360 235 L450 205 L540 210 L630 170 L720 150' stroke='%23FF6B00' stroke-opacity='.13' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat right bottom/100% 100%;
}
.home .case{border-color:var(--home-line);box-shadow:var(--home-shadow)}
.home .case-b{border-color:var(--home-line)}
.home .case-brand{flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:6px;text-align:left;padding:28px;color:var(--ink-900);
  background:radial-gradient(circle at 20% 15%,rgba(255,107,0,.14),transparent 55%),var(--home-tint)}
.home .case-brand-q{font-family:Georgia,'Times New Roman',serif;font-size:76px;line-height:.7;font-weight:700;color:var(--orange-500);margin-bottom:auto}
.home .case-brand-l{font-size:11.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--orange-700)}
.home .case-brand-n{font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.home .case-mv{color:var(--ink-900);font-size:34px}
.home .case-mv.pos{color:var(--green-600)}

/* ---------- 9. testimonials: faint global-network texture ---------- */
.home .pat-globe::before{
  top:40px;right:-160px;width:640px;height:640px;opacity:.04;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640' fill='none' stroke='%23151515' stroke-width='1.4'%3E%3Ccircle cx='320' cy='320' r='300'/%3E%3Cellipse cx='320' cy='320' rx='110' ry='300'/%3E%3Cellipse cx='320' cy='320' rx='210' ry='300'/%3E%3Cline x1='320' y1='20' x2='320' y2='620'/%3E%3Cellipse cx='320' cy='320' rx='300' ry='90'/%3E%3Cellipse cx='320' cy='320' rx='282' ry='190'/%3E%3Cline x1='20' y1='320' x2='620' y2='320'/%3E%3Cpath d='M140 210 Q300 90 470 240 M180 430 Q330 340 520 400 M250 150 Q420 260 390 480' stroke-width='2'/%3E%3Cg fill='%23151515' stroke='none'%3E%3Ccircle cx='140' cy='210' r='6'/%3E%3Ccircle cx='470' cy='240' r='6'/%3E%3Ccircle cx='180' cy='430' r='6'/%3E%3Ccircle cx='520' cy='400' r='6'/%3E%3Ccircle cx='250' cy='150' r='6'/%3E%3Ccircle cx='390' cy='480' r='6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
}
.home .pat-globe::after{
  top:40px;right:-160px;width:640px;height:640px;opacity:.035;
  background:radial-gradient(circle,#151515 1.2px,transparent 1.8px) 0 0/14px 14px;
  -webkit-mask-image:radial-gradient(circle closest-side,#000 96%,transparent 100%);
          mask-image:radial-gradient(circle closest-side,#000 96%,transparent 100%);
}
.home .pat-globe .card{display:flex;flex-direction:column;padding:30px}
.home .pat-globe .card::before{content:"\201C";font-family:Georgia,'Times New Roman',serif;font-size:52px;line-height:.75;font-weight:700;color:var(--orange-500);margin-bottom:12px}
.home .pat-globe .tq{flex:1;color:var(--ink-700);font-size:15.5px}
.home .pat-globe .who{padding-top:18px;border-top:1px solid var(--home-line)}
.home .certs{border-top-color:var(--home-line)}

/* ---------- 11. blog ---------- */
.home .post{display:flex;flex-direction:column}
.home img.post-th{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:1px solid var(--home-line);border-radius:10px;margin-bottom:16px;background:var(--surface-2);transition:box-shadow .2s ease}
.home .post h3{transition:color .15s}
.home .post:hover img.post-th{box-shadow:var(--home-shadow-hover)}
.home .post:hover h3{color:var(--orange-600)}

/* ---------- 12. FAQ ---------- */
.home .bg-faq .faq{border-top-color:var(--home-line)}
.home .faq details{border-bottom-color:var(--home-line)}
.home .faq summary{padding:22px 0;transition:color .15s}
.home .faq summary:hover{color:var(--orange-700)}
.home .faq summary:focus-visible{outline:2px solid var(--orange-500);outline-offset:4px;border-radius:6px}
.home .faq summary::after{content:"+";display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--home-line);border-radius:50%;background:#fff;font-size:18px;color:var(--ink-500);transition:background .15s,color .15s,border-color .15s}
.home .faq details[open] summary::after{content:"\2013";background:var(--orange-500);border-color:var(--orange-500);color:#fff}
.home .faq details[open] summary{color:var(--ink-900)}

/* ---------- final CTA ---------- */
.home .home-cta{background:var(--home-faq);padding:0 0 var(--home-pad)}
.home .cta-band{
  position:relative;overflow:hidden;
  background-color:#121212;
  background-image:
    radial-gradient(circle at 84% 50%,rgba(255,107,0,.24),transparent 36%),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:auto,40px 40px,40px 40px;
  box-shadow:0 24px 60px -24px rgba(20,20,20,.35);
}
.home .cta-band p{color:#B8B8B8}
.home .cta-r small{color:#909090}
.home .foot{margin-top:0}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .home .dash-split{grid-template-columns:1fr;gap:44px}
  .home .hero-visual::before{left:-4%;right:-4%}
  .home .pat-globe::before,.home .pat-globe::after{right:-240px}
}
@media (max-width:768px){
  .home{--home-pad:60px}
  .home .hero{padding:44px 0 56px}
  .home .hero::before{background-size:32px 32px}
  .home .hero-visual::before,.home .pat-dots::after,.home .pat-diag::after,.home .pat-chartgrid::after{display:none}
  .home .pat-dots::before,.home .pat-diag::before{width:120px}
  .home .pat-globe::before,.home .pat-globe::after{width:420px;height:420px;right:-200px;top:20px}
  .home .case-brand{min-height:150px}
  .home .cta-band{padding:36px 24px;flex-direction:column;align-items:flex-start;gap:24px}
  .home .cta-r{text-align:left}
}
@media (max-width:640px){
  .home .cmp-h{display:none}
  .home .cmp-r{grid-template-columns:1fr 1fr}
  .home .cmp-r > :first-child{grid-column:1/-1;padding-bottom:2px}
  .home .cmp-r > *{padding:12px 16px}
  .home .cmp-r > [data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--home-muted);margin-bottom:3px}
  .home .cmp-r > .cmp-me::before{color:var(--orange-700)}
}
@media (max-width:480px){
  .home{--home-pad:52px}
}
@media (prefers-reduced-motion:reduce){
  .home .card,.home img.post-th,.home .post h3,.home .faq summary,.home .faq summary::after{transition:none}
  .home a.card:hover,.home .svc-card:hover{transform:none}
}


/* ---------- a11y: text contrast ---------- */
.home .trust-r{color:#6B6B6B}
.home .cta-r small{color:#9A9A9A}

/* ---------- a11y: icon on brand orange is ink (A11Y-02) ---------- */
.home .faq details[open] summary::after{color:var(--ink-900)}
