/* Foundry Industry Model page components, layered on top of the shared
 * .samx system (accelerator-model.scss loads first). Page-only pieces:
 * hero adjustments for the portrait art, and the lithography step scene
 * that gives the page its signature section.
 */
/* The foundry art is portrait; keep the cleanroom figure centered high. */
.samx-foundry .samx-hero__frame img {
  object-position: center 38%;
}

/* "Through 2030" needs a wider column than the equal split gives it.
 * Scoped above the shared 720px breakpoint so the house two-column fold
 * still applies on small screens. */
.samx-foundry .samx-strip {
  max-width: 740px;
}

@media (min-width: 721px) {
  .samx-foundry .samx-strip {
    grid-template-columns: 0.97fr 0.92fr 1.12fr 0.99fr;
  }
}
/* ==========================================================================
   The lithography step scene
   ========================================================================== */
.samx-litho {
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  background: var(--samx-grad-card);
  border: 1px solid var(--samx-border);
  border-radius: 16px;
}

.samx-litho__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.6rem, 3.2vw, 3rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   The scene
   -------------------------------------------------------------------------- */
.samx-litho__scene {
  --samx-litho-exp-x: 50%;
  --samx-litho-exp-y: 62%;
  position: relative;
  aspect-ratio: 40/27;
  border-radius: 12px;
  background: radial-gradient(120% 130% at 50% 16%, #0d0d14 0%, #07070c 78%);
  border: 1px solid var(--samx-border);
  overflow: hidden;
  clip-path: inset(0 round 12px);
  perspective: 1200px;
  perspective-origin: 50% 28%;
}

/* The stage floor is a tilted plane whose center is the exposure point.
 * rotateX pivots about that center, and points at the pivot stay fixed
 * under perspective, so the beam tip lands there exactly at any size. */
.samx-litho__floor {
  position: absolute;
  left: var(--samx-litho-exp-x);
  top: var(--samx-litho-exp-y);
  width: 134%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(58deg);
}

.samx-litho__stagesvg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The optics column stands upright, its beam tip on the exposure point. */
.samx-litho__column {
  position: absolute;
  left: var(--samx-litho-exp-x);
  bottom: calc(100% - var(--samx-litho-exp-y));
  width: clamp(150px, 36%, 255px);
  transform: translateX(-50%);
  pointer-events: none;
}

.samx-litho__colsvg {
  display: block;
  width: 100%;
  height: auto;
}

.samx-litho__colbody {
  fill: var(--samx-surface);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.samx-litho__coledge {
  fill: rgba(255, 255, 255, 0.09);
}

.samx-litho__colnose {
  fill: #10111a;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

/* A brighter core inside the beam cone. */
.samx-litho__beamcore {
  fill: rgba(247, 176, 65, 0.26);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.samx-litho.is-scanning .samx-litho__beamcore {
  opacity: 1;
}

/* The wafer stage: the group slides so the target die sits under the
 * optics; the script sets the transform. */
.samx-litho__waferwrap {
  transition: transform 0.3s var(--samx-ease);
  will-change: transform;
}

.samx-litho__waferrim {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
}

.samx-litho__diebase {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.6;
  transition: fill 0.3s ease;
}

.samx-litho__die {
  cursor: pointer;
}

.samx-litho__die:hover .samx-litho__diebase {
  fill: rgba(255, 255, 255, 0.07);
}

/* The printed pattern reveals during the scan and stays. */
.samx-litho__diepattern {
  fill: rgba(247, 176, 65, 0.75);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.samx-litho__die.is-exposing .samx-litho__diepattern {
  opacity: 0.9;
  transition: opacity 0.55s linear;
}

.samx-litho__die.is-exposed .samx-litho__diepattern {
  opacity: 0.9;
}

/* Earlier layers stay printed, dimmer, under the new exposures. */
.samx-litho__die.is-printed .samx-litho__diepattern {
  opacity: 0.28;
}

.samx-litho__die.is-printed.is-exposed .samx-litho__diepattern {
  opacity: 0.9;
}

.samx-litho__diereveal {
  fill: rgba(247, 176, 65, 0.22);
  opacity: 0;
}

.samx-litho__die.is-exposing .samx-litho__diereveal {
  opacity: 1;
  animation: samx-litho-reveal 0.62s linear;
}

@keyframes samx-litho-reveal {
  0% {
    transform: translateX(-42px);
  }
  100% {
    transform: translateX(42px);
  }
}
/* --------------------------------------------------------------------------
   The optics column
   -------------------------------------------------------------------------- */
.samx-litho__source {
  fill: var(--samx-surface);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.samx-litho__upperbeam {
  fill: rgba(247, 176, 65, 0.12);
}

.samx-litho__reticleframe {
  fill: var(--samx-surface);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.samx-litho__retpat {
  fill: rgba(247, 176, 65, 0.55);
}

/* The reticle glides against the scan direction while exposing; the
 * script sets the transition duration to match the scan. */
.samx-litho__reticle {
  transform: translateX(22px);
  transition: transform 0ms linear;
}

.samx-litho.is-sweep .samx-litho__reticle {
  transform: translateX(-22px);
}

.samx-litho__lens {
  fill: rgba(38, 201, 216, 0.08);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.samx-litho__lens--b {
  fill: rgba(38, 201, 216, 0.05);
}

.samx-litho__beam {
  fill: rgba(247, 176, 65, 0.1);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.samx-litho.is-scanning .samx-litho__beam {
  opacity: 1;
}

/* The beam pool glows on the wafer surface while an exposure runs. */
.samx-litho__hit {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.samx-litho.is-scanning .samx-litho__hit {
  opacity: 1;
}

/* The slit sweeps across the die under exposure; duration set by script. */
.samx-litho__slit {
  fill: rgba(247, 176, 65, 0.95);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-21px);
  transition: transform 0ms linear;
}

.samx-litho.is-scanning .samx-litho__slit {
  opacity: 1;
}

.samx-litho.is-sweep .samx-litho__slit {
  transform: translateX(21px);
}

/* --------------------------------------------------------------------------
   HUD, controls, hint
   -------------------------------------------------------------------------- */
.samx-litho__hud {
  position: absolute;
  top: 12px;
  left: 14px;
}

.samx-litho__hudrow {
  margin: 0 0 3px;
  font-family: var(--samx-ft-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--samx-tx-dim);
  font-variant-numeric: tabular-nums;
}

.samx-litho__hudrow span {
  color: var(--samx-tx-muted);
}

.samx-litho__controls {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.samx-litho__play {
  appearance: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--samx-amber);
  background: var(--samx-surface);
  border: 1px solid rgba(247, 176, 65, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.samx-litho__play:hover {
  border-color: var(--samx-amber);
  box-shadow: 0 0 12px rgba(247, 176, 65, 0.25);
}

.samx-litho__pauseicon {
  display: none;
}

.samx-litho__play.is-playing .samx-litho__playicon {
  display: none;
}

.samx-litho__play.is-playing .samx-litho__pauseicon {
  display: block;
}

.samx-litho__speed {
  appearance: none;
  padding: 5px 10px;
  font-family: var(--samx-ft-mono);
  font-size: 11px;
  color: var(--samx-tx-muted);
  background: var(--samx-surface);
  border: 1px solid var(--samx-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.samx-litho__speed:hover {
  border-color: var(--samx-border-hover);
  color: var(--samx-tx);
}

.samx-litho__hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  margin: 0;
  font-family: var(--samx-ft-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--samx-tx-dim);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   The side panel
   -------------------------------------------------------------------------- */
.samx-litho__side {
  min-width: 0;
}

.samx-litho__title {
  margin: 0 0 12px;
  font-family: var(--samx-ft-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  color: var(--samx-tx);
}

.samx-litho__lead {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--samx-tx-muted);
}

.samx-litho__leadnote {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--samx-tx-muted);
}

.samx-litho__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.samx-litho__chips li {
  padding: 5px 11px;
  font-family: var(--samx-ft-mono);
  font-size: 10.5px;
  color: var(--samx-tx-muted);
  background: var(--samx-surface);
  border: 1px solid var(--samx-border);
  border-radius: 999px;
}

.samx-litho__note {
  max-width: 74ch;
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--samx-tx-dim);
}

/* --------------------------------------------------------------------------
   Static, responsive, reduced motion
   -------------------------------------------------------------------------- */
.samx-litho.is-static .samx-litho__controls,
.samx-litho.is-static .samx-litho__hint,
.samx-litho.is-static .samx-litho__slit,
.samx-litho.is-static .samx-litho__hit,
.samx-litho.is-static .samx-litho__beam,
.samx-litho.is-static .samx-litho__beamcore {
  display: none;
}

/* The bundle: five tiles read as a 3 + 2 grid instead of a five-across
 * squeeze (the shared auto-fit tile grid packs as many 210px columns as
 * the row allows). Falls to two columns, then one. */
.samx-foundry .samx-tiles--bundle {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1060px) {
  .samx-foundry .samx-tiles--bundle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .samx-foundry .samx-tiles--bundle {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1060px) {
  .samx-litho__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .samx-litho__scene {
    aspect-ratio: 10/9;
  }
  .samx-litho__floor {
    width: 175%;
  }
}
@media (max-width: 480px) {
  .samx-litho__hint {
    font-size: 9.5px;
    right: 10px;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .samx-litho__waferwrap {
    transition: none;
  }
  .samx-litho__die.is-exposing .samx-litho__diereveal {
    animation: none;
  }
}
/*# sourceMappingURL=foundry-industry-model.css.map */