/* Visual language shared by the nine pages. */
.header {
  position: sticky;
  top: 0;
  box-shadow: 0 3px 20px #103b4609;
}

.scroll-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  z-index: 8;
}

.scroll-track span {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

section[id] { scroll-margin-top: 100px; }
.section { position: relative; isolation: isolate; }
.visual-icon { display: block; width: 28px; height: 28px; flex: none; }

/* Each page opens with a diagram drawn in the brand's graphic language. */
.subhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.subhero::after { opacity: .11; right: -26%; }
.subhero h1 { font-size: clamp(2.65rem, 4.7vw, 4.7rem); max-width: 17ch; }
.subhero .lede { font-size: clamp(1.02rem, 1.3vw, 1.2rem); }
.subhero .buttons { gap: 10px; }
.subhero-copy { position: relative; z-index: 1; }

.scene {
  margin: 0;
  position: relative;
  width: 100%;
  color: #9cbfc0;
  border: 1px solid #90b7b341;
  border-radius: 16px 16px 56px 16px;
  background: radial-gradient(ellipse at 70% 36%, #29596690, transparent 70%);
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid #acc9c64a;
  border-radius: inherit;
  z-index: -1;
}

.scene-svg { display: block; width: 100%; height: auto; overflow: visible; }
.scene-plate { fill: #214b56; stroke: #9dbbb378; stroke-width: 1; }
.scene-highlight .scene-plate { fill: #103b46; stroke: #c2d94e; }
.scene-dot { fill: #c2d94e; }
.scene-title { fill: #f5f3ec; font: 750 14px Satoshi, Arial, sans-serif; }
.scene-small { fill: #d8e7e1; font: 500 11px Satoshi, Arial, sans-serif; letter-spacing: .04em; }
.scene-formula { fill: #c2d94e; font: 750 24px Satoshi, Arial, sans-serif; }
.scene-center { text-anchor: middle; }
.scene-signal { fill: #c2d94e; stroke: #c2d94e22; stroke-width: 12px; }

/* Visual anchors create a distinct rhythm as the reader scrolls. */
.service { min-height: 345px; overflow: hidden; }
.service-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 76px;
  position: relative;
  margin: 0 0 1.15rem;
}
.service-art .visual-icon { width: 46px; height: 46px; position: relative; z-index: 1; }
.service-ring {
  position: absolute;
  inset: -10px -8px 0;
  border: 1px solid #7da59a;
  border-radius: 12px 30px 10px 30px;
  transform: rotate(-8deg);
}
.service:nth-child(2) .service-ring { border-radius: 50%; transform: rotate(14deg); }
.service:nth-child(3) .service-ring { border-radius: 28px 8px 28px 8px; transform: rotate(9deg); }
.service .num { margin-bottom: 0; }
.service:nth-child(2) { background: var(--ink); color: var(--cream); }
.service:nth-child(2) .num,
.service:nth-child(2) p { color: #d3e1de; }
.service:nth-child(2) .service-art { color: var(--lime); }
.service:nth-child(2) .service-ring { border-color: #91aaa6; }
.service:nth-child(2) .foot { border-color: #779a98; }
.service:hover .service-ring { transform: rotate(0deg); }
.service-ring { transition: transform .35s ease; }

.rows { border-top: 0; }
.rows li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 1.05rem 0;
  align-items: start;
}
.rows li > .visual-icon {
  color: var(--blue);
  width: 35px;
  height: 35px;
  padding: 6px;
  border: 1px solid #b9cbbf;
  border-radius: 7px;
  background: #e5ece677;
}
.rows li > div > span { display: block; }

.tiles {
  gap: 14px;
  border: 0;
  background: none;
}
.tiles article {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px 4px 23px 4px;
  background: #fdfcf9;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 9px 20px #103b4606;
  transition: transform .2s ease, border-color .2s ease;
}
.tiles article:hover { transform: translateY(-4px); border-color: #608d85; }
.tiles article:nth-child(3n + 2) { background: #e6eddf; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tile-top .num { margin: 0; }
.tile-top .visual-icon { width: 37px; height: 37px; color: var(--blue); }
.learning-tiles article:first-child { background: var(--ink); color: var(--cream); }
.learning-tiles article:first-child p,
.learning-tiles article:first-child .num { color: #d1e1d8; }
.learning-tiles article:first-child .visual-icon { color: var(--lime); }

.steps-line {
  border-top: 0;
  gap: 0;
  position: relative;
}
.steps-line::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 0;
  right: 10%;
  height: 1px;
  background: #a4bdb4;
  z-index: -1;
}
.steps-line > div { padding: 0 24px 0 0; }
.step-node {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.3rem;
  background: var(--cream);
  border: 1px solid #809c90;
  border-radius: 50%;
  color: var(--ink);
}
.steps-line > div:last-child .step-node { background: var(--lime); }
.steps-line > div:last-child { padding-right: 0; }

.shot { padding: 13px 0 10px; }
.shot::before { inset: 0 5px 70px -14px; border-radius: 12px 12px 44px 12px; }
.shot-frame { position: relative; }
.product-tag {
  position: absolute;
  bottom: 13%;
  left: -20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 5px;
  border: 1px solid #c2d94e7a;
  background: #103b46;
  color: var(--cream);
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 5px 20px #103b4633;
}
.product-tag .visual-icon { color: var(--lime); width: 23px; height: 23px; }
.guide-num { display: flex; align-items: center; gap: .6rem; }
.guide-num .visual-icon { width: 30px; height: 30px; color: var(--blue); }
.guide { grid-template-columns: 76px 1fr minmax(45px, 140px); padding-block: 1.45rem; }

.article-copy > section { position: relative; }
.article-copy > section::before {
  content: "";
  display: block;
  width: 43px;
  height: 3px;
  margin-bottom: 1.1rem;
  background: var(--green);
  transform-origin: left;
}
.article-copy .inset { border-radius: 0 7px 18px 0; }
.aside { border-radius: 5px 5px 25px 5px; border-top: 3px solid var(--green); }
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta .wrap { position: relative; z-index: 1; }
.cta-pattern {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #103b462b;
  border-radius: 24px;
  right: 26%;
  top: -128px;
  transform: rotate(30deg);
  pointer-events: none;
}
.cta-pattern::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid #103b4624;
  border-radius: 16px;
}
.contact-box { border-radius: 5px 5px 32px 5px; border-top: 4px solid var(--green); }

@media (prefers-reduced-motion: no-preference) {
  .subhero-copy { animation: arrive .65s ease-out both; }
  .subhero .scene { animation: arrive .8s .12s ease-out both; }
  [data-animate] .motion-item {
    transition: opacity .6s ease, transform .6s cubic-bezier(.22,.68,.35,1);
    transition-delay: var(--motion-delay, 0ms);
  }
  .motion-pending .motion-item { opacity: .01; transform: translateY(22px); }
  .motion-in .motion-item { opacity: 1; transform: none; }
  .scene.is-active .scene-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-line 1.1s .1s ease forwards;
  }
  .scene.is-active .scene-card {
    animation: scene-arrive .7s ease-out both;
    animation-delay: var(--scene-delay, 120ms);
  }
  .scene.is-active .scene-signal { animation: signal-arrive .8s .65s ease both; }
  .scene.is-active .scene-signal.second { animation-delay: .9s; }
  .scene.is-active .scene-orbit { animation: orbit-reveal 1.5s ease-out both; transform-origin: 220px 185px; }
  .motion-in .product-tag { animation: scene-arrive .55s .3s ease both; }
  .motion-in .step-node { animation: scene-arrive .55s var(--motion-delay, 0ms) ease both; }
  .article-copy > section.motion-in::before { animation: accent-line .6s ease both; }
  .hero-art img { animation: geometry-enter 1.25s .1s ease both; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
  @keyframes scene-arrive { from { opacity: .05; transform: translateY(13px); } to { opacity: 1; transform: none; } }
  @keyframes signal-arrive { from { opacity: 0; } to { opacity: 1; } }
  @keyframes orbit-reveal { from { opacity: 0; transform: rotate(-24deg); } to { opacity: .35; transform: none; } }
  @keyframes accent-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes geometry-enter { from { opacity: .2; transform: translate(14px, 10px); } to { opacity: .98; transform: none; } }
}

@media (max-width: 1000px) {
  .subhero-grid { gap: 24px; }
  .subhero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
  .steps-line { gap: 26px; }
  .steps-line::before { display: none; }
  .steps-line > div { padding-right: 0; }
  .guide { grid-template-columns: 65px 1fr 25px; }
}

@media (max-width: 760px) {
  .subhero-grid { grid-template-columns: 1fr; gap: 30px; }
  .subhero { padding-block: 40px; }
  .subhero h1 { font-size: clamp(2.4rem, 8vw, 3.7rem); max-width: 20ch; }
  .scene { max-width: 500px; margin-inline: auto; }
  .scene::before { inset: 8px -6px -8px 6px; }
  .service { min-height: 0; display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; padding: 24px 22px; }
  .service-art { grid-row: 1 / 5; width: 64px; height: 70px; margin: 14px 0 0; }
  .service-art .visual-icon { width: 37px; height: 37px; }
  .service .num, .service h3, .service p, .service .foot { grid-column: 2; }
  .service h3 { margin-top: .6rem; }
  .service p { margin-bottom: 1rem; }
  .service-ring { inset: 0 -4px; }
  .tiles { gap: 10px; }
  .tile-top { margin-bottom: 1rem; }
  .product-tag { left: -7px; bottom: 7%; padding: 7px 10px; font-size: .7rem; }
  .guide { grid-template-columns: 35px 1fr 22px; gap: 12px; }
  .guide-num { flex-direction: column; gap: .35rem; }
  .guide-num .visual-icon { width: 26px; height: 26px; }
}

@media (max-width: 420px) {
  .subhero h1 { font-size: clamp(2.15rem, 8.5vw, 2.7rem); }
  .service { grid-template-columns: 56px 1fr; gap: 0 14px; padding: 22px 18px; }
  .service-art { width: 49px; height: 60px; }
  .service-art .visual-icon { width: 32px; height: 32px; }
  .service .num { font-size: .67rem; letter-spacing: .09em; }
  .steps-line { grid-template-columns: 1fr; gap: 16px; }
  .steps-line::before { display: block; top: 0; bottom: 29px; left: 24px; right: auto; width: 1px; height: auto; }
  .steps-line > div { position: relative; padding-left: 72px; min-height: 112px; }
  .step-node { position: absolute; left: 0; top: 0; width: 49px; height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-pending .motion-item { opacity: 1; transform: none; }
  .scroll-track { display: none; }
}
