/* Hero */
.sm-v4-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 86px);
  padding-top: clamp(3.5rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 91% 7%, rgba(23, 110, 102, .15), transparent 27%),
    radial-gradient(circle at 4% 94%, rgba(180, 134, 82, .12), transparent 30%),
    linear-gradient(137deg, #fffdf8 0%, var(--sm-v4-porcelain) 59%, #e6efeb 100%);
}

.sm-v4-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 39, 36, .033) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 39, 36, .033) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .65) 68%, transparent 100%);
}

.sm-v4-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, .95fr);
  gap: clamp(3.25rem, 6vw, 7rem);
  align-items: center;
  min-height: min(800px, calc(100vh - 130px));
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
}

.sm-v4-hero__copy {
  position: relative;
  z-index: 3;
}

.sm-v4-hero h1 {
  max-width: 10.8ch;
  margin: 1.6rem 0 0;
  color: var(--sm-v4-forest);
  font-size: clamp(4.1rem, 7.5vw, 8rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .86;
  text-wrap: balance;
}

.sm-v4-hero h1 em {
  display: block;
  color: var(--sm-v4-mineral);
  font-weight: 400;
}

.sm-v4-hero__lead {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--sm-v4-ink-soft);
  font-size: clamp(1.04rem, 1.45vw, 1.3rem);
  line-height: 1.78;
}

.sm-v4-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2.35rem;
}

.sm-v4-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(3.2rem, 6vw, 5.8rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--sm-v4-line-strong);
}

.sm-v4-hero__proof div {
  min-width: 0;
  padding: 1.25rem 1rem 0 0;
}

.sm-v4-hero__proof dt {
  color: var(--sm-v4-brass);
  font-family: var(--sm-font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.sm-v4-hero__proof dd {
  margin: .5rem 0 0;
  color: var(--sm-v4-ink-soft);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.55;
  text-transform: uppercase;
}

.sm-v4-hero__stage {
  --sm-v4-x: 0px;
  --sm-v4-y: 0px;
  position: relative;
  min-height: 650px;
  perspective: 1200px;
}

.sm-v4-stage__grid {
  position: absolute;
  inset: 4% -2% 4% 3%;
  border: 1px solid rgba(16, 39, 36, .07);
  background-image:
    linear-gradient(rgba(16, 39, 36, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 39, 36, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: translate(calc(var(--sm-v4-x) * -.25), calc(var(--sm-v4-y) * -.25));
  transition: transform .35s ease-out;
}

.sm-v4-route-card {
  position: absolute;
  inset: 2.5rem 0 4.5rem 2.25rem;
  overflow: hidden;
  border: 1px solid rgba(16, 39, 36, .16);
  border-radius: 4px;
  background: rgba(255, 252, 246, .9);
  box-shadow: var(--sm-v4-paper-shadow);
  transform: translate(calc(var(--sm-v4-x) * .35), calc(var(--sm-v4-y) * .35)) rotateX(calc(var(--sm-v4-y) * -.02deg)) rotateY(calc(var(--sm-v4-x) * .02deg));
  transition: transform .35s ease-out;
}

.sm-v4-route-card__meta,
.sm-v4-route-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: rgba(16, 39, 36, .52);
  font-family: var(--sm-v4-mono);
  font-size: .59rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sm-v4-route-card__meta {
  border-bottom: 1px solid var(--sm-v4-line);
}

.sm-v4-route-card__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid var(--sm-v4-line);
}

.sm-v4-route-card__footer span {
  padding: .85rem .45rem;
  border-right: 1px solid var(--sm-v4-line);
  text-align: center;
}

.sm-v4-route-card__footer span:last-child {
  border-right: 0;
}

.sm-v4-route {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.2rem;
}

.sm-v4-route__continent {
  fill: rgba(23, 110, 102, .055);
  stroke: rgba(23, 110, 102, .18);
  stroke-width: 1.5;
}

.sm-v4-route__line {
  fill: none;
  stroke-linecap: round;
}

.sm-v4-route__line--ghost {
  stroke: rgba(16, 39, 36, .12);
  stroke-width: 2;
}

.sm-v4-route__line--active {
  stroke: url(#sm-v4-route-gradient);
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s cubic-bezier(.22, 1, .36, 1) .25s;
}

.sm-v4-hero__stage.is-route-visible .sm-v4-route__line--active {
  stroke-dashoffset: 0;
}

.sm-v4-route__point circle {
  fill: var(--sm-v4-paper);
  stroke: var(--sm-v4-mineral);
  stroke-width: 2;
}

.sm-v4-route__point circle.sm-v4-route__point-core {
  fill: var(--sm-v4-brass);
  stroke: none;
}

.sm-v4-route__point text,
.sm-v4-route__machine text {
  fill: rgba(16, 39, 36, .62);
  font-family: var(--sm-v4-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.sm-v4-route__machine rect {
  fill: var(--sm-v4-forest);
}

.sm-v4-route__machine path {
  fill: none;
  stroke: rgba(255, 252, 246, .72);
  stroke-width: 2;
}

.sm-v4-route__machine circle {
  fill: var(--sm-v4-brass);
}

.sm-v4-dossier {
  position: absolute;
  right: -1.5rem;
  bottom: 1.35rem;
  z-index: 4;
  width: min(410px, 75%);
  overflow: hidden;
  border: 1px solid rgba(16, 39, 36, .13);
  border-radius: 3px;
  background: var(--sm-v4-paper);
  box-shadow: var(--sm-v4-deep-shadow);
  transform: translate(calc(var(--sm-v4-x) * .75), calc(var(--sm-v4-y) * .75)) rotate(-1.7deg);
  transition: transform .35s ease-out;
}

.sm-v4-dossier__header,
.sm-v4-dossier__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  font-family: var(--sm-v4-mono);
  font-size: .59rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sm-v4-dossier__header {
  border-bottom: 1px solid var(--sm-v4-line);
}

.sm-v4-dossier__header > div span,
.sm-v4-dossier__footer {
  color: rgba(16, 39, 36, .52);
}

.sm-v4-dossier__header > div strong {
  display: block;
  margin-top: .28rem;
  color: var(--sm-v4-forest);
  font-size: .75rem;
}

.sm-v4-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .55rem;
  border: 1px solid rgba(180, 134, 82, .34);
  color: #79502a;
  background: rgba(180, 134, 82, .1);
}

.sm-v4-status--conditional {
  color: #79502a;
  border-color: rgba(180, 134, 82, .34);
  background: rgba(180, 134, 82, .1);
}

.sm-v4-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sm-v4-brass);
  box-shadow: 0 0 0 4px rgba(180, 134, 82, .12);
}

.sm-v4-dossier__body {
  padding: 1.2rem;
}

.sm-v4-dossier__score {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--sm-v4-line);
}

.sm-v4-dossier__score > span {
  color: rgba(16, 39, 36, .52);
  font-family: var(--sm-v4-mono);
  font-size: .57rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sm-v4-dossier__score > strong {
  float: right;
  color: var(--sm-v4-forest);
  font-family: var(--sm-font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: .8;
}

.sm-v4-dossier__score > strong small {
  color: rgba(16, 39, 36, .42);
  font-family: var(--sm-v4-mono);
  font-size: .65rem;
}

.sm-v4-dossier__score > div {
  height: 4px;
  margin-top: 1rem;
  overflow: hidden;
  background: rgba(16, 39, 36, .09);
}

.sm-v4-dossier__score > div i {
  display: block;
  width: var(--sm-v4-score);
  height: 100%;
  background: linear-gradient(90deg, var(--sm-v4-mineral), var(--sm-v4-brass));
}

.sm-v4-dossier__checks {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sm-v4-dossier__checks li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(16, 39, 36, .08);
}

.sm-v4-dossier__checks li:last-child {
  border-bottom: 0;
}

.sm-v4-dossier__checks li > span {
  color: rgba(16, 39, 36, .43);
  font-family: var(--sm-v4-mono);
  font-size: .59rem;
}

.sm-v4-dossier__checks li > strong {
  font-size: .72rem;
  font-weight: 700;
}

.sm-v4-dossier__checks li > small {
  color: rgba(16, 39, 36, .52);
  font-size: .58rem;
}

.sm-v4-dossier__checks li.is-clear > small {
  color: var(--sm-v4-mineral);
}

.sm-v4-dossier__checks li.is-open > small {
  color: var(--sm-v4-oxide);
}

.sm-v4-dossier__footer {
  border-top: 1px solid var(--sm-v4-line);
  font-size: .52rem;
}

.sm-v4-decision-stamp {
  position: absolute;
  bottom: 7.8rem;
  left: -.5rem;
  z-index: 5;
  display: grid;
  width: 158px;
  min-height: 128px;
  place-items: center;
  padding: 1rem;
  color: var(--sm-v4-paper);
  border: 1px solid rgba(255, 255, 255, .16);
  background: var(--sm-v4-oxide);
  box-shadow: 0 20px 48px rgba(91, 42, 32, .25);
  text-align: center;
  transform: translate(calc(var(--sm-v4-x) * -1), calc(var(--sm-v4-y) * -1)) rotate(3deg);
  transition: transform .35s ease-out;
}

.sm-v4-decision-stamp span,
.sm-v4-decision-stamp small {
  font-family: var(--sm-v4-mono);
  font-size: .53rem;
  letter-spacing: .1em;
}

.sm-v4-decision-stamp strong {
  align-self: end;
  font-family: var(--sm-font-display);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.sm-v4-decision-stamp small {
  align-self: start;
  color: rgba(255, 255, 255, .7);
}

.sm-v4-hero__rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--sm-v4-line-strong);
}

.sm-v4-hero__rail span {
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 1rem;
  color: rgba(16, 39, 36, .6);
  border-right: 1px solid var(--sm-v4-line);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sm-v4-hero__rail span:last-child {
  border-right: 0;
}

.sm-v4-hero__rail i {
  color: var(--sm-v4-brass);
  font-family: var(--sm-font-display);
  font-size: 1rem;
  font-style: normal;
}
