/* R&D page only: capability cards, development process, case groups, solution screens.
   Source of values: docs/design-concept-main.md section 10 */

/* Hero aurora: menu 4 of the lime > blue scale (components.css .hero.photo) */
.hero.photo {
  --aur-a: var(--aur-4);
  --aur-b: var(--aur-5);
}

/* Screen reader only text */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */
.rd {
  padding: 140px var(--gutter);
}
.rd.mist {
  background: var(--mist);
}
.rd.dark {
  background:
    radial-gradient(
      900px 560px at 92% 0%,
      rgba(0, 118, 152, 0.26),
      transparent 70%
    ),
    var(--night);
  color: #fff;
}
.rd.caps-band {
  background: #fff;
}
.rd-lead {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.dark .rd-lead {
  color: rgba(255, 255, 255, 0.72);
}
.sec-head > .rd-lead {
  flex-shrink: 1;
  text-align: right;
}
/* 연구개발 lead: two set lines, split at the full stop (br), so no width cap */
#research .rd-lead {
  max-width: none;
}
/* 개발 사례 lead: one line under the title */
#cases .rd-lead {
  max-width: none;
  white-space: nowrap;
}

/* Round line icon */
.ic {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.6s var(--ease),
    color 0.6s var(--ease);
}

/* 02 Cases on the dark band: featured photo cards, then the hardware and software lists (one row per case) */
/* Jump links to the two groups, right side of the section head */
.case-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-jump a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.6s var(--ease),
    background 0.6s var(--ease),
    color 0.6s var(--ease);
}
.case-jump a b {
  font-family: Sora, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #35b7d9;
}
.case-jump a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 0 0 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease);
}
.case-jump a:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}
.case-jump a:hover b {
  color: var(--teal);
}
.case-jump a:hover::after {
  transform: translateY(3px) rotate(45deg);
}
/* Hardware and software groups, both open */
.case-group {
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.case-group + .case-group {
  margin-top: 88px;
}
.case-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.case-head .ttl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.case-head h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.case-head h3 .cnt {
  margin-left: 6px;
  font-family: Sora, sans-serif;
  font-weight: 300;
  color: #35b7d9;
}
.scope {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: right;
  text-wrap: pretty;
}
/* Featured cases: photo cards from src/data/stories.json, the newest one large on the left and two stacked on the right.
   The photo fills the card and a dark wash from the bottom carries the text; the whole card opens story-<id>.html */
.case-feat-wrap {
  margin-bottom: 96px;
}
.case-feat-wrap > .lbl {
  margin-bottom: 28px;
}
.case-feat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}
.cf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 30px;
  border-radius: 24px;
  background: var(--night);
  color: #fff;
}
.cf:first-child {
  grid-row: span 2;
  padding: 36px 40px 40px;
}
.cf-img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.cf-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 18, 26, 0.3) 0%,
    rgba(3, 18, 26, 0.1) 30%,
    rgba(3, 18, 26, 0.55) 62%,
    rgba(3, 18, 26, 0.92) 100%
  );
}
.cf:hover .cf-img img {
  transform: scale(1.04);
}
.cf-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 60px;
}
.cf .chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.cf-tech {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.cf-txt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.cf h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.cf:first-child h3 {
  font-size: 30px;
  line-height: 1.35;
}
.cf p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: pretty;
}
.cf:not(:first-child) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cf-go {
  color: #fff;
}
.cf-go:hover {
  color: #fff;
}
.cf-go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.cf-go:focus-visible {
  outline: none;
}
.cf:has(.cf-go:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
/* Ring arrow at the top right; fills white on hover (the arrow stays put).
   Clicks pass through to the card link (.cf-go::after) under it */
.cf-ic {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition:
    background 0.6s var(--ease),
    color 0.6s var(--ease);
}
.cf:first-child .cf-ic {
  top: 32px;
  right: 32px;
}
.cf:hover .cf-ic {
  background: #fff;
  color: var(--ink);
}

/* Case lists: one row per case. Number, title, then the work (hardware) or the tech stack (software) */
.rlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.rr {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 40px;
  padding: 26px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.rr[hidden] {
  display: none;
}
.rr .no {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  color: #35b7d9;
  font-variant-numeric: tabular-nums;
}
.rr h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.rr .desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.rr .stack {
  align-self: center;
  margin: 0;
  padding: 0;
  border: 0;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.stack li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: Sora, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}
.rd-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.rd-more[hidden] {
  display: none;
}
.dark .scope {
  color: rgba(255, 255, 255, 0.62);
}
.dark .stack li {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
}
.dark .btn-line {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.dark .btn-line:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}
.dark :focus-visible {
  outline-color: #fff;
}

/* 01 Research: capability blocks on the white band */
.cap-block {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 80px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.cap-block:last-child {
  padding-bottom: 0;
}
.cap-head {
  position: sticky;
  top: calc(var(--subnav-h, 120px) + 48px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cap-head h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.cap-head p {
  margin: 0;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.caps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.cap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px 32px 32px;
  border-radius: 24px;
  background: var(--mist);
  transition:
    box-shadow 0.6s var(--ease),
    background 0.6s var(--ease);
}
.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 118, 152, 0.1),
    transparent 60%
  );
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.cap:hover {
  background: #fff;
  box-shadow: var(--shadow);
}
.cap:hover::before {
  opacity: 1;
}
.cap-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: auto;
}
.cap .no {
  font-family: Sora, sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--ink-2);
  transition: color 0.6s var(--ease);
}
.cap:hover .no {
  color: var(--teal);
}
.cap:hover .ic {
  border-color: var(--teal);
}
.cap h4 {
  margin: 48px 0 0;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  transition: color 0.6s var(--ease);
}
.cap:hover h4 {
  color: var(--teal);
}
.cap h4.en {
  font-family: Sora, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cap p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 01 Research: development process on the mist band, drawn as a flow.
   The request card sits on the left; one line leaves it and splits up to the hardware card and down to the software
   card (svg.fork, stretched over the gap; the strokes keep their width). Lime dashes keep flowing along the line from
   the request into both branches (paused off screen by rnd.js: .off).
   Order of entrance: request card, the line draws out, both branch cards together, then their lines one by one.
   Below 1180px it becomes a tree, see the max-width: 1180px block */
.steps-wrap {
  --fork: 180px; /* the gap between the request and the branches, where the line runs */
  position: relative;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  column-gap: var(--fork);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* The request card keeps its own height, centred on the row where the line leaves */
.step-start {
  align-self: center;
}
.step-card {
  position: relative;
  flex: 1;
  padding: 32px 32px 20px;
  border-radius: 24px;
  background: #fff;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 40px;
  margin-bottom: 20px;
}
.step-hd h4 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.par-k {
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal);
}
.sub {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sub;
}
.sub li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
  line-height: 1.5;
}
.sub li::before {
  counter-increment: sub;
  content: counter(sub, decimal-leading-zero);
  flex: 0 0 24px;
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--teal);
}
/* Branches: two equal rows, so the line ends meet the card centres */
.par-cards {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.par-cards .sub {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
}
.par-cards .sub li {
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 6px;
  font-size: 16px;
}
/* The line: from the request card edge, splitting to both branch cards */
.fork {
  position: absolute;
  top: 0;
  left: calc(var(--fork) * -1);
  width: var(--fork);
  height: 100%;
  overflow: visible;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease) 0.6s;
}
.fork path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.fk-base {
  stroke: var(--teal);
  opacity: 0.45;
}
/* Soft glow ball: a near-zero dash with a round cap is a dot; the layer is blurred so it reads as a glowing orb.
   Two paths of the same length (trunk + up, trunk + down), so the orbs run the trunk as one and part at the fork.
   rnd.js redraws the paths in screen pixels and sets --fk-len (path length, px) and --fk-dur (constant speed),
   so the orb moves at one even pace from the request to the card */
.fork-glow {
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 2s;
}
.fork .fk-flow {
  stroke: var(--teal);
  stroke-width: 12;
  stroke-dasharray: 0.01 calc(var(--fk-len, 260) * 1px + 100px);
}
/* Arrival dot where each branch meets its card */
.par-cards .step-card::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 1.3s;
}

/* Entrance, once the steps come into view */
.steps-wrap.in .fork {
  clip-path: inset(0 0 0 0);
}
.steps-wrap.in .fork-glow {
  opacity: 1;
}
.steps-wrap.in .fork .fk-flow {
  animation: rdFlow var(--fk-dur, 3s) linear 2s infinite;
}
.steps-wrap.off .fork .fk-flow {
  animation-play-state: paused;
}
.steps-wrap.in .par-cards .step-card::before {
  opacity: 1;
}
.step-start {
  --d: 0.15s;
}
.step-par {
  --d: 1.3s;
}
/* Entrance runs as an animation (fill backwards only) so the hover lift is not held back */
.steps-wrap.in .step-card {
  animation: rdRise 0.7s var(--ease) var(--d) backwards;
}
.sub li:nth-child(2) {
  --i: 1;
}
.sub li:nth-child(3) {
  --i: 2;
}
.sub li:nth-child(4) {
  --i: 3;
}
.sub li:nth-child(5) {
  --i: 4;
}
.steps-wrap.in .sub li {
  animation: rdSlide 0.5s var(--ease) calc(var(--d) + 0.3s + var(--i, 0) * 0.08s) backwards;
}
/* The orb runs the whole path at an even pace, fading in at the request and out at the card */
@keyframes rdFlow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  10%,
  88% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: calc(var(--fk-len, 260) * -1px);
    opacity: 0;
  }
}
@keyframes rdTreeFlow {
  0% {
    top: calc(var(--drop) * -1);
    opacity: 0;
  }
  10%,
  88% {
    opacity: 1;
  }
  100% {
    top: calc(75% - 18px);
    opacity: 0;
  }
}
@keyframes rdSlide {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 03 Solution: intro with tech chips, the three control solutions (screens + text, alternating sides), then the four strengths */
.sol {
  overflow-x: clip;
}
.sol-head .rd-lead {
  max-width: 720px;
}
.sol-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 6px;
}
.sol-tech-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.sol-tech ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sol-tech li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: Sora, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.sol-tech li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}
.sol-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
/* Solution card: screens on one side, text on the other; even cards swap sides */
.sols {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.solc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.solc:nth-child(even) .solc-visual {
  order: 2;
}
.solc-visual {
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 48px 44px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--mist) 74%);
}
.solc-body {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 30px 20px;
}
.solc:nth-child(even) .solc-body {
  padding: 36px 20px 30px 36px;
}
.solc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.solc-name {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.solc-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}
.solc h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.solc h3[lang="en"] {
  font-family: Sora, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.solc .no {
  font-family: Sora, sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--teal);
}
.solc-body > p {
  margin: 20px 0 32px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  text-wrap: pretty;
}
.solc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
/* Screen mock-up: browser window with the phone overlapping its lower right corner. Both screens keep the capture's own ratio (no crop) */
.mock {
  position: relative;
  width: 100%;
  padding-bottom: 10%;
}
.mock-pc {
  position: relative;
  width: 86%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 31, 41, 0.08);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--track);
}
.mock-bar span {
  flex: 0 1 200px;
  height: 14px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--mist);
}
.mock-pc .mock-screen {
  display: block;
  width: 100%;
  height: auto;
}
.mock-pc .mock-screen.ph {
  aspect-ratio: 16/10;
}
.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  padding: 6px;
  border-radius: 26px;
  background: var(--night);
  box-shadow: 0 18px 40px rgba(3, 18, 26, 0.2);
}
.mock-phone .mock-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
}
.mock-phone .mock-screen.ph {
  aspect-ratio: 9/19.5;
}
.mock-pc .mock-screen.ph,
.mock-phone .mock-screen.ph {
  display: flex;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes rdRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fork,
  .fork-glow,
  .par-cards .step-card::before,
  .step-start::after,
  .step-par::before,
  .par-cards .step-card:first-child::after {
    transition: none;
  }
  .steps-wrap.in .fork .fk-flow,
  .steps-wrap.in .step-par::after,
  .steps-wrap.in .step-card,
  .steps-wrap.in .sub li {
    animation: none;
  }
  .hero .fade,
  .hero .pic {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 1440px) {
  .cap-block {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 56px;
  }
  .solc-visual {
    min-height: 400px;
    padding: 40px 32px;
  }
}
@media (max-width: 1180px) {
  #cases .rd-lead {
    white-space: normal;
  }
  /* Tree: the request on top; a line runs down from it and branches (├ └) into the two stacked cards.
     The trunk carries the same lime dashes, flowing down */
  .steps-wrap {
    --fork: 44px;
    --drop: 56px; /* space between the request and the first branch card */
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: var(--drop);
  }
  .step-start {
    align-self: stretch;
  }
  .fork {
    display: none;
  }
  .step-par {
    padding-left: var(--fork);
  }
  /* Trunk: from under the request card down to the software card, turning into it */
  .step-par::before {
    content: "";
    position: absolute;
    left: 22px;
    width: calc(var(--fork) - 22px);
    top: calc(var(--drop) * -1);
    bottom: calc((100% - 16px) / 4);
    border-left: 1.5px solid rgba(0, 118, 152, 0.45);
    border-bottom: 1.5px solid rgba(0, 118, 152, 0.45);
    border-radius: 0 0 0 16px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease) 0.6s;
  }
  /* The same glow ball, running down the trunk */
  .step-par::after {
    content: "";
    position: absolute;
    left: 17px;
    width: 12px;
    height: 12px;
    top: calc(var(--drop) * -1);
    border-radius: 50%;
    background: var(--teal);
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.6s var(--ease) 2s;
  }
  .steps-wrap.in .step-par::before {
    clip-path: inset(0 0 0 0);
  }
  .steps-wrap.in .step-par::after {
    opacity: 1;
    animation: rdTreeFlow 3s linear infinite;
  }
  .steps-wrap.off .step-par::after {
    animation-play-state: paused;
  }
  /* Branch into the hardware card */
  .par-cards .step-card:first-child::after {
    content: "";
    position: absolute;
    left: calc(22px - var(--fork));
    width: calc(var(--fork) - 22px);
    top: 50%;
    height: 1.5px;
    background: rgba(0, 118, 152, 0.45);
    opacity: 0;
    transition: opacity 0.3s var(--ease) 1.1s;
  }
  .steps-wrap.in .par-cards .step-card:first-child::after {
    opacity: 1;
  }
  .par-cards {
    gap: 16px;
  }
  .par-cards .sub {
    display: block;
  }
  .par-cards .sub li {
    flex-direction: row;
    gap: 16px;
    padding: 14px 0;
  }
  .case-feat {
    grid-template-rows: repeat(2, 260px);
  }
  .rr {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px 24px;
  }
  .rr .desc,
  .rr .stack {
    grid-column: 2;
  }
  .case-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .scope {
    text-align: left;
  }
  .cap-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cap-head {
    position: static;
  }
  .cap-head p {
    max-width: 640px;
  }
  .sol-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .solc {
    grid-template-columns: 1fr;
  }
  .solc:nth-child(even) .solc-visual {
    order: 0;
  }
  .solc-visual {
    min-height: 0;
    justify-content: center;
  }
  .mock {
    max-width: 680px;
    margin: 0 auto;
  }
  .solc-body,
  .solc:nth-child(even) .solc-body {
    padding: 20px 22px 22px;
  }
}
@media (max-width: 720px) {
  /* The head stacks: the lead goes back under the title on the left */
  .sec-head > .rd-lead {
    text-align: left;
  }
  .step-card {
    padding: 24px 22px 12px;
    border-radius: 20px;
  }
  .step-hd h4 {
    font-size: 22px;
  }
  .sub li,
  .par-cards .sub li {
    font-size: 16px;
    padding: 14px 0;
  }
  .rd {
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .case-group {
    padding-top: 40px;
  }
  .case-group + .case-group {
    margin-top: 64px;
  }
  .case-head {
    margin-bottom: 24px;
  }
  .case-head h3 {
    font-size: 26px;
  }
  .case-jump a {
    height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
  .case-feat-wrap {
    margin-bottom: 64px;
  }
  .case-feat-wrap > .lbl {
    margin-bottom: 20px;
  }
  .case-feat {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  .cf,
  .cf:first-child {
    grid-row: auto;
    min-height: 300px;
    padding: 22px 22px 24px;
    border-radius: 24px;
  }
  .cf:first-child {
    min-height: 380px;
  }
  .cf-ic,
  .cf:first-child .cf-ic {
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
  }
  .cf h3 {
    font-size: 20px;
  }
  .cf:first-child h3 {
    font-size: 24px;
  }
  .cf p {
    font-size: 14px;
  }
  .rr {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 20px 2px;
  }
  .rr .no {
    font-size: 17px;
  }
  .rr h4 {
    font-size: 17px;
  }
  .rr .desc {
    font-size: 14px;
  }
  .cap-block {
    padding: 48px 0;
    gap: 28px;
  }
  .cap-head h3 {
    font-size: 30px;
  }
  .caps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cap {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 20px;
  }
  .cap h4 {
    margin-top: 32px;
    font-size: 21px;
  }
  .ic {
    width: 52px;
    height: 52px;
  }
  .sol-tech {
    flex-direction: column;
    align-items: flex-start;
  }
  .sol-tech li {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
  }
  .sols {
    gap: 16px;
  }
  .solc {
    padding: 10px;
    gap: 12px;
    border-radius: 20px;
  }
  .solc-visual {
    padding: 24px 16px;
  }
  .solc-body,
  .solc:nth-child(even) .solc-body {
    padding: 10px 8px 8px;
  }
  .solc h3 {
    font-size: 28px;
  }
  .solc .no {
    font-size: 28px;
  }
  .solc-body > p {
    font-size: 15px;
    margin: 14px 0 24px;
  }
  .mock-bar {
    height: 22px;
    padding: 0 8px;
    gap: 4px;
  }
  .mock-bar i {
    width: 5px;
    height: 5px;
  }
  .mock-bar span {
    height: 10px;
    margin-left: 8px;
  }
  .mock-phone {
    width: 28%;
    padding: 3px;
    border-radius: 14px;
  }
  .mock-phone .mock-screen {
    border-radius: 11px;
  }
  .mock-pc .mock-screen.ph,
  .mock-phone .mock-screen.ph {
    font-size: 11px;
    padding: 0 6px;
  }
}
