:root {
  --product-silkscreen: "MARSMINER";
  --dur-signature-planet: 1200ms;
  --dur-signature-copy: 600ms;
  --dur-signature-eyebrow: 400ms;
}

/* Phase 2 removes generic scroll reveals. Content is always the default state. */
.reveal,
.js-enabled .reveal,
.js-enabled .reveal.is-visible,
.js-enabled.js-reveal-ready .reveal,
.js-enabled.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Homepage material layers */
.hero-media {
  position: absolute;
  z-index: -4;
  inset: -10% -2%;
  width: 104%;
  height: 120%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.hero .hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  animation: none;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.035);
  transition: transform var(--dur-slow) var(--ease-out-strong);
}

.hero-wafer-iridescence {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  background: conic-gradient(
    from 214deg at 68% 88%,
    rgba(88, 110, 178, 0) 0deg,
    rgba(120, 108, 174, .52) 42deg,
    rgba(88, 142, 166, .38) 76deg,
    rgba(170, 126, 154, .44) 112deg,
    rgba(111, 102, 170, .26) 154deg,
    rgba(88, 110, 178, 0) 208deg,
    rgba(146, 124, 178, .42) 278deg,
    rgba(88, 110, 178, 0) 360deg
  );
  mix-blend-mode: color-dodge;
  -webkit-mask-image: radial-gradient(ellipse 91% 42% at 68% 91%, #000 0 52%, rgba(0,0,0,.72) 61%, transparent 74%);
  mask-image: radial-gradient(ellipse 91% 42% at 68% 91%, #000 0 52%, rgba(0,0,0,.72) 61%, transparent 74%);
}

.hero::after,
.m100-section::after,
.technology::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .04;
  background-image: var(--noise-texture);
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
}

.careers::before,
.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .035;
  background-image: var(--noise-texture);
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
}

.careers > :not(.careers-motion),
.site-footer > * {
  position: relative;
  z-index: 1;
}

.careers > .careers-motion {
  position: absolute;
  z-index: -2;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.section-motion,
.careers-motion {
  animation-name: none !important;
  transform: none;
}

.hero .eyebrow,
.hero h1,
.hero-summary,
.hero-actions,
.hero-ambient,
.scroll-cue span {
  animation: none;
}

/* One orchestrated first-visit signature moment. */
.hero-signature-first .hero .hero-backdrop {
  animation: hero-signature-planet var(--dur-signature-planet) var(--ease-out-strong) both;
}

.hero-signature-first .hero h1 span,
.hero-signature-first .hero-summary,
.hero-signature-first .hero-actions,
.hero-signature-first .hero .eyebrow {
  animation-fill-mode: both;
  animation-timing-function: var(--ease-out-strong);
}

.hero-signature-first .hero h1 span:first-child {
  animation-name: hero-signature-copy;
  animation-duration: var(--dur-signature-copy);
  animation-delay: 200ms;
}

.hero-signature-first .hero h1 span:nth-child(2) {
  animation-name: hero-signature-copy;
  animation-duration: var(--dur-signature-copy);
  animation-delay: 320ms;
}

.hero-signature-first .hero-summary,
.hero-signature-first .hero-actions {
  animation-name: hero-signature-copy;
  animation-duration: var(--dur-signature-copy);
  animation-delay: 440ms;
}

.hero-signature-first .hero .eyebrow {
  animation-name: hero-signature-eyebrow;
  animation-duration: var(--dur-signature-eyebrow);
  animation-delay: 640ms;
}

@keyframes hero-signature-planet {
  from { opacity: .82; transform: translate3d(var(--hero-x), calc(var(--hero-y) + 6%), 0) scale(.985); }
  to { opacity: 1; transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.035); }
}

@keyframes hero-signature-copy {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-signature-eyebrow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@supports (animation-timeline: scroll()) {
  .hero-media {
    animation: hero-wafer-parallax linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 100vh;
  }
}

@keyframes hero-wafer-parallax {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 15vh, 0); }
}

/* Product/news sheen. Product-page hero cards reserve their border for the circuit trace. */
.product-image-media,
.news-feature,
.news-item {
  position: relative;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-image-media::after,
  .news-feature::after,
  .news-item::after {
    position: absolute;
    z-index: 4;
    top: -18%;
    bottom: -18%;
    left: -22%;
    width: 11%;
    pointer-events: none;
    content: "";
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg) translateX(-120%);
  }

  .product-image:hover .product-image-media::after,
  .product-image:focus-within .product-image-media::after,
  .news-feature:hover::after,
  .news-feature:focus-within::after,
  .news-item:hover::after,
  .news-item:focus-within::after {
    animation: phase2-sheen var(--dur-sheen) var(--ease-inout) 1 both;
  }
}

@keyframes phase2-sheen {
  0% { opacity: 0; transform: skewX(-18deg) translateX(-120%); }
  18% { opacity: .68; }
  100% { opacity: 0; transform: skewX(-18deg) translateX(1250%); }
}

/* Product-page model silkscreen */
.product-detail--hydro {
  position: relative;
  isolation: isolate;
}

.product-detail--hydro::before {
  position: absolute;
  z-index: -1;
  top: clamp(320px, 34vw, 510px);
  right: 0;
  pointer-events: none;
  content: var(--product-silkscreen);
  color: #080912;
  font-family: var(--font-mono);
  font-size: clamp(11rem, 18vw, 17.5rem);
  font-weight: 700;
  line-height: .76;
  letter-spacing: -.08em;
  opacity: .05;
  white-space: nowrap;
}

/* Product-turn illusion and a single circuit-trace hover. */
.product-series-scale-item {
  position: relative;
}

.product-series-scale-image > img {
  transition: opacity var(--dur-sheen) var(--ease-inout), transform var(--dur-sheen) var(--ease-inout), filter var(--dur-slow) var(--ease-out-strong);
}

.product-series-scale-image .product-angle-image {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transform: scale(.965) !important;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-series-scale-item:hover .product-series-scale-image > img:first-child,
  .product-series-scale-item:focus-visible .product-series-scale-image > img:first-child {
    opacity: 0;
  }

  .product-series-scale-item:hover .product-angle-image[src],
  .product-series-scale-item:focus-visible .product-angle-image[src] {
    opacity: 1;
    transform: scale(1) !important;
  }
}

@supports (offset-path: inset(1px round 6px)) {
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .product-series-scale-item::after {
      position: absolute;
      z-index: 8;
      top: 0;
      left: 0;
      width: 2px;
      height: 2px;
      pointer-events: none;
      content: "";
      border-radius: 50%;
      opacity: 0;
      background: #7008d8;
      box-shadow: -5px 0 4px rgba(112, 8, 216, .68), -10px 0 7px rgba(112, 8, 216, .38), -16px 0 10px rgba(112, 8, 216, .12);
      offset-path: inset(1px round 6px);
      offset-distance: 0%;
      offset-rotate: auto;
    }

    .product-series-scale-item:hover::after,
    .product-series-scale-item:focus-visible::after {
      animation: product-circuit-trace var(--dur-circuit) var(--ease-inout) 1 both;
    }
  }
}

@keyframes product-circuit-trace {
  0% { opacity: 0; offset-distance: 0%; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; offset-distance: 100%; }
}

/* Engineering plate: open blueprint composition, not a dashboard card. */
.engineering-plate {
  --engineering-line: rgba(7, 19, 31, .26);
  --engineering-guide: rgba(7, 19, 31, .1);
  position: relative;
  z-index: 1;
  margin-top: clamp(74px, 9vw, 128px);
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
  background: linear-gradient(180deg, rgba(244, 245, 248, .9), rgba(244, 245, 248, .96));
}

.engineering-plate-heading {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(320px, 1.28fr);
  gap: 12px clamp(42px, 7vw, 96px);
  align-items: end;
}

.engineering-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mars-purple-deep);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.engineering-plate-heading h3 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.engineering-plate-heading > p:last-child {
  max-width: 58ch;
  margin: 0;
  color: var(--product-copy);
  line-height: 1.65;
}

.engineering-diagrams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(38px, 5vw, 58px);
}

.engineering-diagram {
  min-width: 0;
  margin: 0;
}

.engineering-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--engineering-line);
  overflow: hidden;
}

.engineering-diagram :is(path, rect, circle) {
  vector-effect: non-scaling-stroke;
}

.engineering-diagram :is(.engineering-frame, .engineering-module, .engineering-die-grid, .engineering-flow, .engineering-bus) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.engineering-diagram .engineering-guide {
  fill: none;
  stroke: var(--engineering-guide);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.engineering-diagram .engineering-flow--accent {
  stroke: #6426c7;
  stroke-width: 1.35;
}

.engineering-diagram .engineering-flow--return,
.engineering-diagram .engineering-bus--dashed {
  stroke-dasharray: 6 6;
}

.engineering-diagram .engineering-node {
  fill: #6426c7;
  stroke: #fff;
  stroke-width: 2;
}

.engineering-diagram marker path {
  fill: #6426c7;
  stroke: none;
}

.engineering-diagram pattern rect {
  fill: rgba(7, 19, 31, .025);
  stroke: var(--engineering-line);
  stroke-width: 1;
}

.engineering-diagram text {
  fill: #394653;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
}

.engineering-diagram figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--product-line);
}

.engineering-diagram figcaption span {
  color: var(--mars-purple-deep);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

.engineering-diagram figcaption strong {
  color: var(--product-ink);
  font-size: .88rem;
  font-weight: 650;
}

@media (max-width: 700px) {
  .hero-media {
    inset: -7% 0;
    width: 100%;
    height: 114%;
  }

  .hero .hero-backdrop {
    object-position: 58% bottom;
  }

  .hero-wafer-iridescence {
    opacity: .15;
    -webkit-mask-image: radial-gradient(ellipse 118% 34% at 58% 91%, #000 0 50%, transparent 74%);
    mask-image: radial-gradient(ellipse 118% 34% at 58% 91%, #000 0 50%, transparent 74%);
  }

  .product-detail--hydro::before {
    top: 44%;
    right: 0;
    font-size: clamp(7.5rem, 34vw, 10rem);
    opacity: .04;
  }

  .engineering-plate-heading,
  .engineering-diagrams {
    grid-template-columns: 1fr;
  }

  .engineering-diagrams {
    gap: 42px;
  }

  .engineering-diagram text {
    font-size: 17px;
  }

  .engineering-diagram figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero .hero-backdrop,
  .hero h1 span,
  .hero-summary,
  .hero-actions,
  .hero .eyebrow,
  .product-series-scale-image > img {
    opacity: 1;
    animation: none;
    transform: none;
    transition: none;
  }

  .product-angle-image {
    display: none;
  }
}
