:root {
  --v7-ink: #041827;
  --v7-ink-soft: #0a2636;
  --v7-panel: #102d3d;
  --v7-paper: #f4f8f7;
  --v7-muted: #aec4c8;
  --v7-accent: #2bd8c4;
  --v7-accent-2: #69a8ff;
  --v7-line: rgba(105, 168, 255, 0.34);
  --v7-shell: min(1180px, calc(100vw - 48px));
}

body.has-visual-story-v7 {
  overflow-x: clip;
}

body.has-visual-story-v7 .conversion-form-note {
  color: #a7bbc2;
}

.v7-story,
.v7-story * {
  box-sizing: border-box;
}

.v7-story :where(h2, h3, p, strong, span, a, li, button, label) {
  hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.v7-story :where(a[href^="http"], a[href^="mailto:"], [data-v7-break-safe]) {
  overflow-wrap: anywhere !important;
}

.v7-story :where(p, .v7-motion__result strong, .v7-intro__outcome) {
  text-wrap: balance;
}

.v7-story .v7-display {
  text-wrap: balance;
}

.v7-shell {
  width: var(--v7-shell);
  margin-inline: auto;
}

.v7-band {
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--v7-paper);
  background: var(--v7-ink);
}

.v7-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(43, 216, 196, 0.14), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(105, 168, 255, 0.13), transparent 38%);
}

.v7-eyebrow {
  margin: 0 0 18px;
  color: var(--v7-accent);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.v7-display {
  max-width: 900px;
  margin: 0;
  color: var(--v7-paper);
  font-size: 4.8rem;
  font-weight: 780;
  line-height: 0.92;
}

.v7-display__text {
  display: inline;
}

.v7-intro {
  padding: clamp(92px, 11vw, 156px) 0;
}

.v7-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  gap: 92px;
  align-items: center;
}

.v7-intro__copy > p:last-of-type {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--v7-muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.v7-signals {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.v7-signals li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid rgba(174, 196, 200, 0.2);
  color: var(--v7-paper);
}

.v7-signals span {
  color: var(--v7-accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.v7-intro__visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(105, 168, 255, 0.25);
  border-radius: 8px;
  background: var(--v7-panel);
}

.v7-picture,
.v7-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.v7-picture img {
  object-fit: cover;
}

.v7-intro__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 24, 39, 0.88), transparent 58%);
  pointer-events: none;
}

.v7-intro__outcome {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  left: 28px;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.08;
}

.v7-boundary {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
  width: min(44%, 210px);
  color: var(--v7-accent);
  filter: drop-shadow(0 0 18px rgba(43, 216, 196, 0.26));
}

.v7-boundary svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.v7-boundary :is(path, polygon, polyline) {
  fill: rgba(43, 216, 196, 0.12) !important;
  stroke: currentColor !important;
  stroke-width: 7 !important;
  vector-effect: non-scaling-stroke;
}

.v7-motion {
  min-height: 0;
}

.v7-motion__stage {
  position: relative;
  display: grid;
  gap: 34px;
  width: 100%;
  min-height: 0;
  padding: clamp(64px, 8vh, 96px) 0 clamp(44px, 7vh, 72px);
  overflow: visible;
}

.v7-motion__head {
  position: relative;
  z-index: 4;
}

.v7-motion__head .v7-display {
  max-width: 960px;
  font-size: 4.5rem;
}

.v7-motion__viewport {
  position: relative;
  display: grid;
  gap: 24px;
  width: var(--v7-shell);
  min-height: 0;
  margin: 0 auto;
}

.v7-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 64px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(105, 168, 255, 0.24);
  border-radius: 8px;
  background: color-mix(in srgb, var(--v7-panel) 92%, transparent);
}

.v7-card__media {
  min-width: 0;
  height: 100%;
  min-height: 370px;
  overflow: hidden;
  border-radius: 6px;
}

.v7-card__copy {
  padding: 20px clamp(12px, 2vw, 30px) 20px 0;
}

.v7-card__index {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1px solid rgba(43, 216, 196, 0.42);
  border-radius: 50%;
  color: var(--v7-accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.v7-card h3 {
  margin: 0;
  color: var(--v7-paper);
  font-size: 2.05rem;
  line-height: 0.98;
}

.v7-card p {
  margin: 20px 0 0;
  color: var(--v7-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.v7-motion__result {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  width: var(--v7-shell);
  margin: 8px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(174, 196, 200, 0.2);
}

.v7-motion__result span {
  color: var(--v7-accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.v7-motion__result strong {
  max-width: 700px;
  color: var(--v7-paper);
  font-size: 1.5rem;
  text-align: right;
}

.v7-atlas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: var(--v7-shell);
  margin: 42px auto 0;
}

.v7-atlas-band {
  padding: 84px 0 112px;
}

.v7-atlas__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(105, 168, 255, 0.2);
  border-radius: 8px;
  color: var(--v7-paper);
  text-decoration: none;
  background: rgba(16, 45, 61, 0.7);
}

.v7-atlas__item .v7-boundary {
  position: static;
  width: 84px;
}

.v7-atlas__item strong {
  font-size: 1.12rem;
}

.v7-close {
  min-height: 100svh;
}

.v7-close__stage {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: clamp(76px, 10vh, 120px) 0;
}

.v7-close .v7-display {
  max-width: 1040px;
}

.v7-route {
  position: relative;
  margin-top: clamp(48px, 8vh, 84px);
}

.v7-route svg {
  display: block;
  width: 100%;
  height: 180px;
  overflow: visible;
}

.v7-route__base,
.v7-route__line {
  fill: none;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.v7-route__base {
  stroke: rgba(174, 196, 200, 0.18);
}

.v7-route__line {
  stroke: var(--v7-accent);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.v7-route ol {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v7-route li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 8px;
  translate: -50% -50%;
}

.v7-route li::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 4px solid var(--v7-ink);
  border-radius: 50%;
  background: var(--v7-accent);
  box-shadow: 0 0 0 1px var(--v7-accent), 0 0 24px rgba(43, 216, 196, 0.55);
}

.v7-route li span {
  color: var(--v7-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.v7-route li strong {
  max-width: 160px;
  color: var(--v7-paper);
  font-size: 1rem;
}

.v7-close__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 50px;
  padding: 0 24px;
  border-radius: 6px;
  color: var(--v7-ink);
  font-weight: 800;
  text-decoration: none;
  background: var(--v7-accent);
}

.v7-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Each route family keeps one deterministic visual grammar. */
.v7-story[data-v7-family="service-index"] .v7-motion__viewport {
  width: min(1320px, calc(100vw - 32px));
}

.v7-story[data-v7-family="service-index"] .v7-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  border-left: 5px solid var(--v7-accent);
}

.v7-story[data-v7-family="sector-index"] .v7-motion__viewport,
.v7-story[data-v7-family="sector"] .v7-motion__viewport {
  width: min(1040px, calc(100vw - 48px));
  perspective: 1500px;
}

.v7-story[data-v7-family="sector-index"] .v7-card,
.v7-story[data-v7-family="sector"] .v7-card {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.08fr);
  background: rgba(10, 38, 54, 0.96);
}

.v7-story[data-v7-family="sector-index"] .v7-card__media,
.v7-story[data-v7-family="sector"] .v7-card__media {
  order: 2;
}

.v7-story[data-v7-family="locality-index"] .v7-card,
.v7-story[data-v7-family="locality"] .v7-card {
  grid-template-columns: minmax(0, 0.86fr) minmax(330px, 0.62fr);
  background: #0a2636;
}

.v7-card__media > .v7-boundary {
  top: 28px;
  right: 28px;
  width: min(42%, 180px);
}

.v7-story[data-v7-family="service"] .v7-card {
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.18fr);
  border-left: 5px solid var(--v7-accent-2);
}

.v7-story[data-v7-family="service"] .v7-card__media {
  order: 2;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 14%);
}

.v7-story[data-v7-family="service-locality"] .v7-card:nth-child(even) {
  grid-template-columns: minmax(310px, 0.68fr) minmax(0, 1.12fr);
}

.v7-story[data-v7-family="service-locality"] .v7-card:nth-child(even) .v7-card__media {
  order: 2;
}

.v7-story[data-v7-family="sector-locality"] .v7-card {
  display: block;
  padding: 0;
  background: #071e2d;
}

.v7-story[data-v7-family="sector-locality"] .v7-card__media {
  position: relative;
}

.v7-story[data-v7-family="sector-locality"] .v7-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 39, 0.96) 0 38%, rgba(4, 24, 39, 0.42) 72%, rgba(4, 24, 39, 0.08));
}

.v7-story[data-v7-family="sector-locality"] .v7-card__copy {
  position: relative;
  z-index: 2;
  width: auto;
  padding: 42px;
}

@media (min-width: 1025px) {
  html.v7-motion-ready .v7-motion {
    min-height: 100vh;
  }

  html.v7-motion-ready .v7-motion__stage {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    min-height: 100svh;
    overflow: hidden;
  }

  html.v7-motion-ready .v7-motion__viewport {
    display: block;
    min-height: 420px;
    margin: clamp(32px, 5vh, 56px) auto 18px;
  }

  html.v7-motion-ready .v7-card {
    position: absolute;
    inset: 0;
  }

  html.v7-motion-ready .v7-card:not(:first-child) {
    visibility: hidden;
  }

  html.v7-motion-ready .v7-story[data-v7-family="sector-index"] .v7-card,
  html.v7-motion-ready .v7-story[data-v7-family="sector"] .v7-card {
    inset: 3% 5%;
  }

  html.v7-motion-ready .v7-story[data-v7-family="sector-locality"] .v7-card {
    display: block;
    padding: 0;
  }

  html.v7-motion-ready .v7-story[data-v7-family="sector-locality"] .v7-card__media {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
  }

  html.v7-motion-ready .v7-story[data-v7-family="sector-locality"] .v7-card__copy {
    width: min(48%, 520px);
    padding: 54px;
  }
}

@media (max-width: 1024px) {
  :root { --v7-shell: min(900px, calc(100vw - 40px)); }
  .v7-display { font-size: 4.7rem; }
  .v7-intro__grid { grid-template-columns: 1fr; gap: 42px; }
  .v7-intro__visual { width: min(100%, 760px); aspect-ratio: 16 / 10; }
  .v7-motion__stage { min-height: auto; padding-block: 84px; overflow: visible; }
  .v7-motion__viewport { min-height: 0; }
  .v7-card { grid-template-columns: 1fr 0.72fr; }
  .v7-story[data-v7-family] .v7-card { grid-template-columns: 1fr 0.72fr; }
  .v7-story[data-v7-family] .v7-card__media { order: initial; clip-path: none; }
  .v7-story[data-v7-family="sector-locality"] .v7-card { display: block; }
  .v7-story[data-v7-family="sector-locality"] .v7-card__copy { width: min(58%, 500px); padding: 42px; }
  .v7-card h3 { font-size: 1.8rem; }
  .v7-atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v7-close__stage { align-content: start; padding-top: 64px; }
}

@media (min-width: 721px) and (max-width: 820px) {
  .v7-card,
  .v7-story[data-v7-family] .v7-card,
  .v7-story[data-v7-family="sector-locality"] .v7-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v7-story[data-v7-family="sector-locality"] .v7-card__copy {
    width: auto;
  }

  .v7-card__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 720px) {
  :root { --v7-shell: calc(100vw - 32px); }
  .v7-display { font-size: 3.05rem; line-height: 0.94; }
  .v7-intro { padding-block: 76px; }
  .v7-intro__grid { grid-template-columns: 1fr; gap: 38px; }
  .v7-intro__visual { aspect-ratio: 4 / 4.8; }
  .v7-motion__stage { display: block; padding-block: 76px; overflow: visible; }
  .v7-motion__head .v7-display { font-size: 2.85rem; }
  .v7-motion__viewport { display: grid; gap: 16px; min-height: 0; margin-top: 34px; }
  .v7-card { display: grid; grid-template-columns: 1fr; gap: 0; padding: 12px; }
  .v7-story[data-v7-family] .v7-card { display: grid; grid-template-columns: 1fr; padding: 12px; border-left-width: 1px; }
  .v7-story[data-v7-family] .v7-card__media { position: relative; inset: auto; order: initial; clip-path: none; }
  .v7-story[data-v7-family="sector-locality"] .v7-card__media::after { display: none; }
  .v7-story[data-v7-family="sector-locality"] .v7-card__copy { width: auto; padding: 24px 10px 16px; }
  .v7-card__media { min-height: 250px; aspect-ratio: 4 / 3; }
  .v7-card__copy { padding: 24px 10px 16px; }
  .v7-card h3 { font-size: 1.65rem; }
  .v7-motion__result { display: grid; gap: 10px; margin-top: 24px; }
  .v7-motion__result strong { text-align: left; }
  .v7-atlas { grid-template-columns: 1fr; margin-top: 32px; }
  .v7-close, .v7-close__stage { min-height: auto; }
  .v7-route { margin-top: 44px; }
  .v7-route svg { height: 320px; }
  .v7-route path { d: path("M70 18 C250 80 250 156 76 176 S-30 270 240 304"); }
  .v7-route li:nth-child(1) { --x: 20% !important; --y: 5% !important; }
  .v7-route li:nth-child(2) { --x: 76% !important; --y: 48% !important; }
  .v7-route li:nth-child(3) { --x: 24% !important; --y: 91% !important; }
}

@media (prefers-reduced-motion: reduce) {
  .v7-story * { scroll-behavior: auto !important; animation: none !important; transition-duration: 0.01ms !important; }
  .v7-card { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}
