/* Service detail pages (e.g. Digital Marketing). Uses tokens from style.css and helpers from home.css. */

.mega-trigger.is-current,
.nav-link.is-current {
  color: var(--coral);
}

.sd-oneline {
  padding: 72px 0 88px;
  background: var(--surface-soft);
  color: var(--green);
}

.sd-oneline .wrap {
  max-width: 920px;
  padding: 56px 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sd-oneline .eyebrow {
  color: var(--coral);
}

.sd-oneline h2 {
  max-width: 18em;
  margin: 0;
  color: var(--green);
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

@media (max-width: 767px) {
  .sd-oneline .wrap {
    padding: 32px 22px;
  }
}

.sd-more {
  margin: 28px 0 0;
}

main .section-head .eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.75rem;
}

.sd-ico {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(10, 70, 60, 0.07);
  color: var(--green);
}

.sd-ico--dark {
  background: rgba(250, 120, 90, 0.16);
  color: var(--coral);
}

.sd-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-soft);
  box-shadow: 0 24px 60px rgba(6, 53, 46, 0.14);
}

.sd-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.sd-hero {
  position: relative;
  padding: 80px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(250, 120, 90, 0.26), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.06), transparent 40%),
    var(--green);
  color: #fff;
}

.sd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.sd-hero .eyebrow {
  color: #fff;
}

.sd-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.sd-hero-lead {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.sd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sd-hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sd-hero-pillars span + span::before {
  content: "•";
  margin: 0 12px;
  color: var(--coral);
}

/* Hero dashboard */
.sd-dash {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(2, 25, 21, 0.4);
  color: var(--green);
}

.sd-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sd-dash-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-dash-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 70, 60, 0.07);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.sd-dash-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.5);
  animation: sd-live 2s ease-out infinite;
}

.sd-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sd-kpi {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.sd-kpi-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd-spark {
  width: 100%;
  height: 34px;
  overflow: visible;
}

.sd-spark path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}

.sd-kpi:nth-child(even) .sd-spark path {
  stroke: var(--green);
}

.sd-kpi-trend {
  color: #1f8a5b;
  font-size: 0.74rem;
  font-weight: 800;
}

.sd-chart {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--green-deep);
  color: #fff;
}

.sd-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
}

.sd-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 700;
}

.sd-chart-legend i {
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 2px;
}

.sd-chart-legend .is-coral {
  background: var(--coral);
}

.sd-chart-legend .is-green {
  background: rgba(255, 255, 255, 0.35);
}

.sd-chart-body {
  position: relative;
  height: 130px;
}

.sd-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 8%;
  padding: 0 2%;
}

.sd-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, 0.16);
  transform-origin: bottom;
}

.sd-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sd-line-area {
  fill: url(#sdArea);
}

.sd-line-stroke {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sd-dash {
    animation: sd-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .sd-spark path {
    animation: sd-draw 1.4s ease 0.5s both;
  }

  .sd-bars span {
    animation: sd-grow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(0.5s + var(--d) * 0.08s);
  }

  .sd-line-stroke {
    animation: sd-draw-long 1.6s ease 0.9s both;
  }

  .sd-line-area {
    animation: sd-fade 0.8s ease 1.6s both;
  }
}

@keyframes sd-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes sd-draw {
  from {
    stroke-dashoffset: 160;
  }
}

@keyframes sd-draw-long {
  from {
    stroke-dashoffset: 420;
  }
}

@keyframes sd-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes sd-fade {
  from {
    opacity: 0;
  }
}

@keyframes sd-live {
  100% {
    box-shadow: 0 0 0 8px rgba(43, 182, 115, 0);
  }
}

/* Intro */
.sd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.sd-split .sd-photo {
  aspect-ratio: 4 / 3;
}

.sd-split-copy h2,
.sd-why-copy h2,
.sd-engine-copy h2,
.sd-faq-intro h2 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.sd-split-copy > p:not(.eyebrow),
.sd-engine-copy > p:not(.eyebrow),
.sd-faq-intro > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.sd-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.sd-highlights li,
.sd-metrics li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sd-highlights h3,
.sd-metrics h3,
.sd-who-list h3,
.sd-tool h3 {
  margin: 18px 0 8px;
  color: var(--green);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-highlights p,
.sd-metrics p,
.sd-who-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Approach */
.sd-approach {
  background: var(--surface-soft);
}

.sd-approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sd-approach-grid li {
  position: relative;
  padding: 34px 30px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background 0.25s ease;
}

.sd-approach-grid li:hover {
  background: rgba(250, 120, 90, 0.05);
}

.sd-step-num {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral-hover);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sd-step-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-left: 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.5;
}

.sd-approach-grid h3,
.sd-timeline h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sd-approach-grid p,
.sd-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Services */
.sd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sd-service {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sd-service:hover {
  border-color: rgba(250, 120, 90, 0.45);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.sd-service h3 {
  margin: 20px 0 10px;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sd-service > p:not(.sd-includes) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.sd-includes {
  margin: auto 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--coral-hover);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sd-checks {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-checks li {
  position: relative;
  padding-left: 26px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 600;
}

.sd-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(10, 70, 60, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fa785a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Who we help */
.sd-who {
  background: var(--surface-soft);
}

.sd-who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
}

.sd-photo--tall {
  min-height: 100%;
}

.sd-who-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-who-list li {
  position: relative;
  padding: 22px 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sd-who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--coral);
}

.sd-who-list h3 {
  margin-top: 0;
}

/* Why JOVIO */
.sd-why {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 120, 90, 0.24), transparent 34%),
    var(--green-deep);
  color: #fff;
}

.sd-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.sd-why .eyebrow,
.sd-why-copy h2 {
  color: #fff;
}

.sd-why-intro {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

.sd-photo--dark {
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.sd-features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-features li {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.sd-features li:hover {
  border-color: rgba(250, 120, 90, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.sd-features h3 {
  margin: 2px 0 6px;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-features p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Process timeline */
.sd-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--coral));
  opacity: 0.35;
}

.sd-timeline li {
  position: relative;
}

.sd-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.sd-timeline li:hover .sd-dot,
.sd-timeline li:last-child .sd-dot {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.sd-timeline h3 {
  font-size: 1.12rem;
}

.sd-timeline p {
  font-size: 0.93rem;
}

/* Growth engine diagram */
.sd-engine {
  background: var(--surface-soft);
}

.sd-engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.eng-card {
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 120, 90, 0.08), transparent 50%),
    #fff;
  box-shadow: var(--shadow-card);
}

.eng {
  --node-w: 168px;
  --gap: 34px;
  --branch-gap: 54px;
  --line: rgba(10, 70, 60, 0.28);
  --arrow: rgba(10, 70, 60, 0.45);
  margin: 0;
  padding: 0;
  list-style: none;
}

.eng-row {
  position: relative;
  display: flex;
  justify-content: center;
}

.eng-row + .eng-row {
  margin-top: var(--gap);
}

.eng-row + .eng-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--gap) * -1 + 4px);
  width: 2px;
  height: calc(var(--gap) - 12px);
  background: var(--line);
  transform: translateX(-50%);
}

.eng-row + .eng-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--arrow);
  border-bottom: 2px solid var(--arrow);
  transform: translateX(-50%) rotate(45deg);
}

/* Fork: Strategy splits into three channels, which merge back into Content.
   Columns have no gap so their centres sit exactly at 1/6, 3/6 and 5/6 of the row. */
.eng-row--branch,
.eng-row--merge {
  margin-top: var(--branch-gap);
}

.eng-row + .eng-row.eng-row--branch,
.eng-row + .eng-row.eng-row--merge {
  margin-top: var(--branch-gap);
}

.eng-row--branch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
}

.eng-row + .eng-row.eng-row--branch::before {
  top: calc(var(--branch-gap) * -0.5);
  left: calc(100% / 6);
  width: calc(100% * 4 / 6);
  height: 2px;
  transform: none;
}

.eng-row + .eng-row.eng-row--branch::after {
  top: calc(var(--branch-gap) * -1 + 4px);
  width: 2px;
  height: calc(var(--branch-gap) * 0.5 - 4px);
  border: 0;
  background: var(--line);
  transform: translateX(-50%);
}

.eng-row--branch .eng-node::before,
.eng-row--branch .eng-node::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  background: var(--line);
  transform: translateX(-50%);
}

.eng-row--branch .eng-node::before {
  top: calc(var(--branch-gap) * -0.5);
  height: calc(var(--branch-gap) * 0.5 - 8px);
}

.eng-row--branch .eng-node::after {
  bottom: calc(var(--branch-gap) * -0.5);
  height: calc(var(--branch-gap) * 0.5);
}

.eng-arrow {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--arrow);
  border-bottom: 2px solid var(--arrow);
  transform: translateX(-50%) rotate(45deg);
}

.eng-row + .eng-row.eng-row--merge::before {
  top: calc(var(--branch-gap) * -0.5);
  height: calc(var(--branch-gap) * 0.5 - 12px);
}

.eng-merge-bar {
  position: absolute;
  top: calc(var(--branch-gap) * -0.5);
  left: calc(100% / 6);
  width: calc(100% * 4 / 6);
  height: 2px;
  background: var(--line);
}

.eng-node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node-w);
  min-height: 46px;
  border: 1px solid rgba(10, 70, 60, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 53, 46, 0.07);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eng-node--channel {
  width: calc(100% - 12px);
  max-width: 132px;
  border-style: dashed;
  border-color: rgba(10, 70, 60, 0.32);
  background: var(--surface-soft);
}

.eng-node--coral {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(250, 120, 90, 0.35);
  color: #fff;
}

.eng-node--final {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .js .eng {
    --step: 260ms;
  }

  .js .eng .eng-node {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    transition:
      opacity 0.5s ease,
      transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    transition-delay: calc(var(--i) * var(--step) + 140ms);
  }

  .js .eng .eng-row + .eng-row::before,
  .js .eng .eng-row + .eng-row::after,
  .js .eng .eng-merge-bar {
    opacity: 0;
    transition: opacity 0.3s ease calc(var(--i) * var(--step) - 40ms);
  }

  .js .eng.is-in .eng-node {
    opacity: 1;
    transform: none;
  }

  .js .eng.is-in .eng-row + .eng-row::before,
  .js .eng.is-in .eng-row + .eng-row::after,
  .js .eng.is-in .eng-merge-bar {
    opacity: 1;
  }

  .eng.is-flowing .eng-row:not(.eng-row--branch)::before,
  .eng.is-flowing .eng-row--branch::after,
  .eng.is-flowing .eng-row--branch .eng-node::before,
  .eng.is-flowing .eng-row--branch .eng-node::after {
    background: repeating-linear-gradient(to bottom, rgba(250, 120, 90, 0.85) 0 5px, rgba(10, 70, 60, 0.2) 5px 10px);
    background-size: 2px 10px;
    animation: eco-flow-down 0.7s linear infinite;
  }

  .eng.is-flowing .eng-row--branch .eng-node--channel {
    animation: eng-glow 2.4s ease-in-out infinite;
  }

  .eng.is-flowing .eng-row--branch .eng-node--channel:nth-child(2) {
    animation-delay: 0.3s;
  }

  .eng.is-flowing .eng-row--branch .eng-node--channel:nth-child(3) {
    animation-delay: 0.6s;
  }

  .eng.is-flowing .eng-node--coral::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    animation: eco-pulse 2.2s ease-out infinite;
    pointer-events: none;
  }
}

@keyframes eco-flow-down {
  to {
    background-position: 0 10px;
  }
}

@keyframes eco-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 120, 90, 0.5);
  }

  100% {
    box-shadow: 0 0 0 16px rgba(250, 120, 90, 0);
  }
}

@keyframes eng-glow {
  0%,
  100% {
    border-color: rgba(10, 70, 60, 0.32);
  }

  50% {
    border-color: var(--coral);
    box-shadow: 0 10px 26px rgba(250, 120, 90, 0.25);
  }
}

/* Performance */
.sd-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-metrics li {
  padding: 24px 20px;
}

.sd-cases {
  margin-top: 72px;
}

.sd-cases-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.sd-cases-head h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.sd-cases-head .section-note {
  margin: 0;
}

.sd-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sd-case {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sd-case-label {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sd-case-metric {
  margin: 0;
  color: var(--coral-hover);
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sd-case h4 {
  margin: 6px 0 10px;
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 800;
}

.sd-case > p:not([class]) {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sd-case .text-link {
  margin-top: auto;
}

/* Tools */
.sd-tools {
  background: var(--surface-soft);
}

.sd-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sd-tool {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sd-tool h3 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sd-tool ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-tool li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 70, 60, 0.06);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}

/* FAQ */
.sd-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.sd-faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.sd-faq-intro .btn {
  margin-top: 10px;
}

.sd-faq-list {
  display: grid;
  gap: 12px;
}

.sd-qa {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sd-qa[open] {
  border-color: rgba(250, 120, 90, 0.5);
  box-shadow: var(--shadow-card);
}

.sd-qa summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  color: var(--green);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.sd-qa summary::-webkit-details-marker {
  display: none;
}

.sd-qa summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    linear-gradient(var(--green), var(--green)) center / 10px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2px 10px no-repeat,
    rgba(10, 70, 60, 0.07);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.sd-qa[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
    var(--coral);
  transform: translateY(-50%) rotate(180deg);
}

.sd-qa p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Final CTA */
.sd-final .eyebrow {
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.75rem;
}

.sd-final h2 {
  max-width: 15em;
}

/* Breadcrumb */
.sd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

.sd-crumbs li + li::before {
  content: "›";
  margin: 0 10px;
  color: var(--coral);
}

.sd-crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sd-crumbs a:hover {
  color: var(--coral);
}

.sd-crumbs [aria-current] {
  color: #fff;
}

.sd-hero-lead--second {
  margin-top: 14px;
  font-size: 1rem;
}

/* Hero photo with floating stage chips */
.sd-hero--solo .sd-hero-grid {
  grid-template-columns: minmax(0, 46rem);
}

.sd-hero--solo:has(.work-hero-board) .sd-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
}

.work-hero-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 196px 196px;
  gap: 14px;
}

.work-hero-board a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(2, 25, 21, 0.4);
}

.work-hero-board a:first-child {
  grid-row: 1 / span 2;
}

.work-hero-board img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.work-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.work-jumps a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.work-jumps a:hover {
  color: var(--coral);
}

.insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.insight-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.insight-filters button.is-on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.insight-card[hidden] {
  display: none;
}

.insight-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.insight-sub input[type="email"] {
  flex: 1 1 240px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  color: var(--green);
}

.insight-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-success {
  border: 1px solid rgba(10, 70, 60, 0.2);
  background: rgba(10, 70, 60, 0.07);
  color: var(--green);
}

.form-status.is-error {
  border: 1px solid rgba(194, 65, 43, 0.3);
  background: rgba(194, 65, 43, 0.07);
  color: #9c2f1b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sd-hero-media:has(.about-frame) {
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

.sd-hero-media .about-frame {
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: #021915;
  box-shadow: 0 40px 80px rgba(2, 25, 21, 0.45);
}

.sd-hero-media .about-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.sd-photo--hero {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 80px rgba(2, 25, 21, 0.45);
}

.sd-float {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-float li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(2, 25, 21, 0.3);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sd-float span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.sd-float-1 {
  top: 12%;
  left: 0;
}

.sd-float-2 {
  top: 46%;
  right: -14px;
}

.sd-float-2 span {
  background: #2bb673;
}

.sd-float-3 {
  bottom: 0;
  left: 18%;
}

.sd-float-3 span {
  background: var(--coral);
}

@media (prefers-reduced-motion: no-preference) {
  .sd-photo--hero {
    animation: sd-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .sd-float li {
    animation:
      sd-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both,
      sd-bob 5s ease-in-out infinite;
  }

  .sd-float-1 {
    animation-delay: 0.5s, 1.1s;
  }

  .sd-float-2 {
    animation-delay: 0.75s, 1.8s;
  }

  .sd-float-3 {
    animation-delay: 1s, 2.5s;
  }
}

@keyframes sd-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Overview: big picture + section rhythm */
.sd-bigpicture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.sd-bigpicture h2 {
  margin-bottom: 0;
}

.sd-strong {
  color: var(--green) !important;
  font-weight: 700;
}

.sd-approach > .wrap > .sd-strong,
.sd-process > .wrap > .sd-strong {
  margin: 28px 0 0;
  max-width: 46rem;
}

.sd-highlights--flow {
  counter-reset: flow;
}

.sd-highlights--flow li {
  position: relative;
}

.sd-highlights--flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48px;
  right: -17px;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--coral);
  border-right: 2px solid var(--coral);
  transform: rotate(45deg);
}

.sd-engine-tagline {
  display: inline-block;
  margin-top: 8px !important;
  padding: 12px 18px;
  border-left: 3px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: var(--green) !important;
  font-weight: 800;
}

.sd-intro,
.sd-engine + .sd-approach,
.sd-who + .sd-performance,
.sd-journey-band,
.sd-process {
  background: #fff;
}

.sd-caps,
.sd-integrated,
.sd-included,
.sd-process + .sd-journey-band {
  background: var(--surface-soft);
}

.sd-caps + .sd-integrated,
.sd-who + .sd-services,
.sd-framework + .sd-faq {
  background: #fff;
}

/* Capabilities */
.sd-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sd-cap-grid:has(> :nth-child(2):last-child),
.sd-cap-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-cap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sd-cap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.sd-cap:hover {
  border-color: rgba(250, 120, 90, 0.45);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.sd-cap:hover::before {
  transform: scaleX(1);
}

.sd-cap-num {
  position: absolute;
  top: 22px;
  right: 26px;
  color: rgba(10, 70, 60, 0.12);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sd-cap h3 {
  margin: 22px 0 10px;
  color: var(--green);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sd-cap p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.sd-cap .text-link {
  margin-top: auto;
}

.sd-caps-all {
  margin: 32px 0 0;
  text-align: center;
}

.sd-service-more {
  margin-top: 18px;
}

/* Customer journey */
.sd-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-journey li {
  position: relative;
  padding: 24px 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sd-journey li:hover {
  border-color: rgba(250, 120, 90, 0.45);
  background: #fff;
}

.sd-journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -11px;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--coral);
  border-right: 2px solid var(--coral);
  transform: rotate(45deg);
}

.sd-journey li:last-child {
  border-color: var(--green);
  background: var(--green);
}

.sd-journey li:last-child h3,
.sd-journey li:last-child p {
  color: #fff;
}

.sd-journey li:last-child .sd-journey-step {
  color: var(--coral);
}

.sd-journey-step {
  display: block;
  margin-bottom: 14px;
  color: var(--coral-hover);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sd-journey h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-journey p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Integrated + sub-page includes */
.sd-integrated-grid,
.sd-included-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.sd-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-points li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.sd-points h3 {
  margin: 18px 0 6px;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sd-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sd-included-grid .btn {
  margin-top: 12px;
}

.sd-include-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-include-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.sd-include-grid li:hover {
  border-color: rgba(250, 120, 90, 0.5);
  transform: translateX(3px);
}

.sd-include-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(250, 120, 90, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fa785a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.sd-metrics--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* SEO hero: illustrative search results */
.sd-serp {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(2, 25, 21, 0.4);
  color: var(--green);
}

.sd-serp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(6, 53, 46, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.sd-serp-bar .ico {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.sd-serp-query {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--coral);
}

.sd-serp-tabs {
  display: flex;
  gap: 18px;
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sd-serp-tabs .is-active {
  color: var(--green);
  box-shadow: 0 10px 0 -8px var(--coral);
}

.sd-serp-ai {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 70, 60, 0.06), rgba(250, 120, 90, 0.08));
}

.sd-serp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd-serp-label i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: conic-gradient(var(--coral), var(--green), var(--coral));
}

.sd-serp-line {
  display: block;
  width: var(--w, 100%);
  height: 8px;
  border-radius: 6px;
  background: rgba(10, 70, 60, 0.1);
}

.sd-serp-line--title {
  height: 11px;
  margin-bottom: 8px;
  background: rgba(10, 70, 60, 0.18);
}

.sd-serp-cite {
  color: var(--muted);
  font-size: 0.74rem;
}

.sd-serp-cite b,
.sd-serp-local b {
  color: var(--coral-hover);
}

.sd-serp-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.sd-serp-result.is-you {
  border-color: rgba(250, 120, 90, 0.45);
  background: rgba(250, 120, 90, 0.05);
}

.sd-serp-fav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 70, 60, 0.1);
  font-size: 0.8rem;
  font-weight: 800;
}

.is-you .sd-serp-fav {
  background: var(--green);
  color: #fff;
}

.sd-serp-url {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.sd-serp-title {
  display: block;
  margin: 2px 0 8px;
  color: var(--green);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sd-serp-local {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.sd-serp-local .ico {
  width: 18px;
  height: 18px;
  color: var(--coral);
}

.sd-serp-stars {
  margin-left: auto;
  color: #f2b33d;
  letter-spacing: 1px;
}

.sd-serp-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .sd-serp {
    animation: sd-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .sd-serp-query {
    animation:
      sd-type 1.6s steps(29) 0.6s both,
      sd-caret 0.8s step-end infinite;
  }

  .sd-serp-ai,
  .sd-serp-result,
  .sd-serp-local {
    animation: sd-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .sd-serp-ai {
    animation-delay: 2.3s;
  }

  .sd-serp-result.is-you {
    animation-delay: 2.55s;
  }

  .sd-serp-result:not(.is-you) {
    animation-delay: 2.75s;
  }

  .sd-serp-local {
    animation-delay: 2.95s;
  }
}

@keyframes sd-type {
  from {
    max-width: 0;
  }

  to {
    max-width: 29ch;
  }
}

@keyframes sd-caret {
  50% {
    border-color: transparent;
  }
}

.sd-serp ~ .sd-float .sd-float-2 {
  top: 66%;
}

/* Linear ecosystem (single column of wide nodes) */
.eng--linear {
  --node-w: 300px;
  --gap: 26px;
}

.eng--linear .eng-node {
  max-width: 100%;
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.74rem;
  text-align: center;
}

.sd-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sd-pair .eng-card h3 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.sd-pair .eng--linear {
  --node-w: 100%;
}

.sd-engine > .wrap > .sd-strong {
  margin: 28px 0 0;
  max-width: 46rem;
}

.eng--linear .eng-node--channel {
  width: var(--node-w);
  max-width: 100%;
}

/* Search journey (5 stages) */
.sd-journey--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sd-journey li {
  display: flex;
  flex-direction: column;
}

.sd-journey-opp {
  margin-top: auto !important;
  padding-top: 16px;
  border-top: 1px dashed rgba(10, 70, 60, 0.2);
  color: var(--green) !important;
  font-size: 0.86rem !important;
  font-weight: 600;
}

.sd-journey p + .sd-journey-opp {
  margin-top: 16px !important;
}

.sd-journey-opp b {
  display: block;
  margin-bottom: 4px;
  color: var(--coral-hover);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sd-journey li:last-child .sd-journey-opp {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.sd-journey li:last-child .sd-journey-opp b {
  color: var(--coral);
}

/* SEO foundations */
.sd-found-num {
  margin-right: 10px;
  color: var(--coral-hover);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}

.sd-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 40px 0 0;
  font-weight: 800;
}

.sd-equation span {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 0.95rem;
}

.sd-equation i {
  color: var(--coral);
  font-size: 1.4rem;
  font-style: normal;
}

.sd-equation .is-result {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* Framework cycle */
.sd-framework {
  background: var(--surface-soft);
}

.sd-cycle-card {
  padding: 44px 36px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 120, 90, 0.08), transparent 55%),
    #fff;
  box-shadow: var(--shadow-card);
}

.sd-cycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-cycle::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(100% / 18);
  right: calc(100% / 18);
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--coral));
  opacity: 0.35;
}

.sd-cycle li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.sd-cycle-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #fff;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.sd-cycle li:last-child .sd-cycle-dot {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.sd-cycle-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px dashed rgba(10, 70, 60, 0.2);
  color: var(--green);
  font-weight: 700;
}

.sd-cycle-loop .ico {
  color: var(--coral);
}

@media (prefers-reduced-motion: no-preference) {
  .js .sd-cycle li {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
    transition:
      opacity 0.5s ease,
      transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2);
    transition-delay: calc(var(--i) * 260ms + 140ms);
  }

  .js .sd-cycle.is-in li {
    opacity: 1;
    transform: none;
  }

  .sd-cycle.is-flowing li:not(:last-child) .sd-cycle-dot {
    animation: sd-cycle-active 5.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.6s);
  }

  .sd-cycle-loop .ico {
    animation: sd-spin 6s linear infinite;
  }
}

@keyframes sd-cycle-active {
  0%,
  14%,
  100% {
    border-color: var(--green);
    box-shadow: 0 0 0 0 rgba(250, 120, 90, 0);
  }

  5% {
    border-color: var(--coral);
    box-shadow: 0 0 0 8px rgba(250, 120, 90, 0.18);
    transform: scale(1.08);
  }
}

@keyframes sd-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .sd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--r, 0) * 80ms);
  }

  .js .sd-reveal.is-in,
  .js .sd-reveal:target {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .sd-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sd-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }

  .sd-timeline::before {
    display: none;
  }

  .sd-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sd-journey li:nth-child(3)::after {
    display: none;
  }

  .sd-cycle {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 28px;
  }

  .sd-cycle::before {
    display: none;
  }
}

@media (max-width: 1040px) {
  .sd-hero-grid,
  .sd-hero--solo .sd-hero-grid,
  .sd-split,
  .sd-why-grid,
  .sd-engine-grid,
  .sd-faq-grid,
  .sd-bigpicture,
  .sd-integrated-grid,
  .sd-included-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sd-hero-media {
    max-width: 600px;
  }

  .work-hero-board {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: 170px 170px;
  }

  .work-hero-board a,
  .work-hero-board img {
    min-width: 0;
  }

  .sd-hero-media:has(.about-frame) {
    justify-content: center;
    max-width: none;
    padding: 0;
  }

  .sd-cap-grid,
  .sd-metrics--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-hero-copy {
    max-width: 680px;
  }

  .sd-dash {
    max-width: 560px;
  }

  .sd-service-grid,
  .sd-approach-grid,
  .sd-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-who-grid {
    grid-template-columns: 1fr;
  }

  .sd-photo--tall {
    aspect-ratio: 16 / 9;
  }

  .sd-faq-intro {
    position: static;
  }
}

@media (max-width: 767px) {
  .sd-hero--solo:has(.work-hero-board) .sd-hero-grid {
    grid-template-columns: 1fr;
  }

  .work-hero-board {
    max-width: none;
    grid-template-rows: 168px 132px;
  }

  .sd-hero {
    padding: 52px 0 60px;
  }

  .sd-hero-actions .btn {
    flex: 1 1 100%;
  }

  .sd-dash {
    padding: 16px;
    border-radius: 20px;
  }

  .sd-kpi {
    padding: 12px;
  }

  .sd-kpi-label {
    font-size: 0.66rem;
  }

  .sd-highlights,
  .sd-service-grid,
  .sd-approach-grid,
  .sd-who-list,
  .sd-case-grid,
  .sd-tool-grid {
    grid-template-columns: 1fr;
  }

  .sd-highlights {
    margin-top: 40px;
  }

  .sd-highlights--flow li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .sd-hero-media {
    padding: 0 0 22px;
  }

  .sd-hero-media:has(.about-frame) {
    justify-content: center;
    padding: 8px 0 0;
  }

  .sd-hero-media .about-frame {
    width: min(100%, 240px);
  }

  .sd-float li {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .sd-float-1 {
    top: 8%;
    left: 8px;
  }

  .sd-float-2 {
    right: 8px;
  }

  .sd-cap-grid,
  .sd-points,
  .sd-include-grid,
  .sd-journey {
    grid-template-columns: 1fr;
  }

  .sd-journey li:not(:last-child)::after,
  .sd-journey li:nth-child(3)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -11px;
    left: 28px;
    transform: rotate(135deg);
  }

  .sd-cap {
    padding: 26px 22px;
  }

  .sd-pair {
    grid-template-columns: 1fr;
  }

  .eng.eng--linear {
    --node-w: 100%;
    --gap: 24px;
  }

  .eng--linear .eng-node.eng-node {
    font-size: 0.68rem;
  }

  .sd-serp {
    padding: 16px;
    border-radius: 20px;
  }

  .sd-serp-tabs {
    gap: 14px;
  }

  .sd-cycle-card {
    padding: 30px 16px 24px;
  }

  .sd-cycle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sd-cycle li {
    font-size: 0.7rem;
  }

  .sd-cycle-dot {
    width: 48px;
    height: 48px;
  }

  .sd-cycle-loop {
    font-size: 0.9rem;
    text-align: left;
  }

  .sd-equation span {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .sd-approach-grid li {
    padding: 26px 22px;
  }

  .sd-service {
    padding: 24px 20px;
  }

  .sd-why {
    padding: 72px 0;
  }

  .sd-features li {
    padding: 20px 18px;
  }

  .sd-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sd-metrics li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 18px;
  }

  .sd-metrics .sd-ico {
    grid-row: span 2;
  }

  .sd-metrics h3 {
    margin: 2px 0 4px;
  }

  .sd-timeline {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .sd-timeline li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
    padding-bottom: 28px;
  }

  .sd-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--green), var(--coral));
    opacity: 0.3;
  }

  .sd-dot {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .sd-timeline h3 {
    margin-top: 12px;
  }

  .eng-card {
    padding: 28px 12px;
  }

  .eng {
    --node-w: 128px;
    --gap: 28px;
  }

  .eng-node {
    font-size: 0.7rem;
  }

  .sd-qa summary {
    padding: 18px 52px 18px 18px;
    font-size: 0.98rem;
  }

  .sd-qa p {
    padding: 0 18px 18px;
  }
}

/* Ten-step timelines: two rows of five so labels stay readable */
.sd-timeline.sd-timeline--rows {
  --row-gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--row-gap);
  row-gap: 44px;
}

.sd-timeline.sd-timeline--rows::before {
  display: none;
}

.sd-timeline.sd-timeline--rows li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.sd-timeline.sd-timeline--rows .sd-dot {
  z-index: 1;
  margin-bottom: 14px;
}

.sd-timeline.sd-timeline--rows h3 {
  margin: 0;
  max-width: 11em;
  font-size: 0.98rem;
  line-height: 1.35;
}

.sd-timeline.sd-timeline--rows li:not(:nth-child(5n)):not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(50% + 30px);
  z-index: 0;
  width: calc(100% + var(--row-gap) - 60px);
  height: 2px;
  background: linear-gradient(90deg, rgba(10, 70, 60, 0.28), rgba(250, 120, 90, 0.45));
}

.sd-process .sd-equation {
  margin-top: 56px;
}

@media (max-width: 1100px) {
  .sd-timeline.sd-timeline--rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .sd-timeline.sd-timeline--rows li::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .sd-timeline.sd-timeline--rows {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .sd-timeline.sd-timeline--rows li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding-bottom: 28px;
    text-align: left;
  }

  .sd-timeline.sd-timeline--rows .sd-dot {
    margin-bottom: 0;
  }

  .sd-timeline.sd-timeline--rows h3 {
    max-width: none;
    margin-top: 12px;
    font-size: 1.05rem;
  }
}

.sd-hero :focus-visible,
.sd-why :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sd-qa summary:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 16px;
}
