/* RJG Mediaworks home page: scenes that only exist here (hero, search scene, pinned services, dashboard) plus section spacing.
   Everything shared (buttons, cards, forms, instruments, objects, brief, footer ...) is in ../site.css. */

/* ============================== 1. hero ============================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate; display: flex; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, #050505 0, rgba(5, 5, 5, .74) 22%, rgba(5, 5, 5, 0) 46%),
    radial-gradient(110% 75% at 50% 36%, rgba(5, 5, 5, 0) 52%, rgba(5, 5, 5, .85) 100%);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding-top: calc(var(--hdr-h) + 8px); padding-bottom: clamp(40px, 7vh, 76px); pointer-events: none; }
.hero__stage { position: relative; flex: 1 1 auto; min-height: 200px; --k: 1; }
.hero__text { flex: none; width: 100%; }
/* desk objects around the stars: left column, right column. --k (size) is fitted to the stage by home.js */
.hero__stage .dobj--websites { --x: 1%; --y: 3%; }
.hero__stage .dobj--ads { --x: 16%; --y: 32%; }
.hero__stage .dobj--seo { --x: 2.5%; --y: 61%; }
.hero__stage .dobj--marketing { --x: 20%; --y: 66%; }
.hero__stage .dobj--social { --x: 92.5%; --y: 0%; }
.hero__stage .dobj--content { --x: 85%; --y: 37%; }
.hero__stage .dobj--email { --x: 85.5%; --y: 69%; }
.hero__text :is(a, button, input, label), .hero__h1 .cy { pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(12px, 2vh, 20px); font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(245, 245, 244, .78); }

/* headline: "We [phrase] / for Queensland businesses." */
.hero__h1 { --base: 380ms; margin: 0 0 0 -.04em; font: 500 clamp(40px, 5.7vw, 90px)/.96 var(--sans); letter-spacing: -.045em; word-spacing: -.02em; }
.hl1, .hl2 { display: block; }
.hl2 { color: rgba(245, 245, 244, .46); }
.cycle > a:not(:first-child) { display: none; }
.cy { --cy-lh: .96; display: inline-block; vertical-align: top; position: relative; overflow: hidden; box-sizing: content-box; height: calc(var(--n, 1) * var(--cy-lh) * 1em); padding: .08em .2em .28em; margin: -.08em -.2em -.28em; }
.cy.is-set { transition: width .7s cubic-bezier(.7, 0, .2, 1), height .7s cubic-bezier(.7, 0, .2, 1); }
.cy.no-tr { transition: none !important; }
.cy__view { position: relative; display: block; height: 100%; }
.cy__ph { position: absolute; left: 0; top: 0; display: block; white-space: normal; line-height: var(--cy-lh); color: var(--hl-fg); cursor: pointer;
  transition: transform .7s cubic-bezier(.7, 0, .2, 1), opacity .45s ease .12s, filter .6s ease .1s; }
.cy__ph.is-below { transform: translateY(80%); opacity: 0; filter: blur(10px); }
.cy__ph.is-above { transform: translateY(-80%); opacity: 0; filter: blur(10px); transition-delay: 0s; transition-duration: .7s, .38s, .5s; pointer-events: none; }
.cy__ph--m { transition: none; }
/* the highlight behind the rolling phrase + a 2px underline that redraws per phrase.
   Colour lives in --hl-*; html[data-hl] picks a variant (prototype: ?hl=white|yellow|blue|orange|lime). */
.hero { --hl-bg: #ffe11a; --hl-bg-h: #fff04d; --hl-line: transparent; --hl-fg: #050505; --hl-h: 1.1em; --hl-y: .1em; }
html[data-hl="lime"] .hero { --hl-bg: rgba(198, 244, 50, .14); --hl-bg-h: rgba(198, 244, 50, .24); --hl-line: var(--lime); --hl-fg: #fff; --hl-h: .9em; --hl-y: .2em; }
html[data-hl="white"] .hero { --hl-bg: #f5f5f4; --hl-bg-h: #fff; --hl-fg: #050505; }
html[data-hl="blue"] .hero { --hl-bg: #3d5cff; --hl-bg-h: #5573ff; --hl-fg: #fff; }
html[data-hl="orange"] .hero { --hl-bg: #ff5a1f; --hl-bg-h: #ff7240; --hl-fg: #050505; }
.cy__t, .cycle > a:first-child {
  padding: .02em .16em; margin: 0 -.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--hl-bg), var(--hl-bg)), linear-gradient(var(--hl-line), var(--hl-line));
  background-repeat: no-repeat; background-size: 100% var(--hl-h), 100% 2px; background-position: 0 var(--hl-y), 0 1.04em;
}
.cycle > a:first-child { color: var(--hl-fg); }
.cy .cy__t { background-size: 100% var(--hl-h), 0 2px; transition: background-size .6s cubic-bezier(.3, .7, .2, 1); }
.cy .cy__t.is-draw { background-size: 100% var(--hl-h), 100% 2px; }
.cy:hover .cy__t { background-image: linear-gradient(var(--hl-bg-h), var(--hl-bg-h)), linear-gradient(var(--hl-line), var(--hl-line)); }
html[data-motion="off"] .cy .cy__t { transition: none; }
/* phones: the phrase can wrap; a taller line stops the next line's highlight covering the g/y tails above it */
@media (max-width: 1100px) { .cy { --cy-lh: 1.13; } }
html.js[data-motion="on"]:not(.no-rjg) .hero:not(.is-ready) .cycle { opacity: 0; transform: translateY(.3em); filter: blur(8px); }
html.js[data-motion="on"] .hero .cycle { transition: opacity .9s var(--ease) .55s, transform 1.1s var(--ease) .55s, filter .9s var(--ease) .55s; }
.cy__we { display: inline-block; margin-right: .08em; }

.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(20px, 3.6vh, 38px); }
.hero__lead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 24px 40px; min-width: 0; }
.hero__sub { max-width: 430px; font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.55; color: rgba(245, 245, 244, .74); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; pointer-events: none; }
.hero__cue::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: top; }
html[data-motion="on"] .hero__cue::after { animation: rjg-cue 2.8s cubic-bezier(.65, 0, .25, 1) infinite; }
@keyframes rjg-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html[data-motion="on"] .hero .dobj .obj { animation: rjg-objin 1s var(--ease) var(--od, 1s) backwards; }
.hero .dobj--websites { --od: .9s; } .hero .dobj--ads { --od: 1.02s; } .hero .dobj--seo { --od: 1.14s; } .hero .dobj--marketing { --od: 1.26s; } .hero .dobj--social { --od: 1s; } .hero .dobj--content { --od: 1.12s; } .hero .dobj--email { --od: 1.24s; }
@keyframes rjg-objin { from { opacity: 0; transform: translateY(28px) scale(.88) rotate(-5deg); } to { opacity: 1; transform: none; } }
.hero__hint { position: absolute; left: 1.5%; top: 29%; z-index: 3; display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none; margin: 0; }
.hero__hint-t { transition: opacity .5s; }
.hero.has-dragged .hero__hint-t { opacity: 0; }
.hero__tidy { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 5, 5, .6); cursor: pointer; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .5s, transform .5s var(--ease), color .3s, border-color .3s; pointer-events: auto; white-space: nowrap; }
.hero__tidy .ic { width: 13px; height: 13px; transition: transform .6s var(--ease); }
.hero__tidy:hover { color: #fff; border-color: var(--line-2); }
.hero__tidy:hover .ic { transform: rotate(-200deg); }
.hero.has-dragged .hero__tidy { opacity: 1; visibility: visible; transform: none; }
.hero__tidy--m { display: none; }
html[data-motion="on"] .hero .hero__hint { animation: rjg-fade .9s 2.4s both; }

/* mini field: How's your website doing? */
.hcheck { flex: none; width: min(350px, 100%); display: grid; gap: 10px; }
.hcheck__l { font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hcheck__row { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 22px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 5, 5, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .3s, box-shadow .4s; }
.hcheck__row:focus-within { border-color: rgba(198, 244, 50, .8); box-shadow: 0 0 0 1px rgba(198, 244, 50, .25), 0 0 36px rgba(198, 244, 50, .14); }
.hcheck input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 14px/1 var(--mono); letter-spacing: -.01em; color: #fff; }
.hcheck input::placeholder { color: rgba(245, 245, 244, .34); }
.hcheck__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: #050505; cursor: pointer; transition: transform .45s var(--ease), box-shadow .35s; }
.hcheck__go .ic { width: 17px; height: 17px; }
.hcheck__go:hover { transform: scale(1.07); box-shadow: 0 0 24px rgba(198, 244, 50, .65); }
.hero__objs { display: none; }

/* ============================== 2. search, then AI scene ============================== */
.scene { padding-block: clamp(96px, 12vw, 180px); }
.scene__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.scene__kicker { margin: -6px 0 clamp(14px, 2.4vh, 22px); font: 500 clamp(19px, 1.8vw, 26px)/1.1 var(--sans); letter-spacing: -.03em; color: #fff; }
.scene__h { font-size: clamp(40px, min(5vw, 8.4vh), 80px); }
.scene__h .ph { transition: opacity .5s; }
html[data-motion="on"] .scene__h .ph { opacity: .24; }
html:not([data-motion="on"]) .sstep-list { display: none; }
@media (min-width: 1024px) { html:not([data-motion="on"]) .scene__copy { position: sticky; top: 130px; align-self: start; } }
.try { display: grid; gap: 10px; max-width: 390px; margin-top: clamp(22px, 3.6vh, 38px); }
.try__row { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 7px 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: #080808; transition: border-color .3s, box-shadow .4s; }
.try__row:focus-within { border-color: rgba(198, 244, 50, .8); box-shadow: 0 0 0 1px rgba(198, 244, 50, .2), 0 0 30px rgba(198, 244, 50, .1); }
.try input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 13.5px/1 var(--mono); color: #fff; }
.try input::placeholder { color: rgba(245, 245, 244, .34); }
.try__go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #050505; cursor: pointer; transition: transform .45s var(--ease), box-shadow .35s; }
.try__go .ic { width: 15px; height: 15px; }
.try__go:hover { transform: scale(1.07); box-shadow: 0 0 22px rgba(198, 244, 50, .5); }
.try__hint { font: 400 11px/1.45 var(--mono); letter-spacing: .02em; color: var(--muted); }
.sstep-list { margin-top: clamp(26px, 4.4vh, 50px); max-width: 380px; }
.sstep { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; width: 100%; padding: 14px 0 0; border: 0; background: none; text-align: left; cursor: pointer; font: 400 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.sstep:hover, .sstep.is-on { color: #fff; }
.sstep__bar { grid-column: 1 / -1; position: relative; display: block; height: 1px; margin-top: 14px; background: var(--line); overflow: hidden; }
.sstep__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.sstep:not(.is-on):not(.is-done) .sstep__bar i { transform: scaleX(0); }
.sstep.is-done .sstep__bar i { transform: scaleX(1); opacity: .5; }

.stage__card { position: relative; width: 100%; max-width: 640px; margin-left: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 120px rgba(0, 0, 0, .6); display: flex; flex-direction: column; }
.stage__bar { flex: none; display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.stage__title { margin-left: 10px; margin-right: auto; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stage__body { position: relative; }
html[data-motion="on"] .stage__body { height: clamp(500px, 66vh, 520px); }
html[data-motion="on"] .panel { position: absolute; inset: 0; will-change: transform, opacity; }
.panel { position: relative; padding: 22px; }
.panel--a, .panel--c { background: var(--bg-2); }
html:not([data-motion="on"]) .chat__in { position: relative; left: auto; right: auto; bottom: auto; margin-top: 26px; }
.panel--b { padding: 0; }
.panel + .panel { border-top: 1px solid var(--line); }
html[data-motion="on"] .panel + .panel { border-top: 0; }

.sbox { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: #080808; font: 400 14px/1 var(--mono); color: #fff; }
.sbox__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbox__ic { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.caret { width: 1px; height: 18px; margin-left: -8px; background: #fff; flex: none; }
html[data-motion="on"] .caret { animation: rjg-blink 1s steps(2, jump-none) infinite; }
.sres-meta { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sres-rank b { color: #fff; font-weight: 500; margin-left: 4px; }
.sres { position: relative; height: 364px; }
.sr { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 16px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #0a0a0a; }
.sr__rank { font: 500 12px/1 var(--mono); color: var(--muted); }
.sr__body { min-width: 0; }
.sr__body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.25 var(--sans); letter-spacing: -.01em; color: rgba(245, 245, 244, .86); }
.sr__body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 11px/1.3 var(--mono); color: var(--muted); }
.sr--you { z-index: 2; border-color: var(--line-2); background: #111; }
.sr.is-lift { z-index: 4; background: #161616; box-shadow: 0 22px 60px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1); }
.sr--you .sr__body b { color: #fff; }
.sr__mark { display: none; align-items: center; }
.sr__mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(198, 244, 50, .9); }
.sr.is-top { border-color: rgba(198, 244, 50, .6); background: linear-gradient(rgba(198, 244, 50, .05), rgba(198, 244, 50, .05)), #111; box-shadow: 0 0 0 1px rgba(198, 244, 50, .1), 0 12px 40px rgba(198, 244, 50, .07); }
.sr.is-top .sr__rank { color: var(--lime); }
.sr.is-top .sr__mark { display: flex; }

.map { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not([data-motion="on"]) .map { position: relative; height: auto; aspect-ratio: 520 / 420; }
.m-park { fill: rgba(255, 255, 255, .035); }
.m-river { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 16; stroke-linecap: round; }
.m-minor path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.m-major path { fill: none; stroke: rgba(255, 255, 255, .17); stroke-width: 2.2; }
.m-radius { fill: rgba(198, 244, 50, .035); stroke: rgba(198, 244, 50, .32); stroke-width: 1; stroke-dasharray: 3 5; }
.m-pulse { fill: none; stroke: var(--lime); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pin path { fill: #0b0b0b; stroke: rgba(255, 255, 255, .6); stroke-width: 1.4; }
.pin circle { fill: rgba(255, 255, 255, .6); }
.pin--you path { fill: var(--lime); stroke: var(--lime); }
.pin--you circle { fill: #050505; }
.ml__box { fill: #050505; stroke: rgba(198, 244, 50, .7); stroke-width: 1; }
.ml__lead { stroke: rgba(198, 244, 50, .7); stroke-width: 1; }
.ml__dot { fill: var(--lime); }
.ml__t { font: 500 11px var(--mono); letter-spacing: .06em; fill: #fff; }
.ml__s { font: 400 10px var(--mono); letter-spacing: .06em; fill: var(--muted); }
.map__chip { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 5, 5, .86); font: 400 12px/1 var(--mono); color: #fff; }
.map__chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map__chip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.map__legend { position: absolute; left: 16px; bottom: 14px; font: 400 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.chat__head { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spark { width: 16px; height: 16px; fill: #fff; }
.bubble { width: fit-content; }
.bubble--q { max-width: 82%; margin: 22px 0 0 auto; padding: 13px 17px; border-radius: 18px 18px 4px 18px; background: rgba(255, 255, 255, .09); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.chat__a { margin-top: 26px; }
.ans { font-size: 18px; line-height: 1.6; color: rgba(245, 245, 244, .92); overflow-wrap: anywhere; }
.chat__in { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: #080808; font-size: 14.5px; color: rgba(245, 245, 244, .42); }
.chat__in i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.chat__in svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tk { display: inline; }
html[data-motion="on"] .tk { transition: opacity .35s, filter .35s; }
html[data-motion="on"] .tk:not(.on) { opacity: 0; filter: blur(5px); }
.cite { display: inline-flex; align-items: center; gap: 7px; padding: 1px 10px 1px 9px; border: 1px solid var(--lime); border-radius: 999px; background: rgba(198, 244, 50, .07); font-weight: 500; color: #fff; }
.cite i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.cite sup { margin-left: 1px; font: 500 10px/1 var(--mono); color: var(--lime); }
.think { display: none; gap: 5px; height: 22px; align-items: center; }
html[data-motion="on"] .think { display: flex; position: absolute; opacity: 0; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
html[data-motion="on"] .think i { animation: rjg-think 1s ease-in-out infinite; }
html[data-motion="on"] .think i:nth-child(2) { animation-delay: .15s; }
html[data-motion="on"] .think i:nth-child(3) { animation-delay: .3s; }
@keyframes rjg-think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.sources__l { margin-right: 4px; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.src { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 11px/1 var(--mono); color: rgba(245, 245, 244, .7); }
.src b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .1); font: 500 9px/1 var(--mono); color: #fff; }
.src--you { border-color: var(--lime); color: #fff; }

/* pinned (desktop, motion on) */
@media (min-width: 1024px) and (min-height: 700px) {
  html[data-motion="on"] .scene { height: 380vh; padding: 0; }
  html[data-motion="on"] .scene__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 56px; }
  html[data-motion="on"] .scene__sticky > .container { width: min(100% - 2 * var(--gutter), var(--maxw)); }
}
@media (max-width: 1023px), (max-height: 699px) { html[data-motion="on"] .stage__body { height: 520px; } }

/* ============================== 3. services (pinned instruments on desktop) ============================== */
.svc { padding-top: clamp(88px, 10vw, 156px); padding-bottom: clamp(72px, 9vw, 140px); border-top: 1px solid var(--line); }
.svc__head { margin-bottom: clamp(48px, 7vw, 96px); }
.svc__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.svc__stage { display: none; }
.svc__item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.svc__item:last-child { grid-column: 1 / -1; }
.svc__item .inst { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.svc__txt { position: relative; padding: 24px 26px 30px; }
.svc__name { display: flex; align-items: baseline; gap: 14px; font: 500 clamp(26px, 2.4vw, 32px)/1.08 var(--sans); letter-spacing: -.04em; margin-bottom: 12px; }
.svc__num { font: 400 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.svc__more p { color: rgba(245, 245, 244, .72); max-width: 46ch; }
.svc__go { margin-top: 22px; }
@media (min-width: 900px) {
  .svc__item:last-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc__item:last-child .inst { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
  .svc__item:last-child .svc__txt { align-self: center; padding: 40px; }
}
.svc[data-mode="pin"] .svc__track { height: calc(100vh + 7 * 46vh); }
.svc[data-mode="pin"] .svc__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 48px; }
.svc[data-mode="pin"] .svc__grid { width: min(100% - 2 * var(--gutter), var(--maxw)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.svc[data-mode="pin"] .svc__list { display: block; }
.svc[data-mode="pin"] .svc__item { display: block; border: 0; border-radius: 0; background: none; overflow: visible; }
.svc[data-mode="pin"] .svc__item.spot::before, .svc[data-mode="pin"] .svc__item.spot::after { display: none; }
.svc[data-mode="pin"] .svc__item:last-child { display: block; }
.svc[data-mode="pin"] .svc__txt { padding: 7px 0 7px 30px; }
.svc[data-mode="pin"] .svc__txt::before, .svc[data-mode="pin"] .svc__txt::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; }
.svc[data-mode="pin"] .svc__txt::before { background: var(--line); }
.svc[data-mode="pin"] .svc__txt::after { background: var(--lime); box-shadow: 0 0 12px rgba(198, 244, 50, .6); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease); }
.svc[data-mode="pin"] .svc__item.is-active .svc__txt::after { transform: scaleY(1); }
.svc[data-mode="pin"] .svc__name { margin: 0; font-size: clamp(30px, min(3.5vw, 5.4vh), 50px); line-height: 1.1; letter-spacing: -.045em; opacity: .25; cursor: pointer; transition: opacity .5s; }
.svc[data-mode="pin"] .svc__item:hover .svc__name { opacity: .55; }
.svc[data-mode="pin"] .svc__item.is-active .svc__name { opacity: 1; }
.svc[data-mode="pin"] .svc__num { min-width: 28px; }
.svc[data-mode="pin"] .svc__more { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .7s var(--ease), opacity .5s, visibility 0s .7s; }
.svc[data-mode="pin"] .svc__more-in { overflow: hidden; min-height: 0; }
.svc[data-mode="pin"] .svc__item.is-active .svc__more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
.svc[data-mode="pin"] .svc__more-in p { padding-top: 14px; padding-left: 42px; font-size: 17px; }
.svc[data-mode="pin"] .svc__more-in .tags { padding-left: 42px; margin-top: 16px; }
.svc[data-mode="pin"] .svc__more-in .svc__go { margin: 18px 0 14px 42px; }
.svc[data-mode="pin"] .svc__stage { display: block; position: relative; justify-self: end; width: min(100%, calc(100vh - 150px), 640px); aspect-ratio: 1; }
.svc[data-mode="pin"] .inst { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 20px; opacity: 0; visibility: hidden; transform: scale(.965); filter: blur(10px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s var(--ease), visibility 0s .6s; box-shadow: 0 50px 120px rgba(0, 0, 0, .55); }
.svc[data-mode="pin"] .inst.is-shown { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }

/* ============================== 4. dashboard ============================== */
.dsh { padding-top: clamp(88px, 10vw, 156px); padding-bottom: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); overflow: hidden; }
.dsh::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1400px, 140%); height: 700px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(50% 55% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%); }
.dsh__head { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dsh__head .label { justify-content: center; }
.dsh__head .h2 { max-width: 14ch; }
.dsh__head .lead { margin-top: 32px; }
.dsh__stage { position: relative; margin-top: clamp(56px, 7vw, 96px); perspective: 2200px; perspective-origin: 50% 0%; }
.dashwrap { transform-origin: 50% 0; will-change: transform; }
.dash { overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px; background: #0a0a0a; box-shadow: 0 80px 160px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02), inset 0 1px 0 rgba(255, 255, 255, .14); }
.dash__bar { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.dash__url { margin: 0 auto 0 14px; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.dash__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.dash__side { display: flex; flex-direction: column; gap: 22px; padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.ws { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.ws__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff; color: #050505; font: 600 10px/1 var(--mono); }
.ws__n { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }
.dash__nav { display: grid; gap: 2px; }
.dash__nav li { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13px; color: rgba(245, 245, 244, .6); }
.dash__nav li svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dash__nav li.is-on { background: rgba(255, 255, 255, .08); color: #fff; }
.dash__live { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 0 8px; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash__main { min-width: 0; padding: 22px 24px 26px; }
.dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.kpi b { font: 500 34px/1 var(--sans); letter-spacing: -.045em; margin-top: 8px; }
.kpi b small { font: 400 14px var(--mono); letter-spacing: 0; color: var(--muted); margin-left: 3px; }
.kpi__d { font: 400 11px/1 var(--mono); color: rgba(245, 245, 244, .7); }
.spk { position: absolute; right: 14px; top: 16px; width: 64px; height: 20px; fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.dcard { position: relative; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.dcard__h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart { grid-column: 1; grid-row: 1; }
.maps { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.log { grid-column: 1; grid-row: 2; }
.chart__svg { width: 100%; height: 150px; overflow: visible; }
.gl { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.chart__svg path[class^="sr"] { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sr1 { stroke: #fff; stroke-width: 2; }
.sr2 { stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.sr3 { stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.top-dot { fill: var(--lime); filter: drop-shadow(0 0 6px rgba(198, 244, 50, .9)); }
.cpt { fill: transparent; cursor: crosshair; }
.cmark { fill: #050505; stroke: #fff; stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s; pointer-events: none; }
.cmark.is-on { opacity: 1; }
.chart__leg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font: 400 10.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.chart__leg span { display: inline-flex; align-items: center; gap: 7px; }
.chart__leg b { font-weight: 500; color: #fff; }
.chart__leg i { width: 14px; height: 2px; border-radius: 1px; }
.k1 { background: #fff; } .k2 { background: rgba(255, 255, 255, .45); } .k3 { background: rgba(255, 255, 255, .22); }
.hm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hm i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font: 400 10px/1 var(--mono); font-style: normal; cursor: default; transition: box-shadow .2s, filter .2s; }
.hm i:hover { box-shadow: 0 0 0 1.5px #fff; filter: brightness(1.15); z-index: 2; }
.hm .c1 { background: var(--lime); color: #050505; font-weight: 500; }
.hm .c2 { background: rgba(255, 255, 255, .52); color: #050505; }
.hm .c3 { background: rgba(255, 255, 255, .17); color: rgba(255, 255, 255, .78); }
.hm .c4 { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .52); }
.hm__key { display: flex; gap: 16px; margin-top: auto; padding-top: 16px; font: 400 10.5px/1 var(--mono); color: var(--muted); }
.hm__key span { display: inline-flex; align-items: center; gap: 7px; }
.hm__key i { width: 10px; height: 10px; border-radius: 3px; }
.k-lime { background: var(--lime); } .k-w { background: rgba(255, 255, 255, .52); } .k-d { background: rgba(255, 255, 255, .12); }
.dtip { position: absolute; left: 0; top: 0; z-index: 6; padding: 7px 10px; border-radius: 8px; background: #fff; color: #050505; font: 500 11px/1.2 var(--mono); letter-spacing: .01em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, -100%) translateY(-6px); transition: opacity .15s, transform .25s var(--ease); }
.dtip::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: #fff; transform: rotate(45deg); border-radius: 1px; }
.dtip.is-on { opacity: 1; transform: translate(-50%, -100%) translateY(-10px); }
.dtip small { display: block; margin-top: 3px; font-weight: 400; opacity: .6; }
.log__list { display: grid; gap: 0; }
.log__list li { display: grid; grid-template-columns: 8px 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: rgba(245, 245, 244, .82); }
.log__list li:first-child { border-top: 0; padding-top: 0; }
.log__list li > i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.log__list time { font: 400 10.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.log__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

html[data-motion="on"] .dashwrap:not(.is-in) .hm i { opacity: 0; transform: scale(.5); }
html[data-motion="on"] .dashwrap .hm i { transition: opacity .6s var(--ease), transform .8s var(--ease), box-shadow .2s, filter .2s; transition-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms), 0s, 0s; }
html[data-motion="on"] .dashwrap.is-settled .hm i { transition-delay: 0s; }
html[data-motion="on"] .dashwrap .lines { clip-path: inset(-8px -8px -8px -8px); transition: clip-path 2.2s cubic-bezier(.5, .1, .25, 1) .35s; }
html[data-motion="on"] .dashwrap:not(.is-in) .lines { clip-path: inset(-8px 100% -8px -8px); }
html[data-motion="on"] .dashwrap:not(.is-in) .top-dot { opacity: 0; }
html[data-motion="on"] .dashwrap .top-dot { transition: opacity .5s 2s; }

/* ============================== 5-8. process, why, work, check ============================== */
.how { padding-block: clamp(88px, 10vw, 156px); border-top: 1px solid var(--line); }
.how__head .h2 { max-width: 11em; }
.why { padding-block: clamp(88px, 10vw, 156px); border-top: 1px solid var(--line); }
.why__head { margin-bottom: clamp(48px, 7vw, 96px); }
.work { padding-block: clamp(88px, 10vw, 156px); border-top: 1px solid var(--line); }
.work__head .h2 { max-width: 10em; }
.work__list { margin-top: clamp(48px, 6vw, 80px); }
.check { padding-block: clamp(88px, 10vw, 156px); border-top: 1px solid var(--line); overflow: hidden; }
.check::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; height: 80%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .045), transparent 70%); }
.check__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.check__copy .lead { margin-top: 32px; }
.check__tel { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 48px; font: 500 clamp(26px, 2.6vw, 36px)/1 var(--mono); letter-spacing: -.03em; transition: color .3s; }
.check__tel:hover { color: var(--lime); }

/* ============================== responsive ============================== */
@media (max-width: 1366px) { .hcheck { width: min(290px, 100%); } .hero__sub { max-width: 350px; } .hero__lead { gap: 22px 32px; } .hero .btn--lg { --h: 52px; padding: 0 24px; } }
@media (max-width: 1180px) {
  .hero__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hcheck { width: min(420px, 100%); }
  .hero__stage .dobj--websites { --x: 0%; --y: 2%; }
  .hero__stage .dobj--ads { --x: 17%; --y: 34%; }
  .hero__stage .dobj--seo { --x: 1%; --y: 64%; }
  .hero__stage .dobj--marketing { --x: 24%; --y: 68%; }
  .hero__stage .dobj--social { --x: 91%; --y: 0%; }
  .hero__stage .dobj--content { --x: 77%; --y: 38%; }
  .hero__stage .dobj--email { --x: 80%; --y: 70%; }
}
@media (max-width: 1023px) {
  .scene__grid { grid-template-columns: 1fr; gap: 40px; }
  .stage__card { margin: 0 auto; }
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .check__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__grid { grid-template-columns: 1fr; }
  .chart, .maps, .log { grid-column: 1; grid-row: auto; }
  .maps .hm, .maps .hm__key { max-width: 440px; margin-left: auto; margin-right: auto; }
  .maps .hm__key { width: 100%; }
}
@media (max-width: 640px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__inner { min-height: 100svh; padding-bottom: 40px; }
  .hero__stage { min-height: 250px; flex: 0 0 auto; height: clamp(250px, 36svh, 330px); }
  .hero__stage .dobj, .hero__hint { display: none; }
  .hero__h1 { font-size: clamp(38px, 11.4vw, 56px); }
  .hl1 .cy__we, .hl1 .cy { display: block; }
  .hl1 .cy__we { margin: 0 0 .04em; }
  .hero__lead { flex-direction: column; align-items: stretch; gap: 22px; width: 100%; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__objs { display: block; position: relative; height: 104px; --k: .5; margin-top: 6px; }
  .hero__objs .dobj { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .hero__tidy--m { display: inline-flex; left: auto; right: 0; top: auto; bottom: -34px; }
  .hero__objs { margin-bottom: 22px; }
  .hcheck { width: 100%; }
  .eyebrow { font-size: 11px; }
  .hero__cue { display: none; }
  .stage__card { max-width: 100%; }
  .panel { padding: 16px; }
  .bubble--q { max-width: 92%; }
  .scene__h { font-size: clamp(40px, 11vw, 56px); }
  .svc[data-mode="cards"] .svc__name { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dash__main { padding: 16px; }
  .log__list li { grid-template-columns: 8px 1fr; }
  .log__list time { display: none; }
  .kpi b { font-size: 28px; }
  .spk { display: none; }
  .dsh__head .h2 { max-width: none; }
  .dash__url { display: none; }
  .dash__bar .tag { margin-left: auto; }
}
