/* ThatsKrispy growth service pages: /ads-management/ and /lead-generation/.
   Loads after tkheader.css and uses its dark foundation (tokens, .wrap, .hd-*,
   .rv, .tk-wa). Every rule is scoped under body.tk-dark. Class prefix: gr-.
   Horizontal insets read --gutter through .wrap only; no padding shorthand is
   ever written on an element that carries .wrap. */

body.tk-dark .gr-sec { padding-block: clamp(5rem, 9vw, 8rem); }
body.tk-dark .gr-band { background: var(--bg-2); border-block: 1px solid var(--hd-line); }
body.tk-dark .gr-head { max-width: 46rem; }
body.tk-dark .gr-head--center { margin-inline: auto; text-align: center; }
body.tk-dark .gr-head--center .hd-lede { margin-inline: auto; }
body.tk-dark .gr-note { margin: 1.25rem 0 0; font-size: 1rem; color: var(--mute); }
body.tk-dark .gr-note a[href^="tel:"] { color: var(--text); font-weight: 500; }

/* ---------- hero ---------- */
body.tk-dark .gr-hero { position: relative; padding-top: calc(var(--hdr) + clamp(3rem, 6vw, 5.5rem)); padding-bottom: clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
body.tk-dark .gr-hero::before { content: ""; position: absolute; z-index: 0; top: -20%; right: -10%; width: 70%; height: 90%; background: radial-gradient(closest-side, var(--hd-glow), transparent); pointer-events: none; }
body.tk-dark .gr-hero > .wrap { position: relative; z-index: 1; }
body.tk-dark .gr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
body.tk-dark .gr-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5.1rem); text-wrap: balance; }
body.tk-dark .gr-hero h1 span { color: var(--hd-sky); }
body.tk-dark .gr-hero-sub { margin: 1.5rem 0 0; font-size: clamp(1.1rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--hd-soft); max-width: 40ch; text-wrap: pretty; }
body.tk-dark .gr-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
body.tk-dark .gr-hero-media { position: relative; }
body.tk-dark .gr-hero-main .hd-core { aspect-ratio: 5 / 4; }
body.tk-dark .gr-hero-inset { position: absolute; left: -9%; bottom: -16%; width: 32%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
body.tk-dark .gr-hero-inset .hd-core { aspect-ratio: 4 / 5; }
body.tk-dark .gr-proof { margin-top: clamp(3.5rem, 6vw, 5rem); }

/* ---------- ad formats: one shoot, cut for every placement ---------- */
body.tk-dark .gr-formats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
body.tk-dark .gr-formats { display: grid; grid-template-columns: 1fr 0.8fr 1fr; gap: clamp(0.75rem, 1.5vw, 1.25rem); align-items: end; margin: 0; padding: 0; list-style: none; }
body.tk-dark .gr-formats li { display: grid; gap: 0.8rem; }
body.tk-dark .gr-formats .hd-core img { aspect-ratio: var(--ar); }
body.tk-dark .gr-formats p { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); text-align: center; }

/* ---------- what we handle: two platform panels + detail rows ---------- */
body.tk-dark .gr-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.75rem, 5vw, 4rem); }
body.tk-dark .gr-panel { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: calc(var(--hd-r) + 6px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hd-line); }
body.tk-dark .gr-panel-media { aspect-ratio: 16 / 9; overflow: hidden; }
body.tk-dark .gr-panel-media img { width: 100%; height: 100%; object-fit: cover; }
body.tk-dark .gr-panel-body { padding: clamp(1.5rem, 3vw, 2.25rem); }
body.tk-dark .gr-panel h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -0.03em; }
body.tk-dark .gr-panel p { margin: 0.75rem 0 0; color: var(--hd-soft); max-width: 48ch; }
body.tk-dark .gr-panel ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
body.tk-dark .gr-panel li { padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--hd-soft); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hd-line-2); }

body.tk-dark .gr-rows { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
body.tk-dark .gr-rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0.25rem 1.25rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--hd-line); }
body.tk-dark .gr-rows img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.25)); }
body.tk-dark .gr-rows h3 { font-size: clamp(1.15rem, 1.5vw, 1.3rem); letter-spacing: -0.02em; }
body.tk-dark .gr-rows p { margin: 0; color: var(--hd-soft); }

/* ---------- steps ---------- */
body.tk-dark .gr-steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
body.tk-dark .gr-steps { margin: 0; padding: 0; list-style: none; counter-reset: gr-step; }
body.tk-dark .gr-steps li { counter-increment: gr-step; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 0.35rem 1.25rem; padding: 1.6rem 0; border-top: 1px solid var(--hd-line); }
body.tk-dark .gr-steps li:last-child { border-bottom: 1px solid var(--hd-line); }
body.tk-dark .gr-steps li::before { content: counter(gr-step, decimal-leading-zero); grid-row: span 2; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; color: var(--hd-sky); line-height: 1.9; }
body.tk-dark .gr-steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.025em; }
body.tk-dark .gr-steps p { margin: 0; color: var(--hd-soft); max-width: 50ch; }
body.tk-dark .gr-steps-media { position: sticky; top: calc(var(--hdr) + 2rem); display: grid; gap: 1rem; }
body.tk-dark .gr-steps-media .hd-core { aspect-ratio: 4 / 3; }

/* ---------- creative: reel in a phone beside a collage ---------- */
body.tk-dark .gr-reel-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
body.tk-dark .gr-phone-col { display: grid; justify-items: center; gap: 1.1rem; }
body.tk-dark .gr-phone {
  position: relative; width: clamp(260px, 23vw, 320px); aspect-ratio: 9 / 19; padding: 11px; border-radius: 54px;
  background: linear-gradient(150deg, #2a3246 0%, #11151f 45%, #1c2230 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 0 0 4px #06080e, 0 50px 120px -40px rgba(37, 99, 235, 0.55), 0 30px 60px -24px rgba(0, 0, 0, 0.85);
}
body.tk-dark .gr-phone::before, body.tk-dark .gr-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a3246; }
body.tk-dark .gr-phone::before { right: -3px; top: 26%; height: 13%; }
body.tk-dark .gr-phone::after { left: -3px; top: 20%; height: 18%; }
body.tk-dark .gr-phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 44px; background: #000; }
body.tk-dark .gr-phone-screen video { width: 100%; height: 100%; object-fit: cover; }
body.tk-dark .gr-phone-island { position: absolute; z-index: 2; top: 11px; left: 50%; width: 31%; height: 27px; transform: translateX(-50%); border-radius: 20px; background: #000; }
body.tk-dark .gr-phone-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 0.5rem; padding: 50px 16px 22px; font-size: 0.85rem; font-weight: 700; color: #fff; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); pointer-events: none; }
body.tk-dark .gr-phone-bar img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
body.tk-dark .gr-reel-cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity 0.6s var(--hd-ease); }
body.tk-dark .gr-reel-cover.is-off { opacity: 0; pointer-events: none; }
body.tk-dark .gr-phone-cap { margin: 0; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); text-align: center; }

body.tk-dark .gr-collage {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(70px, 7vw, 104px); gap: 0.75rem;
  grid-template-areas:
    "a a a a b b"
    "a a a a b b"
    "a a a a c c"
    "d d e e c c"
    "d d e e f f"
    "d d e e f f";
}
body.tk-dark .gr-collage figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hd-line); }
body.tk-dark .gr-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--hd-ease); }
body.tk-dark .gr-collage figure:hover img { transform: scale(1.04); }
body.tk-dark .gr-collage figure:nth-child(1) { grid-area: a; }
body.tk-dark .gr-collage figure:nth-child(2) { grid-area: b; }
body.tk-dark .gr-collage figure:nth-child(3) { grid-area: c; }
body.tk-dark .gr-collage figure:nth-child(4) { grid-area: d; }
body.tk-dark .gr-collage figure:nth-child(5) { grid-area: e; }
body.tk-dark .gr-collage figure:nth-child(6) { grid-area: f; }
body.tk-dark .gr-points { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
body.tk-dark .gr-points li { padding-top: 1.1rem; border-top: 1px solid var(--hd-line); color: var(--hd-soft); }
body.tk-dark .gr-points b { display: block; margin-bottom: 0.3rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

/* ---------- lead engine: four stages, alternating rows ---------- */
body.tk-dark .gr-stages { margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none; display: grid; gap: clamp(4rem, 8vw, 7rem); }
body.tk-dark .gr-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
body.tk-dark .gr-stage:nth-child(even) .gr-stage-media { order: -1; }
body.tk-dark .gr-stage-icon { width: 88px; height: 88px; object-fit: contain; margin-bottom: 1.25rem; filter: drop-shadow(0 18px 40px rgba(37, 99, 235, 0.25)); }
body.tk-dark .gr-stage-tag { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hd-sky); }
body.tk-dark .gr-stage h3 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
body.tk-dark .gr-stage-copy > p { margin: 1rem 0 0; color: var(--hd-soft); max-width: 46ch; }
body.tk-dark .gr-stage-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
body.tk-dark .gr-stage-list li { padding: 0.85rem 0 0.85rem 1.6rem; border-top: 1px solid var(--hd-line); position: relative; color: var(--hd-soft); }
body.tk-dark .gr-stage-list li:last-child { border-bottom: 1px solid var(--hd-line); }
body.tk-dark .gr-stage-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--hd-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
body.tk-dark .gr-stage-list b { color: var(--text); font-weight: 600; }
body.tk-dark .gr-stage-media .hd-core { aspect-ratio: 5 / 4; }
body.tk-dark .gr-stage-media--phone { display: grid; justify-items: center; }
body.tk-dark .gr-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.75rem; align-items: end; }
body.tk-dark .gr-pair .hd-core { aspect-ratio: auto; }
body.tk-dark .gr-pair figure:first-child .hd-core { aspect-ratio: 4 / 5; }
body.tk-dark .gr-pair figure:last-child .hd-core { aspect-ratio: 9 / 16; }
body.tk-dark .gr-art { position: relative; aspect-ratio: 1200 / 1490; max-width: 460px; margin-inline: auto; }
body.tk-dark .gr-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--hd-r); -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }

/* ---------- reassurance strip ---------- */
body.tk-dark .gr-promises { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
body.tk-dark .gr-promises li { padding: 1.5rem; border-radius: var(--hd-r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hd-line); color: var(--hd-soft); }
body.tk-dark .gr-promises b { display: block; margin-bottom: 0.4rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

/* ---------- faq ---------- */
body.tk-dark .gr-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
body.tk-dark .gr-faq-side { position: sticky; top: calc(var(--hdr) + 2rem); }
body.tk-dark .gr-faq-side p { margin: 1.25rem 0 0; color: var(--hd-soft); max-width: 36ch; }

/* ---------- related links ---------- */
body.tk-dark .gr-related { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.tk-dark .gr-related a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0.25rem 1rem; align-items: center; height: 100%; padding: 1.25rem; border-radius: var(--hd-r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hd-line); text-decoration: none; transition: background-color 0.3s var(--hd-ease), box-shadow 0.3s var(--hd-ease); }
body.tk-dark .gr-related a:hover { background: #131b2b; box-shadow: inset 0 0 0 1px var(--hd-line-2); }
body.tk-dark .gr-related img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
body.tk-dark .gr-related b { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
body.tk-dark .gr-related span { font-size: 0.95rem; color: var(--mute); }

/* ---------- closing CTA over the horizon art ---------- */
body.tk-dark .gr-cta { position: relative; isolation: isolate; padding-top: clamp(6rem, 10vw, 8rem); padding-bottom: clamp(15rem, 26vw, 22rem); text-align: center; overflow: hidden; }
body.tk-dark .gr-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: image-set(url(/images/art-studio/bg-cta-horizon.webp) type("image/webp"), url(/images/art-studio/bg-cta-horizon.jpg) type("image/jpeg")) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
body.tk-dark .gr-cta .hd-h2 { max-width: 18ch; margin-inline: auto; }
body.tk-dark .gr-cta .hd-lede { margin-inline: auto; }
body.tk-dark .gr-cta .gr-ctas { justify-content: center; }
body.tk-dark .gr-cta .gr-note { margin-inline: auto; text-align: center; }
body.tk-dark .gr-note a:not([class]) { color: var(--hd-sky); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  body.tk-dark .gr-hero-grid, body.tk-dark .gr-formats-grid, body.tk-dark .gr-steps-grid, body.tk-dark .gr-faq-grid, body.tk-dark .gr-stage { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-hero-media { max-width: 640px; margin-inline: auto 0; padding-left: 14%; }
  body.tk-dark .gr-hero-inset { left: 0; bottom: -12%; width: 34%; }
  body.tk-dark .gr-steps-media, body.tk-dark .gr-faq-side { position: static; }
  body.tk-dark .gr-steps-media { grid-template-columns: 1fr 1fr; }
  body.tk-dark .gr-stage:nth-child(even) .gr-stage-media { order: 0; }
  body.tk-dark .gr-reel-grid { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tk-dark .gr-related { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-phone { width: min(290px, 74vw); }
}
@media (max-width: 699px) {
  body.tk-dark .gr-cta::before { top: auto; height: 400px; background-size: cover; background-position: center bottom; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
}
@media (max-width: 767px) {
  body.tk-dark .gr-platforms, body.tk-dark .gr-rows, body.tk-dark .gr-points { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-rows li:last-child { border-bottom: 1px solid var(--hd-line); }
  body.tk-dark .gr-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; gap: 0.6rem; grid-template-areas: "a a" "a a" "b c" "d e" "f f"; }
  body.tk-dark .gr-collage figure { border-radius: 14px; }
}
@media (max-width: 559px) {
  body.tk-dark .gr-hero h1 { font-size: clamp(2.35rem, 10.5vw, 2.9rem); }
  body.tk-dark .gr-ctas .hd-btn { width: 100%; justify-content: space-between; }
  body.tk-dark .gr-ctas .hd-btn--ghost { justify-content: center; }
  body.tk-dark .gr-hero-inset { width: 38%; }
  body.tk-dark .gr-proof { gap: 0.5rem; }
  body.tk-dark .gr-proof li { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
  body.tk-dark .gr-formats { gap: 0.5rem; }
  body.tk-dark .gr-formats p { font-size: 0.7rem; letter-spacing: 0.08em; }
  body.tk-dark .gr-steps-media { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-steps-media figure:nth-child(2) { display: none; }
  body.tk-dark .gr-promises { grid-template-columns: minmax(0, 1fr); }
  body.tk-dark .gr-stage-icon { width: 72px; height: 72px; }
  body.tk-dark .gr-cta .gr-ctas .hd-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body.tk-dark .gr-collage img, body.tk-dark .gr-reel-cover { transition: none; }
  body.tk-dark .gr-collage figure:hover img { transform: none; }
}
