/*
 * SerasMac V3 — warm editorial premium direction.
 * Built from the strongest qualities of the pre-redesign site:
 * light canvas, large serif typography, tactile documents and calm hierarchy.
 */

:root {
  --sm-v3-ivory: #f4f0e7;
  --sm-v3-paper: #fffdf8;
  --sm-v3-paper-deep: #e9e1d3;
  --sm-v3-ink: #153032;
  --sm-v3-ink-soft: #536667;
  --sm-v3-teal: #0d7273;
  --sm-v3-teal-deep: #07595a;
  --sm-v3-brass: #b98445;
  --sm-v3-clay: #a84c3d;
  --sm-v3-line: rgba(21,48,50,.13);
  --sm-v3-line-strong: rgba(21,48,50,.24);
  --sm-v3-shadow: 0 30px 80px rgba(33,48,48,.14);
}

body:has(.sm-v3-home) {
  background: var(--sm-v3-ivory);
}

body:has(.sm-v3-home) .sm-site-header,
body:has(.sm-lifecycle-rail) .sm-site-header,
body:has(.sm-hiw-journey) .sm-site-header {
  background: rgba(255,253,248,.9);
  border-bottom-color: rgba(21,48,50,.09);
  backdrop-filter: blur(18px);
}

body:has(.sm-v3-home) .sm-site-header__inner,
body:has(.sm-lifecycle-rail) .sm-site-header__inner,
body:has(.sm-hiw-journey) .sm-site-header__inner {
  min-height: 84px;
}

body:has(.sm-v3-home) .sm-brand,
body:has(.sm-lifecycle-rail) .sm-brand,
body:has(.sm-hiw-journey) .sm-brand {
  letter-spacing: -.035em;
}

.sm-v3-home {
  overflow: clip;
  color: var(--sm-v3-ink);
  background: var(--sm-v3-ivory);
}

.sm-v3-home h1,
.sm-v3-home h2,
.sm-v3-home h3 {
  font-family: var(--sm-font-display);
  color: var(--sm-v3-ink);
}

.sm-v3-kicker {
  margin: 0 0 1rem;
  color: var(--sm-v3-teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sm-v3-index {
  color: rgba(21,48,50,.42);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sm-v3-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--sm-v3-ink);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.sm-v3-link::after {
  content: '↗';
  color: var(--sm-v3-teal);
  font-size: 1rem;
  transition: transform .2s ease;
}

.sm-v3-link:hover::after,
.sm-v3-link:focus-visible::after {
  transform: translate(3px,-3px);
}

.sm-v3-home .sm-btn--primary {
  color: #fff;
  background: var(--sm-v3-teal);
  border-color: var(--sm-v3-teal);
  box-shadow: 0 16px 32px rgba(13,114,115,.2);
}

.sm-v3-home .sm-btn--primary:hover,
.sm-v3-home .sm-btn--primary:focus-visible {
  color: #fff;
  background: var(--sm-v3-teal-deep);
  border-color: var(--sm-v3-teal-deep);
}

/* Hero */
.sm-v3-hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(3rem,7vw,6.5rem);
  background:
    radial-gradient(circle at 83% 10%, rgba(13,114,115,.12), transparent 28%),
    radial-gradient(circle at 8% 95%, rgba(185,132,69,.11), transparent 28%),
    linear-gradient(135deg, #fffdf9 0%, #f4f0e7 55%, #eaf3f0 100%);
}

.sm-v3-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .36;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21,48,50,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,48,50,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 65%, transparent 100%);
}

.sm-v3-hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(460px,.96fr);
  gap: clamp(3rem,7vw,7.5rem);
  align-items: center;
  min-height: min(790px, calc(100vh - 84px));
  padding-bottom: clamp(4rem,7vw,7rem);
}

.sm-v3-hero__eyebrow {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.65rem;
  color: var(--sm-v3-teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sm-v3-hero__eyebrow span:first-child {
  color: var(--sm-v3-ink);
}

.sm-v3-hero__eyebrow span + span::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-right: 1rem;
  vertical-align: middle;
  background: var(--sm-v3-brass);
}

.sm-v3-hero h1 {
  max-width: 10.5ch;
  margin: 0;
  font-size: clamp(4rem,7.6vw,7.65rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .88;
  text-wrap: balance;
}

.sm-v3-hero h1 em {
  color: var(--sm-v3-teal);
  font-weight: 400;
}

.sm-v3-hero__lead {
  max-width: 650px;
  margin: 2rem 0 0;
  color: var(--sm-v3-ink-soft);
  font-size: clamp(1.08rem,1.5vw,1.34rem);
  line-height: 1.75;
}

.sm-v3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

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

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

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

.sm-v3-hero__proof dd {
  margin: .45rem 0 0;
  color: var(--sm-v3-ink-soft);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.sm-v3-hero__visual {
  min-width: 0;
}

.sm-v3-blueprint {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(13,114,115,.19);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,244,240,.82)),
    var(--sm-v3-paper);
  box-shadow: var(--sm-v3-shadow);
}

.sm-v3-blueprint::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(21,48,50,.07);
  border-radius: 23px;
  pointer-events: none;
}

.sm-v3-blueprint__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  color: rgba(21,48,50,.5);
  border-bottom: 1px solid rgba(21,48,50,.09);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sm-v3-blueprint__machine {
  display: block;
  width: calc(100% - 1.5rem);
  height: auto;
  margin: .9rem auto 0;
}

.sm-v3-dossier {
  position: absolute;
  right: clamp(1.25rem,3vw,2.4rem);
  bottom: clamp(1.25rem,3vw,2.4rem);
  width: min(330px,calc(100% - 2.5rem));
  padding: 1.5rem;
  background: var(--sm-v3-paper);
  box-shadow: 0 24px 60px rgba(31,52,52,.18);
  transform: rotate(-1deg);
}

.sm-v3-dossier__label {
  display: block;
  color: var(--sm-v3-ink-soft);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sm-v3-dossier > strong {
  display: block;
  margin-top: .6rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--sm-v3-line-strong);
  font-family: var(--sm-font-display);
  font-size: 1.55rem;
}

.sm-v3-dossier__status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  color: var(--sm-v3-teal);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sm-v3-dossier__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sm-v3-teal);
  box-shadow: 0 0 0 5px rgba(13,114,115,.1);
}

.sm-v3-dossier ul {
  display: grid;
  gap: .72rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sm-v3-dossier li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--sm-v3-ink-soft);
  font-size: .78rem;
}

.sm-v3-dossier .sm-icon {
  width: 14px;
  height: 14px;
  color: var(--sm-v3-teal);
}

.sm-v3-decision-note {
  position: absolute;
  bottom: 3rem;
  left: 1.35rem;
  width: 210px;
  padding: 1.2rem 1.35rem;
  color: #fff;
  background: var(--sm-v3-ink);
  box-shadow: 0 20px 48px rgba(21,48,50,.2);
  transform: rotate(2deg);
}

.sm-v3-decision-note span {
  display: block;
  margin-bottom: .45rem;
  color: rgba(255,255,255,.5);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sm-v3-decision-note strong {
  color: #fff;
  font-family: var(--sm-font-display);
  font-size: 1.15rem;
  line-height: 1.25;
}

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

.sm-v3-hero__rail span {
  padding: 1.25rem 1rem;
  color: rgba(21,48,50,.55);
  border-right: 1px solid var(--sm-v3-line);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}

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

/* Shared editorial sections */
.sm-v3-intro,
.sm-v3-gates,
.sm-v3-process,
.sm-v3-final {
  padding-block: clamp(6rem,10vw,10.5rem);
}

.sm-v3-intro {
  background: var(--sm-v3-paper);
}

.sm-v3-intro__grid {
  display: grid;
  grid-template-columns: 110px minmax(0,1.2fr) minmax(280px,.55fr);
  gap: clamp(2rem,5vw,6rem);
  align-items: start;
}

.sm-v3-intro h2,
.sm-v3-section-head h2,
.sm-v3-difference h2,
.sm-v3-services h2,
.sm-v3-final h2 {
  margin: 0;
  font-size: clamp(2.8rem,5vw,5.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.sm-v3-intro__copy {
  padding-top: 3rem;
}

.sm-v3-intro__copy p,
.sm-v3-services__intro > p {
  margin: 0 0 1.8rem;
  color: var(--sm-v3-ink-soft);
  line-height: 1.85;
}

.sm-v3-gates {
  background: var(--sm-v3-ivory);
}

.sm-v3-section-head {
  display: grid;
  grid-template-columns: 110px minmax(0,880px);
  gap: clamp(2rem,5vw,6rem);
  margin-bottom: clamp(3.5rem,7vw,6rem);
}

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

.sm-v3-gate {
  min-width: 0;
  min-height: 320px;
  padding: clamp(1.5rem,3vw,2.4rem);
  border-right: 1px solid var(--sm-v3-line);
}

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

.sm-v3-gate__number {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--sm-v3-brass);
  font-family: var(--sm-font-display);
  font-size: 1.6rem;
}

.sm-v3-gate > .sm-icon {
  width: 30px;
  height: 30px;
  color: var(--sm-v3-teal);
}

.sm-v3-gate h3 {
  margin: 1.4rem 0 .75rem;
  font-family: var(--sm-font-body);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.sm-v3-gate p {
  margin: 0;
  color: var(--sm-v3-ink-soft);
  font-size: .8rem;
  line-height: 1.72;
}

.sm-v3-difference {
  padding-block: clamp(6rem,10vw,10rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(13,114,115,.24), transparent 30%),
    linear-gradient(145deg, #173537, #0f292b);
}

.sm-v3-difference__grid {
  display: grid;
  grid-template-columns: minmax(320px,.7fr) minmax(0,1.3fr);
  gap: clamp(3rem,7vw,8rem);
  align-items: start;
}

.sm-v3-difference .sm-v3-index { color: rgba(255,255,255,.32); }
.sm-v3-difference .sm-v3-kicker { color: #9bcfd0; }
.sm-v3-difference h2 { color: #fff; }

.sm-v3-compare {
  border-top: 1px solid rgba(255,255,255,.15);
}

.sm-v3-compare__row {
  display: grid;
  grid-template-columns: 46px minmax(180px,.65fr) minmax(0,1.2fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.sm-v3-compare__row span {
  color: var(--sm-v3-brass);
  font-family: var(--sm-font-display);
  font-size: 1.35rem;
}

.sm-v3-compare__row p,
.sm-v3-compare__row strong {
  margin: 0;
  line-height: 1.7;
}

.sm-v3-compare__row p {
  color: rgba(255,255,255,.48);
  font-size: .82rem;
}

.sm-v3-compare__row strong {
  color: #fff;
  font-size: .91rem;
  font-weight: 600;
}

.sm-v3-services {
  padding-block: clamp(6rem,10vw,11rem);
  background: var(--sm-v3-paper);
}

.sm-v3-services__grid {
  display: grid;
  grid-template-columns: minmax(320px,.72fr) minmax(0,1.28fr);
  gap: clamp(3rem,8vw,9rem);
  align-items: start;
}

.sm-v3-services__intro {
  position: sticky;
  top: 130px;
}

.sm-v3-services__intro h2 {
  margin-bottom: 1.6rem;
}

.sm-v3-services__list {
  border-top: 1px solid var(--sm-v3-line-strong);
}

.sm-v3-service {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 26px;
  gap: 1.25rem;
  align-items: center;
  min-height: 150px;
  padding: 1.8rem 0;
  color: var(--sm-v3-ink);
  border-bottom: 1px solid var(--sm-v3-line);
  text-decoration: none;
  transition: padding .22s ease, background .22s ease;
}

.sm-v3-service:hover,
.sm-v3-service:focus-visible {
  padding-inline: 1.2rem;
  color: var(--sm-v3-ink);
  background: rgba(13,114,115,.035);
}

.sm-v3-service__number {
  color: var(--sm-v3-brass);
  font-family: var(--sm-font-display);
  font-size: 1.4rem;
}

.sm-v3-service small {
  color: var(--sm-v3-teal);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.sm-v3-service h3 {
  margin: .45rem 0 .55rem;
  font-size: clamp(1.55rem,2.7vw,2.55rem);
  font-weight: 500;
  line-height: 1.05;
}

.sm-v3-service p {
  max-width: 720px;
  margin: 0;
  color: var(--sm-v3-ink-soft);
  font-size: .84rem;
  line-height: 1.7;
}

.sm-v3-service > .sm-icon {
  width: 20px;
  height: 20px;
  color: var(--sm-v3-teal);
}

.sm-v3-process {
  background: var(--sm-v3-ivory);
}

.sm-v3-process__rail {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sm-v3-line-strong);
  border-bottom: 1px solid var(--sm-v3-line-strong);
  list-style: none;
}

.sm-v3-process__rail li {
  min-height: 300px;
  padding: clamp(1.5rem,3vw,2.5rem);
  border-right: 1px solid var(--sm-v3-line);
}

.sm-v3-process__rail li:last-child { border-right: 0; }

.sm-v3-process__rail span {
  display: block;
  margin-bottom: 4rem;
  color: var(--sm-v3-brass);
  font-family: var(--sm-font-display);
  font-size: 1.6rem;
}

.sm-v3-process__rail strong {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--sm-font-display);
  font-size: 1.55rem;
  font-weight: 500;
}

.sm-v3-process__rail small {
  color: var(--sm-v3-ink-soft);
  font-size: .78rem;
  line-height: 1.7;
}

.sm-v3-final {
  background: var(--sm-v3-paper);
}

.sm-v3-final__panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: clamp(2rem,6vw,6rem);
  align-items: end;
  padding-top: clamp(3rem,6vw,6rem);
  border-top: 1px solid var(--sm-v3-line-strong);
}

.sm-v3-final h2 {
  max-width: 900px;
}

.sm-v3-final__actions {
  display: grid;
  gap: 1.2rem;
  justify-items: start;
  min-width: 270px;
}

/* Services page — warm and tactile instead of sterile catalogue */
body:has(.sm-lifecycle-rail) {
  background: var(--sm-v3-ivory);
}

body:has(.sm-lifecycle-rail) .sm-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem,9vw,8.5rem);
  background:
    radial-gradient(circle at 82% 20%, rgba(13,114,115,.12), transparent 28%),
    linear-gradient(135deg,#fffdf8,#f1ece1 62%,#eaf2ef);
}

body:has(.sm-lifecycle-rail) .sm-page-hero::after {
  content: 'SERVICES';
  position: absolute;
  right: 2vw;
  bottom: -2.4rem;
  color: rgba(21,48,50,.035);
  font-family: var(--sm-font-display);
  font-size: clamp(7rem,18vw,18rem);
  letter-spacing: -.06em;
  pointer-events: none;
}

body:has(.sm-lifecycle-rail) .sm-page-hero__title {
  max-width: 11ch;
  font-size: clamp(4rem,8vw,7rem);
  line-height: .9;
}

body:has(.sm-lifecycle-rail) .sm-page-hero__subtitle {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
}

body:has(.sm-lifecycle-rail) .sm-section--alt {
  background: var(--sm-v3-paper);
}

body:has(.sm-lifecycle-rail) .sm-lifecycle-rail {
  background: transparent;
  border-color: var(--sm-v3-line-strong);
}

body:has(.sm-lifecycle-rail) .sm-lifecycle-rail__step {
  min-height: 210px;
  border-color: var(--sm-v3-line);
}

body:has(.sm-lifecycle-rail) .sm-lifecycle-rail__icon {
  color: var(--sm-v3-teal);
}

body:has(.sm-lifecycle-rail) .sm-service-stage {
  padding-block: clamp(4.5rem,8vw,8rem);
  border-color: var(--sm-v3-line-strong);
}

body:has(.sm-lifecycle-rail) .sm-service-stage:nth-of-type(even) {
  position: relative;
}

body:has(.sm-lifecycle-rail) .sm-service-stage__icon {
  color: var(--sm-v3-teal);
  border-color: var(--sm-v3-line-strong);
}

body:has(.sm-lifecycle-rail) .sm-service-stage__title {
  max-width: 10ch;
  font-size: clamp(2.7rem,5vw,4.8rem);
  letter-spacing: -.04em;
}

body:has(.sm-lifecycle-rail) .sm-service-detail-card {
  padding-block: 2.5rem;
  border-color: var(--sm-v3-line);
}

body:has(.sm-lifecycle-rail) .sm-service-detail-card__title {
  font-size: clamp(1.8rem,3vw,3rem);
}

body:has(.sm-lifecycle-rail) .sm-service-detail-card__section {
  border-color: rgba(21,48,50,.08);
}

body:has(.sm-lifecycle-rail) .sm-scope-table-wrap {
  overflow: hidden;
  border: 1px solid var(--sm-v3-line-strong);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(21,48,50,.07);
}

/* How it works — calm editorial dossier */
body:has(.sm-hiw-journey) {
  background: var(--sm-v3-ivory);
}

body:has(.sm-hiw-journey) .sm-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem,9vw,8.5rem);
  background:
    radial-gradient(circle at 80% 18%, rgba(185,132,69,.12), transparent 26%),
    linear-gradient(135deg,#fffdf8,#f1ece1 64%,#ecf3ef);
}

body:has(.sm-hiw-journey) .sm-page-hero::after {
  content: 'PROCESS';
  position: absolute;
  right: 2vw;
  bottom: -2.4rem;
  color: rgba(21,48,50,.035);
  font-family: var(--sm-font-display);
  font-size: clamp(7rem,18vw,18rem);
  letter-spacing: -.06em;
  pointer-events: none;
}

body:has(.sm-hiw-journey) .sm-page-hero__title {
  max-width: 12ch;
  font-size: clamp(4rem,8vw,7rem);
  line-height: .9;
}

body:has(.sm-hiw-journey) .sm-hiw-proof-strip {
  border-color: var(--sm-v3-line-strong);
  background: var(--sm-v3-paper);
}

body:has(.sm-hiw-journey) .sm-hiw-proof-item {
  border-color: var(--sm-v3-line);
}

body:has(.sm-hiw-journey) .sm-hiw-principles-grid,
body:has(.sm-hiw-journey) .sm-hiw-documents__list {
  border-color: var(--sm-v3-line-strong);
}

body:has(.sm-hiw-journey) .sm-hiw-principle,
body:has(.sm-hiw-journey) .sm-hiw-doc-card {
  border-color: var(--sm-v3-line);
}

body:has(.sm-hiw-journey) .sm-hiw-journey {
  grid-template-columns: 220px minmax(0,1fr);
}

body:has(.sm-hiw-journey) .sm-hiw-rail__track,
body:has(.sm-hiw-journey) .sm-hiw-step {
  border-color: var(--sm-v3-line-strong);
}

body:has(.sm-hiw-journey) .sm-hiw-step__number {
  color: var(--sm-v3-brass);
}

body:has(.sm-hiw-journey) .sm-hiw-step__cell {
  border-color: var(--sm-v3-line);
}

body:has(.sm-hiw-journey) .sm-hiw-step__gate {
  background: rgba(185,132,69,.045);
  border-color: rgba(185,132,69,.25);
}

/* Responsive */
@media (max-width: 1100px) {
  .sm-v3-hero__grid,
  .sm-v3-intro__grid,
  .sm-v3-section-head,
  .sm-v3-difference__grid,
  .sm-v3-services__grid,
  .sm-v3-final__panel {
    grid-template-columns: 1fr;
  }

  .sm-v3-hero__grid { min-height: auto; }
  .sm-v3-hero h1 { max-width: 11ch; }
  .sm-v3-hero__visual { max-width: 780px; }
  .sm-v3-intro__copy { padding-top: 0; }
  .sm-v3-services__intro { position: static; }
  .sm-v3-gates__grid,
  .sm-v3-process__rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sm-v3-gate:nth-child(2n),
  .sm-v3-process__rail li:nth-child(2n) { border-right: 0; }
  .sm-v3-gate:nth-child(-n+3),
  .sm-v3-process__rail li:nth-child(-n+3) { border-bottom: 1px solid var(--sm-v3-line); }

  body:has(.sm-lifecycle-rail) .sm-service-stage {
    grid-template-columns: 1fr;
  }

  body:has(.sm-lifecycle-rail) .sm-service-stage__header {
    position: static;
  }
}

@media (max-width: 760px) {
  .sm-v3-hero {
    padding-top: 2.5rem;
  }

  .sm-v3-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .sm-v3-hero__eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .sm-v3-hero__eyebrow span + span::before { display: none; }

  .sm-v3-hero h1 {
    max-width: none;
    font-size: clamp(3.25rem,14vw,5rem);
    line-height: .92;
  }

  .sm-v3-hero__lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .sm-v3-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sm-v3-hero__actions .sm-btn,
  .sm-v3-final__actions .sm-btn {
    width: 100%;
  }

  .sm-v3-hero__proof {
    grid-template-columns: 1fr;
  }

  .sm-v3-hero__proof div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sm-v3-line);
  }

  .sm-v3-blueprint {
    min-height: 500px;
    border-radius: 24px;
  }

  .sm-v3-blueprint__machine {
    width: 120%;
    margin-left: -10%;
  }

  .sm-v3-decision-note {
    display: none;
  }

  .sm-v3-dossier {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .sm-v3-hero__rail {
    grid-template-columns: 1fr 1fr;
  }

  .sm-v3-hero__rail span:nth-child(2) { border-right: 0; }
  .sm-v3-hero__rail span:nth-child(-n+2) { border-bottom: 1px solid var(--sm-v3-line); }

  .sm-v3-intro,
  .sm-v3-gates,
  .sm-v3-process,
  .sm-v3-final,
  .sm-v3-difference,
  .sm-v3-services {
    padding-block: 5rem;
  }

  .sm-v3-intro h2,
  .sm-v3-section-head h2,
  .sm-v3-difference h2,
  .sm-v3-services h2,
  .sm-v3-final h2 {
    font-size: clamp(2.65rem,12vw,4rem);
  }

  .sm-v3-index { margin-bottom: 1rem; }

  .sm-v3-gates__grid,
  .sm-v3-process__rail {
    grid-template-columns: 1fr;
  }

  .sm-v3-gate,
  .sm-v3-process__rail li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sm-v3-line);
  }

  .sm-v3-gate:last-child,
  .sm-v3-process__rail li:last-child { border-bottom: 0; }

  .sm-v3-gate__number,
  .sm-v3-process__rail span {
    margin-bottom: 2rem;
  }

  .sm-v3-compare__row {
    grid-template-columns: 40px 1fr;
  }

  .sm-v3-compare__row strong {
    grid-column: 2;
  }

  .sm-v3-service {
    grid-template-columns: 38px minmax(0,1fr) 20px;
    min-height: 130px;
  }

  .sm-v3-service h3 {
    font-size: 1.7rem;
  }

  body:has(.sm-lifecycle-rail) .sm-page-hero__title,
  body:has(.sm-hiw-journey) .sm-page-hero__title {
    font-size: clamp(3.2rem,14vw,5rem);
  }

  body:has(.sm-lifecycle-rail) .sm-lifecycle-rail {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  body:has(.sm-lifecycle-rail) .sm-lifecycle-rail__step {
    min-height: 150px;
    border-bottom: 1px solid var(--sm-v3-line);
  }

  body:has(.sm-lifecycle-rail) .sm-service-detail-card__section {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  body:has(.sm-hiw-journey) .sm-hiw-journey {
    grid-template-columns: 1fr;
  }

  body:has(.sm-hiw-journey) .sm-hiw-rail {
    display: none;
  }

  body:has(.sm-hiw-journey) .sm-hiw-step {
    grid-template-columns: 1fr;
  }

  body:has(.sm-hiw-journey) .sm-hiw-step__summary,
  body:has(.sm-hiw-journey) .sm-hiw-step__grid,
  body:has(.sm-hiw-journey) .sm-hiw-step__gate,
  body:has(.sm-hiw-journey) .sm-hiw-step__document {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-v3-link::after,
  .sm-v3-service {
    transition: none;
  }
}

/* Release hero: full-bleed evidence-led factory photography. */
.sm-v3-home .sm-v3-hero {
  min-height: 0;
  padding-top: 0;
  color: #fff;
  background-color: #10282b;
  background-image: url('../../images/serasmac-home-hero.webp');
  background-position: center;
  background-size: cover;
}

.sm-v3-home .sm-v3-hero::before {
  z-index: 0;
  opacity: 1;
  background: rgba(5, 22, 25, .66);
  mask-image: none;
}

.sm-v3-home .sm-v3-hero__grid,
.sm-v3-home .sm-v3-hero__rail {
  position: relative;
  z-index: 1;
}

.sm-v3-home .sm-v3-hero__grid {
  grid-template-columns: minmax(0, 780px);
  min-height: 620px;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.sm-v3-home .sm-v3-hero__copy {
  max-width: 780px;
}

.sm-v3-home .sm-v3-hero *,
.sm-v3-home .sm-v3-hero h1 {
  letter-spacing: 0;
}

.sm-v3-home .sm-v3-hero__eyebrow,
.sm-v3-home .sm-v3-hero__lead,
.sm-v3-home .sm-v3-hero__proof dd,
.sm-v3-home .sm-v3-hero .sm-v3-link {
  color: rgba(255, 255, 255, .84);
}

.sm-v3-home .sm-v3-hero__eyebrow span:first-child,
.sm-v3-home .sm-v3-hero h1,
.sm-v3-home .sm-v3-hero__proof dt {
  color: #fff;
}

.sm-v3-home .sm-v3-hero h1 {
  max-width: 12ch;
  font-size: 5rem;
  line-height: .96;
}

.sm-v3-home .sm-v3-hero h1 em {
  color: #8bd0ce;
}

.sm-v3-home .sm-v3-hero__lead {
  max-width: 670px;
  font-size: 1.2rem;
}

.sm-v3-home .sm-v3-hero__proof {
  max-width: 680px;
  margin-top: 3rem;
  border-color: rgba(255, 255, 255, .28);
}

.sm-v3-home .sm-v3-hero__proof dd {
  text-transform: none;
}

.sm-v3-home .sm-v3-hero__rail {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(5, 22, 25, .58);
}

.sm-v3-home .sm-v3-hero__rail span {
  color: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .16);
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .sm-v3-home .sm-v3-hero {
    background-position: 58% center;
  }

  .sm-v3-home .sm-v3-hero::before {
    background: rgba(5, 22, 25, .72);
  }

  .sm-v3-home .sm-v3-hero__grid {
    min-height: 590px;
  }

  .sm-v3-home .sm-v3-hero h1 {
    max-width: 13ch;
    font-size: 3.75rem;
  }
}

@media (max-width: 560px) {
  .sm-v3-home .sm-v3-hero__grid {
    min-height: 0;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .sm-v3-home .sm-v3-hero h1 {
    max-width: 12ch;
    font-size: 2.65rem;
    line-height: 1;
  }

  .sm-v3-home .sm-v3-hero__lead {
    font-size: 1rem;
  }

  .sm-v3-home .sm-v3-hero__proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .sm-v3-home .sm-v3-hero__proof div {
    display: block;
    padding: .9rem .5rem .2rem 0;
    border-bottom: 0;
  }

  .sm-v3-home .sm-v3-hero__proof dt {
    font-size: 1rem;
  }

  .sm-v3-home .sm-v3-hero__proof dd {
    font-size: .58rem;
  }
}
