/* Content rests fully visible. Motion is a progressive layer, never a gate. */
.st-motion-ready.js-motion [data-reveal],
.st-motion-paused.js-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
.st-motion-ready body::before {
  content: '';
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(var(--page-read, 0));
  transform-origin: left;
  pointer-events: none;
}
.motion-depth { overflow: hidden; }
.st-motion-ready .motion-depth .motion-depth-image {
  transform: translate3d(0, var(--depth-y, 0px), 0) scale(1.12);
  transform-origin: center;
}
.st-motion-ready .home-hero .hero-copy {
  translate: 0 var(--hero-shift, 0px);
}
.st-motion-ready .home-hero .hero-bottom { opacity: calc(1 - var(--hero-progress, 0) * .6); }
.st-motion-ready .scroll-cue::before {
  transform-origin: top;
  animation: scroll-thread 2.8s cubic-bezier(.45,0,.25,1) 3;
}
@keyframes scroll-thread {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  45% { transform: scaleY(.35); opacity: .35; }
  70% { transform: scaleY(1); opacity: 1; }
}

/* The material story moves from incoming glass to a possible next product. */
.material-story-photo { isolation: isolate; }
.material-story-photo::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, #071b15e8, #071b1570 40%, transparent);
}
.glass-story .material-story-photo img.story-layer,
.glass-story:hover .material-story-photo img.story-layer {
  z-index: 0;
  opacity: 0;
  transform: scale(1.065);
  transition: opacity 1.05s ease, transform 2.3s cubic-bezier(.2,.6,.2,1);
}
.glass-story .material-story-photo img.story-layer.is-current,
.glass-story:hover .material-story-photo img.story-layer.is-current {
  opacity: 1;
  transform: scale(1.01);
  z-index: 1;
}
.material-story-photo .image-note { z-index: 3; bottom: 109px; left: 32px; right: 32px; max-width: 390px; }
.material-story-controls {
  position: absolute;
  z-index: 4;
  left: 32px;
  right: 32px;
  bottom: 27px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.material-story-controls button {
  position: relative;
  border: 0;
  background: transparent;
  color: #dce6d7;
  text-align: left;
  padding: 10px 0 13px;
  font-size: .77rem;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  transition: color .25s;
}
.material-story-controls .story-number { font-size: .62rem; color: #cfdfa6; }
.material-story-controls i { height: 1px; position: absolute; bottom: 0; left: 0; right: 0; background: #ffffff45; }
.material-story-controls i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.material-story-controls button[aria-pressed="true"] { color: #fff; }
.material-story-controls button[aria-pressed="true"] i::after { transform: scaleX(1); }
.material-story-controls button:hover { color: var(--green); }
.material-story-controls button:focus-visible { outline-color: var(--green); outline-offset: 4px; }
.material-story-controls button:disabled { opacity: .45; }

/* Editorial cards: restrained depth, a moving light and an opening rule. */
.motion-surface { position: relative; isolation: isolate; }
.st-motion-ready .motion-surface {
  transition: transform .65s var(--ease), box-shadow .65s var(--ease);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.motion-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 50%), #ffffff2b, transparent 58%);
  opacity: 0;
  transition: opacity .45s ease;
}
.st-motion-ready .motion-surface.pointer-active::after { opacity: 1; }
.material-card .detail, .product-card .product-info { position: relative; }
.material-card .detail::after, .product-card .product-info::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #548d40;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.material-card:hover .detail::after, .material-card:focus-visible .detail::after,
.product-card:hover .product-info::after, .product-card:focus-within .product-info::after { transform: scaleX(1); }
.material-card .num { transition: color .3s, translate .4s var(--ease); }
.material-card:hover .num { color: #548d40; translate: 4px 0; }
.technology-row .symbol { transition: transform .55s var(--ease); }
.technology-row:hover .symbol, .technology-row:focus-visible .symbol { transform: rotate(90deg); }
.button { position: relative; overflow: hidden; isolation: isolate; }
.button::after {
  content: '';
  position: absolute;
  top: -80%;
  bottom: -80%;
  left: -55%;
  width: 28%;
  background: linear-gradient(90deg, transparent, #ffffff2b, transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}
.button:hover::after { animation: button-light .75s var(--ease); }
@keyframes button-light { to { left: 140%; } }

/* Existing native page navigation keeps its timing; shutters gain depth. */
.page-transition .blade {
  background: linear-gradient(158deg, #244f3b 0%, #183f30 38%, #10271f 100%);
  border-right: 1px solid #b6ec741b;
  box-shadow: 16px 0 40px #071a1526;
}
.page-transition .blade:nth-child(even) { background: linear-gradient(158deg, #1c4935, #0c211a); }
.page-transition .transition-label { padding: 24px; text-align: center; isolation: isolate; }
.page-transition .transition-label::before {
  content: '';
  position: absolute;
  width: min(72vw, 700px);
  aspect-ratio: 1;
  border: 1px solid #b6ec7414;
  border-radius: 50%;
  box-shadow: 0 0 0 70px #b6ec7405, 0 0 0 140px #b6ec7404;
  z-index: -1;
  transform: scale(.85);
  transition: transform 1s var(--ease);
}
.page-transition.leaving .transition-label::before { transform: scale(1); }
.page-transition .transition-label strong { max-width: 1100px; line-height: 1.1; text-wrap: balance; }
.page-transition .transition-line { width: 180px; height: 2px; margin-top: 5px; }
.page-transition .transition-line::after { animation-duration: .85s; }

/* Low-data / motion preferences restore the original, complete photograph. */
.st-motion-paused .material-story-controls,
.st-motion-paused .material-story-photo .story-layer:not(:first-child) { display: none; }
.st-motion-paused .material-story-photo .story-layer:first-child { opacity: 1; transform: none; }
.st-motion-paused .material-story-photo .image-note { bottom: 24px; }
.st-motion-paused .motion-depth-image { transform: none; }
.st-motion-paused .motion-surface { transform: none; }
@media (max-width: 800px) {
  .st-motion-ready .motion-depth .motion-depth-image { transform: translate3d(0, calc(var(--depth-y, 0px) * .45), 0) scale(1.08); }
  .st-motion-ready .home-hero .hero-copy { translate: none; }
  .material-story-photo .image-note { left: 24px; right: 24px; }
  .material-story-controls { left: 24px; right: 24px; gap: 16px; }
}
@media (max-width: 500px) {
  .glass-story .material-story-photo { min-height: 410px; }
  .material-story-controls { gap: 13px; }
  .material-story-controls button { gap: 6px; font-size: .72rem; }
  .material-story-photo .image-note { font-size: .67rem; }
  .page-transition .transition-label strong { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (hover: none), (pointer: coarse) {
  .motion-surface::after { display: none; }
  .st-motion-ready .motion-surface { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-motion-ready .motion-depth .motion-depth-image, .st-motion-ready .home-hero .hero-copy,
  .st-motion-ready .motion-surface { transform: none; translate: none; }
  .material-story-controls { display: none; }
  .material-story-photo .story-layer:not(:first-child) { display: none; }
  .glass-story .material-story-photo img.story-layer:first-child { opacity: 1; transform: none; }
  .material-story-photo .image-note { bottom: 24px; }
  .motion-surface::after, .st-motion-ready body::before { display: none; }
}
@media print {
  .material-story-controls, .motion-surface::after, .st-motion-ready body::before { display: none; }
  .material-story-photo .story-layer:not(:first-child) { display: none; }
  .glass-story .material-story-photo img.story-layer:first-child { opacity: 1; transform: none; }
  .material-story-photo .image-note { bottom: 24px; }
}
