@font-face {
  font-family: Steri Sans;
  src: url("assets/dm-sans.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Steri Sans;
  src: url("assets/dm-semibold.woff") format("woff");
  font-style: normal;
  font-weight: 550 900;
  font-display: swap;
}

.steri-front {
  --ink: #112944;
  --sub: #39566f;
  --blue: #084bc7;
  --blue-dark: #053896;
  --ice: #edf7ff;
  --hair: #ccdfef;
  --gutter: clamp(2.2rem, 5.7vw, 7.4rem);
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Steri Sans", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.panel-stage *, .panel-stage *::before, .panel-stage *::after { box-sizing: border-box; }
.panel-stage { isolation: isolate; }
.panel-stage h1, .panel-stage h2, .panel-stage p { margin: 0; }
.panel-stage a { color: inherit; }
.panel-stage img { max-width: 100%; }
.slide { background: #fff; }
.slide-content { position: relative; isolation: isolate; }
.dental-layout, .residential-layout, .science-layout, .contact-layout {
  display: grid;
  align-items: center;
}
.eyeline {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: clamp(.72rem, .83vw, .9rem);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.spectral-mark {
  display: inline-block;
  flex: 0 0 28px;
  width: 28px;
  height: 10px;
  background: repeating-linear-gradient(110deg, currentColor 0 2px, transparent 2px 6px);
  transform: skewX(-9deg);
}

.lead-title, .panel-title, .model-name, .contact-directory a span {
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
}
.lead-title, .panel-title { line-height: .99; letter-spacing: -.062em; }
.lead-title strong, .panel-title strong { color: var(--blue); font-weight: inherit; }
.lead-title { font-size: clamp(3.8rem, 5.72vw, 7.7rem); }
.lead-title span, .lead-title strong { display: block; }
.panel-title { font-size: clamp(3.6rem, 5.65vw, 7.1rem); }
.panel-title strong { white-space: nowrap; }
.panel-stage .deck {
  max-width: 37rem;
  color: var(--sub);
  font-size: clamp(1.04rem, 1.27vw, 1.36rem);
  line-height: 1.52;
  letter-spacing: -.012em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.35rem;
}
.panel-stage .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: fit-content;
  padding: .74rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .99rem;
  line-height: 1.28;
  font-weight: 650;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.panel-stage .action-blue { color: white; background: var(--blue); }
.panel-stage .action-blue:hover { background: var(--blue-dark); }
.panel-stage .action-line {
  padding-inline: 0;
  color: var(--blue);
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .34em;
}
.panel-stage .action-line:hover { text-decoration-thickness: 2px; color: var(--blue-dark); }
.panel-stage a:focus-visible, .panel-stage button:focus-visible {
  outline: 3px solid #fa8c22;
  outline-offset: 4px;
}
.scene {
  overflow: hidden;
  background: #daebf8;
}
.scene > picture, .scene > picture img, .scene > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene > video[hidden], .motion-control[hidden] { display: none; }
.scene-tools {
  position: absolute;
  z-index: 3;
  display: flex;
  right: clamp(1rem, 2.9vw, 3.5rem);
  bottom: clamp(.9rem, 2.2vw, 2rem);
  align-items: center;
  gap: .75rem;
  color: #18344d;
}
.scene-credit, .motion-control {
  font-family: "Steri Sans", Arial, sans-serif;
  font-size: .75rem;
  letter-spacing: .005em;
  line-height: 1.2;
}
.scene-credit { padding: .32rem .55rem; background: #fffffff0; border-radius: 3px; }
.motion-control {
  padding: .52rem .72rem;
  border-radius: 4px;
  background: #fffffff2;
  border: 1px solid #a4bbce;
  color: #173957;
  font-weight: 650;
  cursor: pointer;
}
.motion-control:hover { background: #fff; border-color: #2763a4; }

.dental-layout { background: #f5faff; grid-template-columns: minmax(0, 1fr); }
.dental-scene { position: absolute; inset: 0 0 0 39%; }
.dental-scene::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 23%;
  pointer-events: none;
  background: linear-gradient(90deg, #f5faff, rgba(245,250,255,.72) 23%, rgba(245,250,255,0));
}
.dental-scene img, .dental-scene video { object-position: 62% 53%; }
.lead-copy {
  position: relative;
  width: fit-content;
  max-width: 65%;
  margin-left: var(--gutter);
  padding-block: clamp(2.6rem, 6vh, 6rem);
}
.lead-copy .lead-title { margin-block: clamp(1.05rem, 2.15vh, 2rem) clamp(1rem, 2.2vh, 1.8rem); }
.lead-copy .deck { max-width: min(32rem, 40vw); }
.lead-copy .action-row { margin-top: clamp(1.2rem, 2.7vh, 2.2rem); }

.residential-layout {
  grid-template-columns: 53% minmax(0, 1fr);
  background: #fff;
}
.home-scene { position: absolute; inset: 0 47% 0 0; }
.home-scene img, .home-scene video { object-position: 55% 55%; }
.home-scene::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 6%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15));
}
.residential-copy {
  grid-column: 2;
  padding: clamp(2.7rem, 5.3vw, 6rem) var(--gutter) clamp(2.7rem, 5.3vw, 6rem) clamp(2.4rem, 4.4vw, 5.7rem);
}
.residential-copy .panel-title, .science-copy .panel-title, .contact-main .panel-title {
  margin: clamp(1.1rem, 2.2vh, 1.85rem) 0 clamp(1rem, 2.5vh, 1.85rem);
}
.residential-copy .action-row, .science-copy .action, .contact-main .action {
  margin-top: clamp(1.1rem, 2.8vh, 2.3rem);
}

.system-layout {
  display: grid;
  align-content: center;
  padding: clamp(2rem, 5.2vh, 6rem) var(--gutter);
  gap: clamp(1.4rem, 3.6vh, 3.5rem);
  background: #fff;
}
.system-heading {
  display: grid;
  grid-template-columns: 1.55fr .65fr;
  gap: var(--gutter);
  align-items: end;
}
.system-heading .panel-title {
  margin-top: clamp(.8rem, 1.6vh, 1.55rem);
  font-size: clamp(3.3rem, 5.1vw, 6.65rem);
}
.system-heading .deck { align-self: end; max-width: 30rem; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.9rem, 1.5vw, 2.15rem); }
.model-tile {
  display: block;
  border-top: 1px solid var(--hair);
  text-decoration: none;
  padding-top: .7rem;
}
.model-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ecf6ff;
  aspect-ratio: 2.15;
}
.model-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .24s ease;
}
.model-tile:hover img { transform: scale(1.035); }
.model-name { display: block; margin: .65rem 0 .02rem; font-size: clamp(1.25rem, 1.9vw, 2.35rem); letter-spacing: -.045em; }
.model-use { color: var(--sub); font-size: 1rem; }
.system-link { margin-top: -.45rem; }

.science-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  background: linear-gradient(130deg, #edf7ff 0%, #dcebff 100%);
}
.science-film {
  position: relative;
  align-self: stretch;
  isolation: isolate;
  min-height: 14rem;
  background: #d9e5ee;
}
/* A soft extension of the lab light fills the edges around the portrait. */
.science-film::before {
  content: "";
  position: absolute;
  inset: -2rem;
  background: linear-gradient(115deg, #deecf7a6, #cedcedb5),
    url("assets/petri-tall.webp") center / cover;
  filter: blur(16px);
}
.science-film > picture img,
.science-film > video,
.scene.science-film > .motion-backup { object-fit: contain; }
.science-film .scene-tools { inset: .65rem .75rem auto; justify-content: space-between; }
.science-copy { padding: 3rem var(--gutter) 3rem clamp(1.5rem, 3.5vw, 4rem); }
.science-copy .deck { max-width: 32rem; }

.contact-layout {
  grid-template-columns: 1.16fr .75fr;
  gap: clamp(2rem, 9vw, 11rem);
  padding: clamp(2.5rem, 6vh, 6rem) var(--gutter);
  color: #fff;
  background: #0649bd;
}
.contact-main .eyeline, .contact-main .panel-title, .contact-main .deck { color: #fff; }
.contact-main .eyeline { color: #deefff; }
.contact-main .panel-title strong { color: #b9e3ff; }
.contact-main .deck { max-width: 30rem; color: #ebf5ff; }
.panel-stage .action-white { color: #073ba2; background: white; }
.panel-stage .action-white:hover { background: #eaf6ff; }
.contact-directory { display: grid; padding-top: 1.8rem; }
.contact-directory a {
  display: grid;
  grid-template-columns: 1fr;
  gap: .12rem;
  padding: 1rem 0;
  border-top: 1px solid #9bbde2;
  text-decoration: none;
}
.contact-directory a span { color: white; font-size: clamp(1.4rem, 1.9vw, 2.4rem); letter-spacing: -.042em; }
.contact-directory a small { color: #e0efff; font-size: .96rem; }
.contact-directory a:hover span, .contact-directory .credit-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact-directory .credit-link { color: #dfedff; font-size: .84rem; padding: .85rem 0; }

@media (max-width: 900px) and (min-width: 701px) {
  .steri-front { --gutter: 2rem; }
  .lead-title { font-size: clamp(3.15rem, 6.35vw, 3.85rem); }
  .panel-title { font-size: clamp(2.9rem, 5.3vw, 3.7rem); }
  .lead-copy { max-width: 60%; }
  .lead-copy .deck { max-width: 41vw; }
  .residential-copy { padding: 2rem; }
  .system-heading { gap: 1.5rem; grid-template-columns: 1.15fr .75fr; }
  .system-heading .panel-title { font-size: 3.2rem; }
  .contact-layout { gap: 2.5rem; }
}

@media (max-width: 700px) {
  .steri-front { --gutter: clamp(1.1rem, 5.1vw, 2.1rem); }
  .eyeline { font-size: .72rem; gap: .5rem; }
  .spectral-mark { flex-basis: 21px; width: 21px; height: 8px; }
  .lead-title { font-size: clamp(2.42rem, 10.65vw, 4.05rem); line-height: .98; letter-spacing: -.058em; }
  .panel-title { font-size: clamp(2.65rem, 10.8vw, 4.25rem); line-height: .98; }
  .panel-stage .deck { font-size: 1rem; line-height: 1.4; }
  .panel-stage .action { min-height: 44px; font-size: .94rem; padding: .62rem .92rem; }
  .panel-stage .action-line { padding-inline: 0; }
  .scene-tools {
    inset: .45rem .45rem auto .65rem;
    justify-content: space-between;
    pointer-events: none;
  }
  .scene-credit {
    align-self: flex-start;
    margin-top: .32rem;
    padding: .28rem .48rem;
    border: 1px solid #dee8ef;
    border-radius: 4px;
    font-size: .72rem;
  }
  .motion-control {
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
  }
  .motion-control:hover { background: transparent; }
  .motion-control::before, .motion-control::after { content: ""; grid-area: 1 / 1; }
  .motion-control::before {
    width: 33px;
    height: 33px;
    border: 1px solid #9bb4c9;
    border-radius: 50%;
    background: #fffffff0;
  }
  .motion-control[data-action="pause"]::after {
    width: 10px;
    height: 12px;
    border-inline: 3px solid #173957;
  }
  .motion-control[data-action="play"]::after {
    margin-left: 2px;
    border-block: 6px solid transparent;
    border-left: 9px solid #173957;
  }
  .dental-layout, .residential-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(10.5rem, 1fr) auto;
    align-items: stretch;
  }
  .dental-layout { background: #f5faff; }
  .dental-scene, .home-scene { position: relative; inset: auto; grid-column: 1; grid-row: 1; min-height: clamp(11rem, 30svh, 25rem); }
  .dental-scene::after, .home-scene::after { display: none; }
  .dental-scene img, .dental-scene video { object-position: 50% 64%; }
  .home-scene img, .home-scene video {
    object-position: 50% 62%;
    transform: scale(1.19);
    transform-origin: 50% 59%;
  }
  .lead-copy, .residential-copy {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1.05rem, 2.55svh, 1.65rem) var(--gutter) clamp(1.15rem, 3.2svh, 2.1rem);
  }
  .lead-copy .lead-title, .residential-copy .panel-title, .science-copy .panel-title, .contact-main .panel-title {
    margin: .65rem 0 .68rem;
  }
  .lead-copy .lead-title span, .lead-copy .lead-title strong { white-space: nowrap; }
  .lead-copy .deck, .residential-copy .deck, .science-copy .deck { max-width: 36rem; }
  .lead-copy .action-row, .residential-copy .action-row { margin-top: .95rem; gap: .52rem 1rem; }
  .residential-copy .action-row, .science-copy .action, .contact-main .action { margin-top: .95rem; }
  .system-layout { padding: clamp(1.3rem, 3svh, 2.3rem) var(--gutter); gap: 1rem; }
  .system-heading { grid-template-columns: 1fr; gap: .7rem; }
  .system-heading .panel-title { font-size: clamp(2.5rem, 9.5vw, 4rem); margin: .65rem 0 0; }
  .system-heading .deck { max-width: 32rem; }
  .model-grid { gap: 0; grid-template-columns: 1fr; }
  .model-tile { display: grid; grid-template-columns: clamp(4.8rem, 23vw, 8rem) 1fr; column-gap: .9rem; align-content: center; align-items: center; padding: .6rem 0; }
  .model-image { grid-column: 1; grid-row: 1/3; width: 100%; aspect-ratio: 1.55; }
  .model-name { align-self: end; margin: 0; font-size: clamp(1.21rem, 5vw, 1.6rem); }
  .model-use { grid-column: 2; align-self: start; font-size: .89rem; }
  .model-tile:last-child { border-bottom: 1px solid var(--hair); }
  .system-link { margin-top: -.4rem; }
  .science-layout { grid-template-columns: 1fr; grid-template-rows: minmax(10.65rem, 1fr) auto; }
  .science-film { grid-row: 1; min-height: clamp(12rem, 30svh, 22rem); }
  .science-film .scene-tools { inset: .45rem .45rem auto .65rem; }
  .science-copy { padding: clamp(1.05rem, 2.55svh, 1.65rem) var(--gutter) clamp(1.15rem, 3.2svh, 2.1rem); }
  .contact-layout { grid-template-columns: 1fr; align-content: center; gap: clamp(1rem, 3.2svh, 2rem); padding: 1.5rem var(--gutter); }
  .contact-directory { padding: 0; }
  .contact-directory a { grid-template-columns: 1fr 1.2fr; align-items: center; padding: .7rem 0; gap: .5rem; }
  .contact-directory a span { font-size: 1.12rem; }
  .contact-directory a small { font-size: .82rem; line-height: 1.2; }
  .contact-directory .credit-link { font-size: .75rem; padding: .5rem 0; }
}
@media (max-width: 365px) {
  .lead-copy .action-row { column-gap: .75rem; }
  .panel-stage .action { font-size: .88rem; }
  .panel-stage .deck { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-stage *, .panel-stage *::before, .panel-stage *::after { transition-duration: 0s !important; }
}

@media (max-width: 365px) {
  .lead-copy .action-row { flex-wrap: nowrap; gap: .8rem; }
  .lead-copy .action-blue { padding-inline: .72rem; }
  .lead-copy .action { white-space: nowrap; }
  .lead-copy .deck, .residential-copy .deck { line-height: 1.36; }
}
@media (max-height: 690px) and (max-width: 700px) {
  .dental-layout, .residential-layout, .science-layout { grid-template-rows: minmax(6rem, 1fr) auto; }
  .dental-scene, .home-scene { min-height: min(62vw, 13rem); }
  .lead-title, .residential-copy .panel-title { font-size: clamp(2.06rem, 8.7vw, 3rem); }
  .dental-scene img, .dental-scene video { object-position: 50% 66%; }
  .home-scene img, .home-scene video { object-position: 50% 63%; transform: none; }
  .science-film { min-height: 8rem; }
  .lead-copy, .residential-copy, .science-copy { padding-block: .8rem .9rem; }
  .lead-copy .lead-title, .residential-copy .panel-title, .science-copy .panel-title { margin-block: .45rem; }
  .lead-copy .action-row, .residential-copy .action-row, .science-copy .action, .contact-main .action { margin-top: .52rem; }
  .contact-layout, .system-layout { padding-block: .82rem; }
  .system-layout { gap: .6rem; }
  .system-heading { gap: .35rem; }
  .system-heading .panel-title { margin-top: .38rem; font-size: clamp(2rem, 8vw, 2.75rem); }
  .model-tile { padding-block: .35rem; }
  .contact-main .panel-title { margin-block: .5rem; font-size: clamp(2.35rem, 9.1vw, 3.4rem); }
  .contact-layout { gap: .6rem; }
  .contact-directory a { padding-block: .48rem; }
}

@media (max-height: 620px) and (max-width: 365px) {
  .lead-title { font-size: 1.63rem; line-height: 1.04; text-wrap: wrap; }
  .lead-copy .lead-title span, .lead-copy .lead-title strong {
    display: inline;
    white-space: normal;
  }
  .lead-copy, .residential-copy { padding-block: .52rem .65rem; }
  .dental-scene, .home-scene { min-height: min(65vw, 14rem); }
  .dental-scene .scene-tools {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .15rem;
  }
  .residential-copy .panel-title { font-size: 1.9rem; }
  .residential-copy .action-row { gap: .36rem; }
  .residential-copy .action-blue { padding-inline: .4rem; }
}

/* The rim is painted behind the clipped panel. The scroll engine continues
   to measure the full section, including the small reveal around the frame. */
.steri-front .panel-stage {
  --frame-gutter: clamp(8px, 1.65vw, 28px);
  --frame-air: clamp(7px, 1.35vh, 16px);
  --frame-rim: 3px;
  --frame-curve: clamp(17px, 1.55vw, 25px);
  background: #edf3f9;
}
.steri-front .panel-stage > .slide {
  margin-inline: var(--frame-gutter);
  padding: calc(var(--frame-air) + var(--frame-rim)) var(--frame-rim);
  background: transparent;
}
.steri-front .panel-stage > .slide::before {
  content: "";
  position: absolute;
  inset: var(--frame-air) 0;
  z-index: -1;
  border-radius: var(--frame-curve);
  background:
    repeating-linear-gradient(119deg, transparent 0 2px, #ffffff1c 2px 3px, transparent 3px 5px),
    linear-gradient(118deg,
      #758aab 0%, #b9d7ee 9%, #f3fbff 18%, #99b2d2 33%,
      #747fa8 47%, #a5b6d9 54%, #ebf8ff 66%, #889fbd 82%, #65778c 100%);
  box-shadow:
    0 0 0 1px #47608043,
    0 3px 9px -4px #18385245,
    0 8px 22px -12px #52639358;
  pointer-events: none;
}
.steri-front .panel-stage > .slide > .slide-content {
  min-block-size: calc(var(--panel-h) - var(--frame-air) * 2 - var(--frame-rim) * 2);
  border-radius: calc(var(--frame-curve) - var(--frame-rim));
  overflow: hidden;
  overflow: clip;
  /* Light picks up the inner face of the bevel on the shadow side. */
  box-shadow: 0 0 0 1px #3b5d8238, 0 1px 1px #f5fcffb8;
}
.model-image { border-radius: 7px; }
@media (max-width: 700px) {
  .steri-front .panel-stage {
    --frame-rim: 2px;
    --frame-curve: 17px;
    --frame-air: 7px;
    --gutter: clamp(.91rem, 4.6vw, 1.9rem);
  }
}
@media (max-width: 365px) {
  .steri-front .panel-stage { --frame-gutter: 6px; --frame-air: 5px; --gutter: .82rem; }
}
@media (forced-colors: active) {
  .steri-front .panel-stage > .slide::before { border: 1px solid CanvasText; }
}
