/* Shared headings */
.sm-v4-manifesto,
.sm-v4-gates,
.sm-v4-output,
.sm-v4-services,
.sm-v4-process,
.sm-v4-notes,
.sm-v4-final {
  padding-block: clamp(6rem, 10vw, 11rem);
}

.sm-v4-section-heading {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(240px, .42fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.sm-v4-section-heading h2,
.sm-v4-manifesto h2,
.sm-v4-output h2,
.sm-v4-services h2,
.sm-v4-notes h2,
.sm-v4-final h2 {
  margin-bottom: 0;
  font-size: clamp(2.9rem, 5.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .95;
  text-wrap: balance;
}

.sm-v4-section-heading > p,
.sm-v4-manifesto__aside p,
.sm-v4-output__intro > p,
.sm-v4-services__intro > p,
.sm-v4-final__content > p {
  color: var(--sm-v4-ink-soft);
  font-size: .91rem;
  line-height: 1.82;
}

/* Manifesto */
.sm-v4-manifesto {
  background: var(--sm-v4-paper);
}

.sm-v4-manifesto__layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.18fr) minmax(280px, .48fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.sm-v4-manifesto__aside {
  padding-top: 3.2rem;
}

.sm-v4-manifesto__aside p {
  margin-bottom: 1.8rem;
}

/* Decision gates */
.sm-v4-gates {
  background: var(--sm-v4-porcelain);
}

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

.sm-v4-gate {
  position: relative;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(1.45rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--sm-v4-line);
  outline: 0;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}

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

.sm-v4-gate::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--sm-v4-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.sm-v4-gate:hover,
.sm-v4-gate:focus-visible {
  color: var(--sm-v4-paper);
  background: var(--sm-v4-forest);
  transform: translateY(-8px);
}

.sm-v4-gate:hover::after,
.sm-v4-gate:focus-visible::after {
  transform: scaleX(1);
}

.sm-v4-gate__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(3.2rem, 6vw, 5.5rem);
}

.sm-v4-gate__top > span {
  color: var(--sm-v4-brass);
  font-family: var(--sm-font-display);
  font-size: 1.55rem;
}

.sm-v4-gate__top .sm-icon {
  width: 28px;
  height: 28px;
  color: var(--sm-v4-mineral);
}

.sm-v4-gate:hover .sm-v4-gate__top .sm-icon,
.sm-v4-gate:focus-visible .sm-v4-gate__top .sm-icon {
  color: var(--sm-v4-mist);
}

.sm-v4-gate h3 {
  margin-bottom: .85rem;
  font-family: var(--sm-font-body);
  font-size: .98rem;
  font-weight: 700;
}

.sm-v4-gate > p {
  margin-bottom: 0;
  color: var(--sm-v4-ink-soft);
  font-size: .78rem;
  line-height: 1.72;
  transition: color .3s ease;
}

.sm-v4-gate:hover > p,
.sm-v4-gate:focus-visible > p {
  color: rgba(255, 252, 246, .62);
}

.sm-v4-gate__output {
  position: absolute;
  right: 1.5rem;
  bottom: 1.7rem;
  left: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 39, 36, .11);
  opacity: .62;
  transition: border-color .3s ease, opacity .3s ease, transform .3s ease;
}

.sm-v4-gate:hover .sm-v4-gate__output,
.sm-v4-gate:focus-visible .sm-v4-gate__output {
  border-color: rgba(255, 255, 255, .18);
  opacity: 1;
  transform: translateY(-5px);
}

.sm-v4-gate__output small {
  display: block;
  margin-bottom: .45rem;
  color: var(--sm-v4-brass);
  font-family: var(--sm-v4-mono);
  font-size: .52rem;
  letter-spacing: .12em;
}

.sm-v4-gate__output strong {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.55;
}

/* Output dossier */
.sm-v4-output {
  color: var(--sm-v4-paper);
  background:
    radial-gradient(circle at 86% 15%, rgba(23, 110, 102, .23), transparent 28%),
    linear-gradient(145deg, #152f2b, #0b211e);
}

.sm-v4-output__layout {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
  gap: clamp(4rem, 8vw, 9rem);
  align-items: center;
}

.sm-v4-output .sm-v4-section-index {
  color: rgba(255, 255, 255, .32);
}

.sm-v4-output .sm-v4-kicker {
  color: #92c9c2;
}

.sm-v4-output__intro h2 {
  margin-bottom: 1.7rem;
  color: var(--sm-v4-paper);
}

.sm-v4-output__intro > p {
  margin-bottom: 2rem;
  color: rgba(255, 252, 246, .64);
}

.sm-v4-output__stack {
  position: relative;
  min-height: 680px;
}

.sm-v4-output__sheet {
  position: absolute;
  border: 1px solid rgba(16, 39, 36, .14);
  background: var(--sm-v4-paper);
  box-shadow: var(--sm-v4-deep-shadow);
}

.sm-v4-output__sheet--back {
  inset: 5rem 3rem 1rem 5rem;
  opacity: .22;
  transform: rotate(5deg);
}

.sm-v4-output__sheet--middle {
  inset: 2.8rem 1.4rem 2.2rem 3.2rem;
  opacity: .48;
  transform: rotate(2deg);
}

.sm-v4-output__sheet--front {
  inset: 0 2rem 3.6rem 0;
  overflow: hidden;
  color: var(--sm-v4-forest);
  transform: rotate(-1.4deg);
}

.sm-v4-output__sheet--front > header,
.sm-v4-output__sheet--front > footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--sm-v4-line);
  font-family: var(--sm-v4-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sm-v4-output__sheet--front > header > div span {
  display: block;
  color: rgba(16, 39, 36, .48);
}

.sm-v4-output__sheet--front > header > div strong {
  display: block;
  margin-top: .35rem;
  font-family: var(--sm-font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: none;
}

.sm-v4-output__sheet--front > footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--sm-v4-line);
  border-bottom: 0;
  color: rgba(16, 39, 36, .5);
  font-size: .52rem;
}

.sm-v4-output__list {
  padding: .7rem 1.35rem 4.4rem;
}

.sm-v4-output__list > div {
  display: grid;
  grid-template-columns: 34px 24px minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  min-height: 75px;
  border-bottom: 1px solid rgba(16, 39, 36, .09);
}

.sm-v4-output__list > div:last-child {
  border-bottom: 0;
}

.sm-v4-output__list > div > span {
  color: var(--sm-v4-brass);
  font-family: var(--sm-font-display);
  font-size: 1.15rem;
}

.sm-v4-output__list .sm-icon {
  width: 20px;
  height: 20px;
  color: var(--sm-v4-mineral);
}

.sm-v4-output__list p {
  margin: 0;
}

.sm-v4-output__list p strong,
.sm-v4-output__list p small {
  display: block;
}

.sm-v4-output__list p strong {
  font-size: .76rem;
}

.sm-v4-output__list p small {
  margin-top: .28rem;
  color: var(--sm-v4-ink-soft);
  font-size: .65rem;
}
