/* Security */
.immersive .security {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #eef2f5;
  background: #060b12;
  border-bottom: 0;
}
.security-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 0, transparent 70%);
}
.security-backdrop::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 100%, rgb(112 244 198 / 14%), transparent 60%);
}
.security-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 96px);
}
.security .section-kicker {
  margin-bottom: 14px;
  color: #7f8c9b;
}
.immersive .security h2 {
  max-width: 640px;
  color: #fff;
}
.security-head-aside {
  display: grid;
  gap: 28px;
  justify-items: start;
  max-width: 420px;
}
.immersive .security-description {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.6;
  color: #aab5c1;
}
.security-button {
  background: #fff;
  color: #060b12;
}
.security-button:hover {
  background: #70f4c6;
  color: #060b12;
}
.security-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.security-pillar {
  position: relative;
  padding: 8px 32px 0 28px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.security-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  height: 0;
  background: #70f4c6;
  transition: height 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.security-pillar.is-lit::before {
  height: 100%;
}
.security-badge {
  width: 88px;
  height: 88px;
  margin-bottom: 96px;
  fill: none;
  stroke: #d7dee6;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.security-badge-ring {
  stroke: #8c9aaa;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.4s ease-out;
}
.security-pillar.is-lit .security-badge-ring {
  stroke-dashoffset: 0;
}
.security-badge-tick {
  stroke: #70f4c6;
}
.security-pillar-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 11px;
  color: #c9d2db;
}
.security-pillar-tags span {
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 2px;
  background: rgb(255 255 255 / 4%);
}
.security-pillar h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
}
.security-pillar p {
  margin-top: 12px;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.55;
  color: #aab5c1;
}

/* Industries */
.immersive .industry-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.immersive .industry-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.immersive .industry-card {
  min-height: 420px;
  padding: 28px;
  background: #0f1a23;
  border-radius: 4px;
}
.immersive .industry-card::after {
  background: linear-gradient(#07131e55 0%, #07131e33 45%, #07131ee6 100%);
}
.industry-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 4px;
  font-size: 10px;
  color: #eef2f5;
}
.industry-chip span {
  padding: 5px 8px;
  background: #07131ea6;
  border: 1px solid #ffffff2b;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.industry-chip span + span {
  color: #c9d2db;
}
.immersive .industry-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  max-width: none;
}
.immersive .industry-card p {
  margin-top: 8px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.55;
  color: #d7dee6;
}
.immersive .industry-cta {
  justify-content: flex-start;
  color: var(--ink);
  background: #70f4c6;
}
.industry-cta::after {
  display: none;
}
.industry-cta .industry-chip span {
  color: var(--ink);
  background: #07131e14;
  border-color: #07131e2b;
}
.industry-cta .card-body {
  margin-top: 40px;
}
.industry-cta h3 {
  font-size: clamp(28px, 2.6vw, 40px);
}
.immersive .industry-cta p {
  color: #1c3a2e;
}
.industry-cta-mark {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 22px;
  transition: transform 0.3s;
}
.industry-cta:hover .industry-cta-mark {
  transform: rotate(90deg);
}

/* Tools section: shared copy block */
.systems-intro {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 20px 48px;
  align-items: end;
  margin-bottom: 36px;
}
.systems-intro .section-kicker {
  margin-bottom: 18px;
}
.systems-intro h2 {
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.systems-intro > p {
  max-width: 460px;
  margin: 0;
  padding-bottom: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.systems-steps {
  grid-column: 1 / -1;
  list-style: none;
  margin: 16px 0 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}
.systems-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.systems-steps b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.systems-steps span {
  font-size: 10px;
  padding-top: 3px;
  color: var(--muted);
}

/* Variant A: dark full-width band */
.systems-section.variant-a {
  padding-block: clamp(80px, 8vw, 128px);
  background: #0a1017;
  color: #fff;
}
.systems-section.variant-a::before,
.systems-section.variant-a::after {
  display: none;
}
.immersive .systems-section.variant-a > .wrap {
  width: min(100% - var(--gutter) * 2, 1440px);
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.variant-a .systems-intro p,
.variant-a .systems-steps li,
.variant-a .systems-steps span {
  color: #aab5c1;
}
.variant-a .systems-steps b {
  color: #fff;
}
.variant-a .section-kicker {
  color: #7f8c9b;
}
.variant-a .systems-steps {
  border-top-color: rgb(255 255 255 / 12%);
}
.variant-a .systems-intro > p {
  color: #aab5c1;
}
.variant-a .fit-map .eyebrow {
  color: #7f8c9b;
}
.variant-a .fit-column > ul > li {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(255 255 255 / 12%);
  color: #eef2f5;
}
.variant-a .fit-column > ul > li.is-active {
  background: rgb(255 255 255 / 8%);
  border-color: #70f4c6;
  box-shadow: inset 3px 0 #70f4c6;
}
.variant-a .fit-inputs > ul > li,
.variant-a .fit-outputs strong {
  color: #fff;
}
.variant-a .fit-outputs li div > span,
.variant-a .fit-tool-name,
.variant-a .fit-note {
  color: #aab5c1;
}
.variant-a .fit-tool-more {
  color: #c9d2db;
  border-color: rgb(255 255 255 / 25%);
}
.variant-a .fit-column .icon {
  color: #70f4c6;
}
.variant-a .fit-engine-card {
  border-color: rgb(112 244 198 / 35%);
  box-shadow: 0 0 0 6px rgb(112 244 198 / 6%);
}
.variant-a .fit-tracks path {
  stroke: rgb(255 255 255 / 15%);
}
.variant-a .fit-signals path {
  stroke: #70f4c6;
}

/* Variant B: white, no frame */
.systems-section.variant-b {
  padding-block: clamp(80px, 8vw, 128px);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.systems-section.variant-b::before,
.systems-section.variant-b::after {
  display: none;
}
.immersive .systems-section.variant-b > .wrap {
  width: min(100% - var(--gutter) * 2, 1440px);
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.variant-b .fit-column > ul > li {
  background: #fff;
  border-color: var(--line);
}
.variant-b .fit-column > ul > li.is-active {
  border-color: #00c878;
  box-shadow: inset 3px 0 #00c878;
}
.variant-b .fit-engine-card {
  background: var(--ink);
  border-color: var(--ink);
}
.variant-b .fit-signals path {
  stroke: #00c878;
}
.variant-b .fit-column .icon {
  color: #00c878;
}

/* Variant C: split, copy left, map right */
.systems-section.variant-c {
  padding-block: clamp(80px, 8vw, 128px);
  background: #f1f3ee;
  color: var(--ink);
}
.systems-section.variant-c::before,
.systems-section.variant-c::after {
  display: none;
}
.immersive .systems-section.variant-c > .wrap {
  width: min(100% - var(--gutter) * 2, 1440px);
  padding: 0;
  display: grid;
  grid-template-columns: 0.72fr 2fr;
  gap: 56px;
  align-items: start;
  background: transparent;
  box-shadow: none;
}
.variant-c .systems-steps {
  grid-template-columns: 1fr;
}
.variant-c .systems-intro {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 0;
  position: sticky;
  top: 96px;
}
.variant-c .systems-intro h2 {
  font-size: clamp(28px, 2.4vw, 36px);
}
.variant-c .fit-map {
  grid-column: auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.variant-c .fit-column > ul > li {
  background: #f8f9fa;
}
.variant-c .fit-column > ul > li.is-active {
  border-color: #00c878;
  box-shadow: inset 3px 0 #00c878;
}
.variant-c .fit-signals path {
  stroke: #00c878;
}

@media (max-width: 960px) {
  .security-head,
  .systems-intro,
  .systems-steps {
    grid-template-columns: 1fr;
  }
  .security-pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .security-badge {
    margin-bottom: 40px;
  }
  .immersive .industry-grid {
    grid-template-columns: 1fr;
  }
  .immersive .industry-card {
    min-height: 320px;
  }
  .immersive .systems-section.variant-c > .wrap {
    grid-template-columns: 1fr;
  }
  .variant-c .systems-intro {
    position: static;
  }
}

/* What we do */
.how-section {
  background: #f7f6f3;
  border-top: 1px solid var(--line);
}
.how-head {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  grid-template-areas:
    "kicker kicker"
    "title lead";
  gap: 18px 48px;
  align-items: end;
  margin-bottom: 64px;
}
.how-head .section-kicker {
  grid-area: kicker;
  margin: 0;
}
.how-head h2 {
  grid-area: title;
  font-size: clamp(38px, 4.6vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}
.how-head .how-lead {
  grid-area: lead;
  max-width: 440px;
  margin: 0;
  padding-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 48px 96px;
  align-items: center;
}
.what-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #111;
}
.what-steps li {
  display: grid;
  grid-template-columns: 56px 130px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid #c9c6bf;
}
.what-num {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #111;
}
.what-verb {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.what-steps p {
  margin: 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}
.what-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.what-hair {
  fill: none;
  stroke: #c9c6bf;
  stroke-width: 1;
}
.what-ink {
  fill: none;
  stroke: #111;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.what-ink-fill {
  fill: #111;
}
.what-return {
  fill: none;
  stroke: #2f9e6e;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.what-big {
  font-family: "Manrope", sans-serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.06em;
  fill: none;
  stroke: #111;
  stroke-width: 1;
}
.what-big-light {
  stroke: #fff;
}
.what-label {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  letter-spacing: -0.02em;
  fill: #111;
}
.what-label-light {
  fill: #fff;
}
.what-caption {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: #666;
}
.what-caption-mint {
  fill: #7ff5c3;
}
@media (max-width: 760px) {
  .how-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "lead";
    gap: 16px;
    margin-bottom: 40px;
  }
}

/* The what-we-do diagram draws itself once when it enters view. */
@media (prefers-reduced-motion: no-preference) {
  .js .what-diagram:not(.is-drawn) .what-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js .what-diagram:not(.is-drawn) .what-fade {
    opacity: 0;
  }
  .js .what-diagram:not(.is-drawn) .what-fill-late {
    fill-opacity: 0;
  }
  .js .what-diagram.is-drawing .what-draw {
    stroke-dasharray: 1;
    animation: what-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: var(--t, 0s);
  }
  .js .what-diagram.is-drawing .what-draw-return {
    animation-duration: 1.4s;
  }
  .js .what-diagram.is-drawing .what-fade {
    animation: what-fade 0.5s ease both;
    animation-delay: var(--t, 0s);
  }
  .js .what-diagram.is-drawing .what-fill-late {
    animation: what-fill 0.6s ease both;
    animation-delay: var(--t, 0s);
  }
}
@keyframes what-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes what-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes what-fill {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}
