/* Home page layer */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 3.4vw, 48px) clamp(40px, 5vw, 72px); overflow: clip; background: radial-gradient(58% 64% at 78% 44%, rgba(28, 112, 178, .32), transparent 72%), var(--navy); }
.hero__in { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.5vw, 6.5rem); }
.hero .lede { margin-top: 28px; }
.hero .actions { margin-top: 36px; }
.hero__talk { margin-top: 28px; font-size: .95rem; color: var(--fg-2); }
.hero__talk a { color: var(--fg); font-weight: 500; }
@media (min-width: 1040px) {
  .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: min(720px, calc(100svh - var(--header-h) - 150px)); }
}

.netmap__title { font-size: .95rem; color: var(--fg-2); margin-bottom: 10px; }
.netmap__note { font-size: .8rem; color: var(--fg-3); margin-top: 12px; }
.netmap { position: relative; aspect-ratio: 1 / .9; }
.netmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netmap__lines line { stroke: rgba(91, 168, 224, .4); stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.netmap__lines .is-watch { stroke-dasharray: 2 6; stroke: rgba(91, 168, 224, .3); }
.netmap__lines .is-hot { stroke: var(--cyan); stroke-width: 1.75; }
.netmap__lines .is-bad { stroke: var(--amber); stroke-width: 2.25; }
.netmap__lines .is-cut { stroke: rgba(243, 247, 251, .22); stroke-dasharray: 1 7; stroke-width: 1.25; }
.netmap__packets { position: absolute; inset: 0; pointer-events: none; }
.pkt { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 2px rgba(0, 212, 255, .7); will-change: transform; }
.pkt--bad { background: var(--amber); box-shadow: 0 0 10px 2px rgba(245, 181, 68, .7); }

.node { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 999px; color: var(--fg); font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s, box-shadow .2s, background .2s; }
.node::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .18); transition: background .3s, box-shadow .3s; }
.node--plain { background: var(--navy); border-style: dashed; color: var(--fg-2); padding-left: 15px; }
.node--plain::before { display: none; }
a.node:hover, a.node:focus-visible, a.node.is-active { border-color: var(--cyan); background: var(--navy-3); box-shadow: 0 0 0 4px rgba(0, 212, 255, .12), 0 0 34px -4px rgba(0, 212, 255, .55); }
.node.is-flagged { border-color: var(--amber); }
.node.is-flagged::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 181, 68, .25); }
.cut-mark { position: absolute; left: 33.5%; top: 61.5%; translate: -50% -50%; z-index: 1; padding: 2px 9px; border-radius: 999px; background: var(--navy); border: 1px solid var(--line); font-size: .72rem; color: var(--fg-2); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.cut-mark.is-on { opacity: 1; }

.readout { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; min-height: 84px; }
.readout .gizmo { flex: none; }
.readout__say { background: var(--navy-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-size: .95rem; line-height: 1.45; max-width: 46ch; transition: border-color .3s; }
.readout__say[data-state="bad"] { border-color: var(--amber); }

@media (max-width: 560px) {
  .netmap { aspect-ratio: 1 / 1.12; margin-inline: 2px; }
  .node { font-size: .76rem; padding: 7px 10px 7px 9px; gap: 6px; }
  .node--plain { padding-left: 10px; }
  .cut-mark { display: none; }
}

/* ---------- Services ---------- */
.offer { display: grid; gap: 40px; align-items: center; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); }
.offer h3 { font-size: var(--step-3); max-width: 14ch; }
.offer__copy > * + * { margin-top: 18px; }
.offer__copy > p:not(.price-line) { color: var(--fg-2); max-width: 46ch; }
.offer__copy .actions { margin-top: 28px; }
.offer__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); align-items: start; margin-bottom: calc(-1 * clamp(110px, 16vw, 230px)); }
.offer__phones .phone:nth-child(2) { margin-top: 34px; }
.offer__phones .phone:nth-child(3) { margin-top: 68px; }
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.nudge { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 36px; }
.nudge h3 { font-size: var(--step-2); }
.nudge p { color: var(--fg-2); margin-top: 6px; }

/* ---------- Work: stacking case panels ---------- */
.cases { display: grid; gap: 28px; }
.case { display: grid; gap: 28px 48px; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 3.2vw, 44px); box-shadow: 0 -24px 60px -36px rgba(0, 0, 0, .8); }
.case__copy > * + * { margin-top: 16px; }
.case__copy h3 { font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem); }
.case__copy p { color: var(--fg-2); font-size: 1rem; }
.case__copy .more { display: inline-block; margin-top: 22px; }
.case__visual { position: relative; padding: 0 7% 7% 0; align-self: center; }
.case__inset { position: absolute; right: 0; bottom: 0; width: 23%; }
.case__inset--wide { width: 46%; }
.case__stats dt { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); }
.case__stats dt.mono { font-family: var(--mono); font-weight: 600; letter-spacing: -0.04em; }
@media (min-width: 1000px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "copy visual" "stats stats"; }
  .case--flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "visual copy" "stats stats"; }
  .case__copy { grid-area: copy; }
  .case__visual { grid-area: visual; }
  .case__stats { grid-area: stats; }
}
@media (min-width: 1000px) and (min-height: 840px) {
  .case { position: sticky; top: calc(var(--header-live, 68px) + 14px + var(--n, 0) * 12px); }
  .case:nth-child(2) { --n: 1; }
  .case:nth-child(3) { --n: 2; }
  .case:nth-child(4) { --n: 3; }
}

/* ---------- About ---------- */
.about__main h2 { margin-bottom: 32px; }
.about__lead { font-family: var(--display); font-size: var(--step-2); line-height: 1.24; letter-spacing: -0.015em; font-weight: 500; }
.about__main p + p { margin-top: 18px; color: var(--fg-2); max-width: 58ch; }
.about__why h3 { font-size: var(--step-1); margin-bottom: 18px; }
.why { border-top: 1px solid var(--line); }
.why > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.why dt { font-family: var(--display); font-weight: 650; font-size: var(--step-1); letter-spacing: -0.01em; }
.why dd { color: var(--fg-2); font-size: .98rem; margin-top: 4px; }

/* ---------- Approach: the rule draws itself as the steps scroll in ---------- */
.approach__steps { position: relative; }
@media (min-width: 820px) {
  @supports (animation-timeline: view()) {
    .approach__steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: left; animation: draw-rule linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
}
@keyframes draw-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
