/* sections: service rows, steps, marquee, checklist, rules list, form */
.services h2, .how h2, .trades h2 { max-width: 20ch; }
.svc-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc { position: relative; display: grid; gap: 1.25rem; padding-block: 2.25rem; border-top: 1.5px solid var(--line-paper); transition: background .3s ease; color: inherit; text-decoration: none; }
.svc::after { content: ""; position: absolute; left: 0; top: -1.5px; height: 3px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.svc:hover::after, .svc:focus-visible::after { transform: scaleX(1); }
.svc:last-child { border-bottom: 1.5px solid var(--line-paper); }
.svc h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.015em; }
.svc p { color: var(--muted-paper); max-width: 46ch; }
.svc .kind { font: 600 .9rem var(--f-body); color: var(--teal-text); margin-bottom: .5rem; display: block; }
.svc .more { display: inline-block; margin-top: .9rem; font-weight: 600; border-bottom: 2px solid var(--teal); padding-bottom: 1px; transition: transform .3s ease; }
.svc:hover .more { transform: translateX(6px); }
.viz { width: 180px; max-width: 100%; height: auto; justify-self: start; overflow: visible; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1.1fr 1.2fr 180px; gap: 3rem; align-items: center; padding-inline: 1rem; }
  .svc:hover { background: rgba(21, 24, 29, .035); }
  .viz { justify-self: end; }
}
.v-stroke { fill: none; stroke: var(--ink); stroke-width: 2; }
.v-fill { fill: var(--teal-deep); }
.v-bar { fill: var(--ink); transform-box: fill-box; transform-origin: left center; animation: grow 4.5s ease-in-out infinite; }
.v-bar.b2 { animation-delay: .35s; opacity: .55; }
.v-bar.b3 { animation-delay: .7s; opacity: .55; }
.v-btn { fill: var(--teal); transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; }
.v-img { fill: var(--teal-soft); stroke: var(--teal-deep); stroke-width: 2; }
@keyframes grow { 0% { transform: scaleX(0); } 22%, 82% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes pulse { 0%, 40% { transform: scale(1); } 55% { transform: scale(1.12); } 70%, 100% { transform: scale(1); } }
.m-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.m-arc { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; animation: glow 2.4s ease-in-out infinite; }
.m-arc.out { stroke-width: 3; animation-delay: .5s; }
.m-node { fill: var(--teal); transform-box: fill-box; transform-origin: center; animation: beat 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .25; } 35% { opacity: 1; } }
.col { fill: none; stroke: var(--line-paper); stroke-width: 2; }
.card { fill: var(--ink); }
.card.mv { fill: var(--teal); animation: hop 6s ease-in-out infinite; }
@keyframes hop { 0%, 12% { transform: translateX(0); } 30%, 48% { transform: translateX(58px); } 66%, 88% { transform: translateX(116px); } 100% { transform: translateX(0); } }

/* steps on a wire that lights as you scroll */
.steps { --p: 1; position: relative; margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 2.5rem; padding-left: 52px; }
.track { position: absolute; background: var(--ink-3); border-radius: 2px; left: 7px; top: 8px; bottom: 8px; width: 3px; }
.track i { display: block; width: 100%; height: calc(var(--p) * 100%); background: var(--teal); box-shadow: 0 0 18px rgba(43, 181, 201, .8); border-radius: 2px; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -52px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink-3); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.on::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(43, 181, 201, .18), 0 0 22px rgba(43, 181, 201, .8); }
.step h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--muted-ink); max-width: 34ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 56px 0 0; }
  .track { left: 0; right: 0; top: 19px; bottom: auto; width: auto; height: 3px; }
  .track i { width: calc(var(--p) * 100%); height: 100%; }
  .step::before { left: 0; top: -44px; }
}

/* trades marquee */
.trades { overflow: hidden; padding-bottom: clamp(3rem, 7vw, 6rem); }
.trades-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.trades-head p { color: var(--muted-paper); max-width: 52ch; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mq { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .mq { animation-play-state: paused; }
.mq ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; flex: none; }
.mq li { display: flex; align-items: center; font: 600 clamp(2.2rem, 1rem + 5vw, 4.6rem) var(--f-display); letter-spacing: -0.03em; white-space: nowrap; }
.mq li svg { width: clamp(70px, 9vw, 130px); height: 30px; margin-inline: clamp(1rem, 2.4vw, 2.2rem); flex: none; overflow: visible; }
.mq .g1 { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.mq .g2 { fill: var(--teal); }
@keyframes slide { to { transform: translateX(-50%); } }

/* checklist that ticks itself */
.checks-list { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 0; max-width: 780px; }
.checks-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; align-items: start; padding: 1.25rem 0; border-top: 1.5px solid var(--line-paper); }
.checks-list li:last-child { border-bottom: 1.5px solid var(--line-paper); }
.tick { width: 36px; height: 36px; margin-top: .1rem; }
.tick circle { fill: none; stroke: var(--ink-3); stroke-width: 2.5; }
.tick path { fill: none; stroke: var(--teal-text); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s ease .25s; }
.tick .ring { stroke: var(--teal-deep); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s ease; }
.js .checks-list li.in .tick path { stroke-dashoffset: 0; }
.js .checks-list li.in .tick .ring { stroke-dashoffset: 0; }
html:not(.js) .tick path, html:not(.js) .tick .ring { stroke-dashoffset: 0; }
.checks-list h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.checks-list p { color: var(--muted-paper); max-width: 52ch; }
.checks-list.on-ink li { border-color: var(--line-ink); }
.checks-list.on-ink p { color: var(--muted-ink); }
.checks-list.on-ink .tick circle { stroke: var(--ink-3); }
.checks-list.on-ink .tick path { stroke: var(--teal); }
.checks-list.on-ink .tick .ring { stroke: var(--teal); }

/* rules list */
.rules { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 800px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.rules li { display: grid; gap: .25rem; padding: 1.2rem 0; border-top: 1.5px solid var(--line-ink); position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: -1.5px; height: 3px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.rules li:hover::before { transform: scaleX(1); }
.rules b { font: 600 1.1rem var(--f-display); }
.rules span { color: var(--muted-ink); }

/* form */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: start; } }
.contact-grid h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.contact-grid .sub { margin-top: 1.1rem; max-width: 44ch; color: var(--muted-ink); font-size: 1.15rem; }
form { margin-top: 2rem; display: grid; gap: 1.1rem; }
.pair { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 600; font-size: .95rem; }
legend { padding: 0; }
.field { display: grid; gap: .45rem; min-width: 0; }
input[type="text"], select, textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 10px; background: var(--ink-2); color: var(--on-ink); border: 1.5px solid var(--ink-3); font: 400 1rem var(--f-body); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(43, 181, 201, .2); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .6rem; }
.checks label { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--ink-3); border-radius: 999px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s; }
.checks label:hover { border-color: var(--teal); }
.checks input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.checks label:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); }
.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
#formNote { color: var(--muted-ink); font-size: .95rem; }
.next { display: grid; gap: 1.5rem; padding: 1.75rem; border: 1px solid var(--line-ink); border-radius: 18px; background: var(--ink-2); }
.next h2 { font-size: 1.5rem; }
.next ol { list-style: none; margin: 0; padding: 0 0 0 34px; display: grid; gap: 1.4rem; position: relative; }
.next ol::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--ink-3); border-radius: 2px; }
.next ol::after { content: ""; position: absolute; left: 7px; top: 8px; width: 3px; height: 0; background: var(--teal); box-shadow: 0 0 14px rgba(43, 181, 201, .8); border-radius: 2px; animation: drawdown 2.4s .6s ease-out forwards; }
@keyframes drawdown { to { height: calc(100% - 16px); } }
.next li { position: relative; }
.next li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--teal); }
.next li b { display: block; font: 600 1.05rem var(--f-display); }
.next li span { color: var(--muted-ink); }

@media (prefers-reduced-motion: reduce) {
  .v-bar, .v-btn, .m-arc, .m-node, .card.mv { animation: none; opacity: 1; transform: none; }
  .mq { animation: none; width: auto; flex-wrap: wrap; }
  .mq ul + ul { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .svc::after, .rules li::before { transition: none; }
  .next ol::after { animation: none; height: calc(100% - 16px); }
  .tick path, .tick .ring { transition: none; stroke-dashoffset: 0; }
}
