.lipsmetric-dimensioning {
& {
  --mist: #edf6f3;
  --surface: #f8fbfa;
  --ink: #112722;
  --body: #445f59;
  --muted: #6f8982;
  --signal: #169c6c;
  --mint: #9ce8c9;
  --pill: #d9f3e7;
  --dark: #07161c;
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

& {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mint); color: var(--ink); }

& {
  min-height: 100vh;
  padding: clamp(56px, 7vw, 112px) clamp(20px, 5vw, 76px);
  overflow: hidden;
}

.process {
  width: min(1420px, 100%);
  margin: 0 auto;
}

.process-tabs { display: none; }

&.lipsmetric-ready .process-tabs {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1420px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid #cfe2dc;
}

.process-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 18px clamp(12px, 1.8vw, 26px) 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.process-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}

.process-tab:hover { background: rgba(248, 251, 250, .55); color: var(--ink); }
.process-tab[aria-selected="true"] { color: var(--ink); }
.process-tab[aria-selected="true"]::after { transform: scaleX(1); }

.process-tab__number {
  color: var(--signal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.process-tab__label {
  overflow: hidden;
  font-family: "Sora", sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station {
  --copy: minmax(280px, .73fr);
  --media: minmax(0, 1.27fr);
  position: relative;
  display: grid;
  grid-template-columns: var(--copy) var(--media);
  align-items: center;
  min-height: clamp(400px, 34vw, 510px);
  gap: clamp(44px, 5vw, 92px);
  padding: clamp(42px, 4vw, 62px) 0;
}

&.lipsmetric-ready .station[hidden] { display: none !important; }

.station::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: calc(29% - 8px);
  width: calc(15% + 16px);
  height: 1px;
  background: var(--mint);
  transform-origin: left center;
  pointer-events: none;
}

.station::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: calc(50% - 4px);
  left: 29%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 4px 14px rgba(22, 156, 108, .28);
}

.station__copy {
  position: relative;
  z-index: 4;
  max-width: 430px;
  padding-left: clamp(70px, 7vw, 118px);
}

.station__number {
  position: absolute;
  top: -68px;
  left: 0;
  color: #cdebe1;
  font-family: "Sora", sans-serif;
  font-size: clamp(70px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  user-select: none;
}

.station__icon {
  width: 39px;
  height: 39px;
  margin: 0 0 18px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.station h2 {
  max-width: 15ch;
  margin: 0 0 13px;
  font-family: "Sora", sans-serif;
  font-size: clamp(27px, 2.25vw, 38px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.station p {
  max-width: 39ch;
  margin: 0;
  color: var(--body);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
}

.station .station__lead {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.48;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pill);
  color: #176649;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.scene {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: clamp(270px, 27vw, 390px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: 0 24px 52px rgba(13, 57, 46, .13);
}

.scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.scene--capture img { object-position: 58% 52%; }
.scene--measure img { object-position: 52% 53%; }
.scene--validate img { object-position: 50% 50%; }
.scene--connect img { object-position: 50% 52%; }

.scene__label {
  position: absolute;
  inset: auto 18px 16px 18px;
  display: flex;
  justify-content: space-between;
  color: rgba(16, 43, 36, .72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
}

.scene__label--dark { color: rgba(194, 255, 231, .72); }

.ui-title,
.ui-status,
.node-label {
  position: absolute;
  z-index: 3;
  color: #e8fff5;
  font-size: clamp(8px, .72vw, 11px);
}

.ui-title { top: 17px; left: 22px; display: flex; align-items: center; gap: 5px; }
.ui-title strong { font-weight: 600; }
.ui-mark { width: 7px; height: 7px; border: 1px solid var(--mint); transform: rotate(45deg); }
.ui-status { top: 17px; right: 22px; font-family: "IBM Plex Mono", monospace; letter-spacing: .08em; }
.ui-status span { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #70e8b4; box-shadow: 0 2px 8px rgba(112, 232, 180, .5); }

.node-label { transform: translate(-50%, -50%); text-align: center; font-weight: 500; }
.node-label--parking { left: 17.5%; top: 31%; }
.node-label--toll { left: 17.5%; top: 68%; }
.node-label--core { left: 50%; top: 50%; }
.node-label--core strong { display: block; margin-top: 3px; color: white; }
.node-label--erp { left: 82.5%; top: 31%; }
.node-label--database { left: 82.5%; top: 68%; }

.outputs {
  width: min(1420px, 100%);
  margin: clamp(28px, 3.5vw, 52px) auto 0;
  padding: clamp(24px, 2.5vw, 38px);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(26, 68, 58, .09);
}

.outputs h2 {
  margin: 0 0 27px;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.outputs__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(94px, 1fr));
}

.output {
  display: grid;
  justify-items: center;
  gap: 11px;
  min-width: 0;
  padding: 3px 14px;
  color: var(--body);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
}

.output + .output { border-left: 1px solid #d7e4df; }
.output svg { width: 29px; height: 29px; fill: none; stroke: var(--signal); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.scope {
  display: grid;
  grid-template-columns: minmax(220px, .52fr) 1.48fr;
  gap: clamp(34px, 5vw, 88px);
  width: min(1420px, 100%);
  margin: 18px auto 0;
  padding: clamp(30px, 3.5vw, 52px) clamp(24px, 3.8vw, 58px);
  border-radius: 16px;
  background: #102a25;
  color: #effbf7;
  box-shadow: 0 22px 52px rgba(13, 57, 46, .14);
}

.scope h2 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.scope__intro p {
  max-width: 31ch;
  margin: 0;
  color: #b9d2ca;
  font-size: 13px;
  line-height: 1.65;
}

.scope__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
}

.scope__item {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 88px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(156, 232, 201, .18);
}

.scope__item strong {
  color: #effbf7;
  font-size: 13px;
  font-weight: 600;
}

.scope__item span {
  color: #a9c8be;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9.5px, .7vw, 10.5px);
  line-height: 1.55;
}

&.lipsmetric-ready .station::after { transform: scaleX(.08); opacity: .4; transition: transform .75s var(--ease), opacity .5s ease; }
&.lipsmetric-ready .station::before { opacity: .35; transition: opacity .5s ease, box-shadow .8s var(--ease); }
&.lipsmetric-ready .scene { clip-path: inset(0 4% 0 0 round var(--radius)); filter: saturate(.86); transition: clip-path .75s var(--ease), filter .75s var(--ease), box-shadow .75s var(--ease); }
&.lipsmetric-ready .station.is-visible::after { transform: scaleX(1); opacity: 1; }
&.lipsmetric-ready .station.is-visible::before { opacity: 1; box-shadow: 0 5px 18px rgba(22, 156, 108, .42); }
&.lipsmetric-ready .station.is-visible .scene { clip-path: inset(0 round var(--radius)); filter: saturate(1); box-shadow: 0 28px 60px rgba(13, 57, 46, .17); }

@media (max-width: 900px) {
  & { padding-inline: 20px; }
  &.lipsmetric-ready .process-tabs {
    grid-template-columns: repeat(4, minmax(168px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--signal) #d7e7e1;
  }
  .process-tab { padding-inline: 15px; }
  .station { grid-template-columns: 1fr; gap: 30px; padding: 72px 0 46px; }
  .station::after { display: none; }
  .station::before { top: 23px; left: auto; right: 0; }
  .station__copy { max-width: 610px; padding-left: 72px; }
  .station__number { top: -51px; font-size: 72px; }
  .scene { height: clamp(245px, 54vw, 420px); }
  .outputs { padding-inline: 0; background: transparent; box-shadow: none; }
  .outputs h2 { padding-left: 4px; }
  .outputs__list { grid-template-columns: repeat(7, 126px); overflow-x: auto; padding: 0 4px 14px; scrollbar-color: var(--signal) #d7e7e1; scrollbar-width: thin; }
  .output { min-height: 86px; align-content: center; border-radius: 12px; background: var(--surface); }
  .output + .output { border-left: 0; margin-left: 8px; }
  .scope { grid-template-columns: 1fr; gap: 24px; }
  .scope__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  & { padding: 36px 16px 56px; }
  &.lipsmetric-ready .process-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    border-bottom: 0;
  }
  .process-tab {
    gap: 9px;
    min-height: 64px;
    padding: 13px 10px 15px;
    border-bottom: 1px solid #cfe2dc;
  }
  .process-tab__label {
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
  }
  .station { padding-top: 72px; }
  .station__copy { padding-left: 0; }
  .station__number { top: -58px; left: 0; font-size: 66px; }
  .station__icon { margin-left: 76px; margin-bottom: 20px; }
  .station h2 { font-size: 29px; }
  .station p { font-size: 14px; }
  .scene { height: 64vw; min-height: 238px; max-height: 330px; border-radius: 16px; }
  .scene--capture img { object-position: 63% 50%; }
  .scene--connect img { object-position: 50% 50%; }
  .scene__label { inset-inline: 12px; bottom: 11px; font-size: 8px; }
  .node-label { font-size: 7px; }
  .node-label--parking, .node-label--toll { left: 15%; }
  .node-label--erp, .node-label--database { left: 85%; }
  .tags { gap: 6px; margin-top: 18px; }
  .tags span { padding-inline: 10px; font-size: 10px; }
  .scope { padding: 28px 22px; }
  .scope__list { grid-template-columns: 1fr; }
  .scope__item { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  &.lipsmetric-ready .station::after, &.lipsmetric-ready .station::before, &.lipsmetric-ready .scene { transition: none; transform: none; opacity: 1; clip-path: inset(0 round var(--radius)); filter: none; }
}

:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
}
