/* Base font size reduced from default 16px to 14px */
html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', sans-serif;
  min-height: max(884px, 100dvh);
}

/* Material Symbols Outlined font settings */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ============================================
   REFLECTIVE MARQUEE — Equipment Showcase
   ============================================ */

/* Marquee viewport — hides overflow, provides edge fade */

/* Edge fade overlays */

/* Scrolling track — infinite loop via duplicated content */

/* Individual equipment item */
.equipment-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(190px, 20vw, 250px);
  padding: 1.25rem 1rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.equipment-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 8, 8, 0.8);
}

/* Machine image container */

/* Reflection — mirrored copy fading out */

/* Glossy surface line */

/* Machine brand label */

/* Responsive adjustments */
@media (max-width: 768px) {
  .equipment-item {
    width: clamp(150px, 42vw, 190px);
    padding: 0.875rem 0.75rem 0.75rem;
  }
}

/* ============================================
   TESTING IMAGE STACK / METROLOGY SHOWCASE
   ============================================ */
.testing-image-stack {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.testing-image-stack__primary-wrap {
  position: relative;
  flex: 1 1 60%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}
.testing-image-stack__primary {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}
.testing-image-stack__secondary-wrap {
  position: relative;
  flex: 0 0 44%;
  max-width: 230px;
  border-radius: 1rem;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
  margin-left: -2.5rem;
  z-index: 2;
  background: #ffffff;
}
.testing-image-stack__secondary {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
  display: block;
}
.testing-image-stack__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 8, 8, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  z-index: 5;
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .testing-image-stack {
    flex-direction: column;
    align-items: flex-start;
  }
  .testing-image-stack__primary-wrap {
    width: 100%;
  }
  .testing-image-stack__primary {
    aspect-ratio: 4 / 3;
  }
  .testing-image-stack__secondary-wrap {
    width: 60%;
    max-width: 200px;
    margin-left: auto;
    margin-top: -3rem;
  }
}

/* Halftone Grid Spotlight Effect */
#spotlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Halftone dot grid pattern */
  --dot-size: 3px;
  --dot-spacing: 8px;
  --dot-color: rgba(0, 0, 0, 0.71);
  background-image: radial-gradient(
    circle at center,
    var(--dot-color) calc(var(--dot-size) / 2),
    transparent calc(var(--dot-size) / 2)
  );
  background-size: var(--dot-spacing) var(--dot-spacing);
  background-position: 0 0;
  /* Radial mask centered on cursor - controlled via CSS custom properties */
  --cursor-x: 50%;
  --cursor-y: 50%;
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--cursor-x) var(--cursor-y),
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.03) 85%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 180px at var(--cursor-x) var(--cursor-y),
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.25) 30%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.03) 85%,
    transparent 100%
  );
  will-change: mask-image, -webkit-mask-image;
}

/* Machine Components Smooth Crossfade Slideshow */

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  /* Hero darkening tint: 0 = no tint, 1 = fully black.
     top = top edge of the image, bottom = bottom edge (behind the headline).
     Previous values: top 0.35, bottom 0.8 */
  --hero-tint-top: 0.1;
  --hero-tint-bottom: 0.6;
}

.hero-tint {
  background: linear-gradient(rgba(0, 0, 0, var(--hero-tint-top)) 0%, rgba(0, 0, 0, var(--hero-tint-bottom)) 100%);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
  position: relative;
}

.slider-dot {
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0;
  background: transparent;
}

.slider-dot.active {
  background-color: rgba(255, 8, 8, 1) !important;
  width: 2.5rem;
}

/* Machine Slider Dots (Machinery preview card) */
.machine-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.machine-slider-dot.active {
  background-color: rgba(255, 8, 8, 1);
  width: 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-indicator-arrow .material-symbols-outlined {
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* ============================================
   METRICS BAR - Fading vertical dividers
   ============================================ */

/* Mobile horizontal dividers between metrics */

/* ============================================
   AEROSPACE COMPONENT MAP
   Dark top with outlined wordmark; the plane overlaps
   into the white band that holds the numbered index
   ============================================ */
.aero-map {
  --aero-overlap: clamp(48px, 15vw, 200px);
  background: #fff;
}

.aero-map__dark {
  position: relative;
  background: #000;
}

.aero-map__word {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  font-size: clamp(80px, 17vw, 260px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

.aero-map__stage {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: clamp(24px, 3vw, 40px) auto calc(-1 * var(--aero-overlap));
}

.aero-map__stage img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.aero-map__hotspot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 1;
}

.aero-map__hotspot.is-active {
  z-index: 3;
}

/* Generous invisible hit area so hovering near a part is enough */
.aero-map__hotspot::before {
  content: '';
  position: absolute;
  left: -36px;
  top: -36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: pointer;
}

.aero-map__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff0808;
  transform: translate(-50%, -50%);
  transition: transform 0.25s, box-shadow 0.25s;
  pointer-events: none;
}

.aero-map__hotspot.is-active .aero-map__dot {
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 0 0 8px rgba(255, 8, 8, 0.25);
}

.aero-map__card {
  position: absolute;
  left: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 8px 16px 8px 8px;
  background: #fff;
  border-top: 2px solid #ff0808;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.aero-map__hotspot--end .aero-map__card {
  transform: translate(calc(-100% + 24px), 8px);
}

.aero-map__hotspot.is-active .aero-map__card {
  opacity: 1;
  transform: translate(-50%, 0);
}

.aero-map__hotspot--end.is-active .aero-map__card {
  transform: translate(calc(-100% + 24px), 0);
}

.aero-map__card img {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: contain;
  border-radius: 6px;
}

.aero-map__card strong {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.aero-map__light {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: calc(var(--aero-overlap) * 0.6) 0 clamp(48px, 6vw, 96px);
}

.aero-map__index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}

.aero-map__item {
  display: block;
  height: 100%;
  padding: 22px 18px 6px 0;
  margin-right: 18px;
  border-top: 1px solid #111;
  border-right: 1px solid #e5e5e5;
  color: #111;
}

.aero-map__index li:last-child .aero-map__item {
  border-right: 0;
  margin-right: 0;
}

.aero-map__num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: #e6e6e6;
  transition: color 0.2s;
}

.aero-map__name {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.aero-map__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.aero-map__item.is-active .aero-map__num {
  color: #ff0808;
}

@media (max-width: 900px) {
  .aero-map__index { grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
  .aero-map__item { margin-right: 0; padding-right: 12px; border-right: 0; }
}

@media (max-width: 560px) {
  .aero-map__dot { width: 11px; height: 11px; border-width: 2.5px; }
  .aero-map__hotspot::before { left: -22px; top: -22px; width: 44px; height: 44px; }
  .aero-map__card { gap: 8px; padding: 6px 10px 6px 6px; }
  .aero-map__card img { width: 72px; height: 54px; }
  .aero-map__card strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .aero-map__dot, .aero-map__num, .aero-map__card { transition: none; }
}

/* ============================================
   BLUEPRINT GRID SYSTEM
   Engineering drawing grid as background texture
   ============================================ */

/* Dark sections - white grid lines */

/* Light sections - blueprint blue grid */

/* Facility mini stats with fading dividers */
.facility-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
}

.facility-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
  min-width: 0;
  padding: 0 0.375rem;
}

.facility-stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 900;
  color: #000;
  white-space: nowrap;
}

.facility-stat__unit {
  line-height: 1;
  margin-left: 0.2em;
  font-size: 0.875rem;
  font-weight: 700;
  color: #404040;
}

.facility-stat__label {
  display: block;
  font-size: 0.625rem;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
}

.facility-stats .facility-stat-divider {
  align-self: center;
}

@media (max-width: 420px) {
  .facility-stat {
    padding: 0 0.25rem;
  }
  .facility-stat__value {
    height: 1.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

.facility-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
}

.facility-stat-divider--dark {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.2) 70%,
    transparent 100%
  );
}

/* Equipment tag pills */
.equip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.equip-tag:hover {
  border-color: rgba(255, 8, 8, 0.5);
  color: #fff;
}

.equip-tag--dark {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.7);
}

/* Navigation controls for component card carousels */
.component-carousel-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.component-carousel-button:hover {
  background: #ff0808;
  border-color: #ff0808;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 8, 8, 0.35);
  transform: translateY(-1px);
}

.component-carousel-button:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .component-carousel-button {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.equip-tag--dark:hover {
  border-color: rgba(255, 8, 8, 0.5);
  color: #000;
}

/* ============================================
   JOURNEY SCROLL-LOCK SECTION (Our Story Page)
   ============================================ */

/* Tall scroll-driven wrapper: its height determines how much natural
   page-scroll it takes to move through all the years. The sticky section
   inside stays pinned to the viewport while the user scrolls through it. */
.journey-scroll-space {
  position: relative;
  width: 100%;
  /* 100vh per year-step gives a natural 1:1 scroll feel */
  height: 1000vh;
}

@media (max-width: 767px) {
  .journey-scroll-space {
    height: 800vh;
  }
}

/* Sticky viewport that stays pinned while the scroll-space is traversed */
.journey-lock {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forefront: Single Year Viewport on the left (only one year visible at a time) */
.journey-year-container {
  position: absolute;
  left: clamp(2rem, 5vw, 6rem);
  top: 50%;
  transform: translateY(-50%);
  height: clamp(9rem, 20vw, 14rem); /* Larger viewport area for year reel */
  overflow: hidden; /* Restricts view to strictly one year */
  z-index: 25;
  pointer-events: none;
}

.journey-year-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* No transition: position must track native scroll 1:1 for a natural feel */
  pointer-events: none;
}

.journey-year-item {
  height: clamp(9rem, 20vw, 14rem);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin: 0;
  opacity: 0.15;
  transform: scale(0.92);
  transform-origin: left center;
  transition: opacity 0.4s ease, transform 0.4s ease, text-shadow 0.4s ease;
  user-select: none;
}

.journey-year-item.active {
  opacity: 1;
  transform: scale(1);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 8, 8, 0.35);
}

/* Back layer: Layout container for map and metrics */
.journey-lock__layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2vh 2rem 4vh;
  z-index: 10;
  pointer-events: none;
}

/* Stage grouping World Map + Metrics, shifted up */
.journey-lock__stage {
  position: relative;
  width: 100%;
  max-width: 1210px; /* Enlarged by 10% (from 1100px) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -3.5vh; /* Moves map and metrics nicely up */
}

/* World Map: elevated, enlarged by 10%, and shifted more towards the right */
.journey-lock__map {
  position: relative;
  width: 115.5%; /* Enlarged by 10% (from 105%) */
  max-width: 1210px; /* Enlarged by 10% (from 1100px) */
  height: auto;
  max-height: 64vh; /* Enlarged by 10% (from 58vh) */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  margin-left: 6%; /* Shifted towards the right (from -5%) */
}

.journey-lock__map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Accurate continent paths with slightly dimmed dots */
.map-continent {
  fill: url(#world-dot-matrix);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 0.75;
  transition: stroke 0.3s ease;
}

#world-dot-matrix circle {
  fill: rgba(255, 255, 255, 0.28);
}

/* SVG: connection lines from Bangalore */
.journey-map__line {
  transition: stroke-dashoffset 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(255, 8, 8, 0.75));
}
.journey-map__line.visible {
  stroke-dashoffset: 0;
}

/* SVG: country destination dot groups (hidden by default) */
.journey-map__country {
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}
.journey-map__country.visible {
  opacity: 1;
}

/* SVG: country text labels */
.journey-map__label {
  font-family: 'Google Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
  fill: #ffffff;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.95));
}

/* SVG: India origin pulsing rings */
.journey-map__origin-pulse {
  fill: rgba(255, 8, 8, 0.3);
  transform-box: fill-box;
  transform-origin: center;
  animation: origin-pulse 2.2s ease-out infinite;
}
@keyframes origin-pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Metrics row: directly BELOW the map in the background (NO BOX) */
.journey-lock__metrics {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0 0 !important;
  margin-top: 0.25rem;
  pointer-events: auto;
  gap: 0;
}

.journey-lock__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 1), 0 4px 40px rgba(0, 0, 0, 0.95);
}

.journey-lock__metric-icon {
  font-size: 1.5rem;
  color: rgba(255, 8, 8, 1);
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 10px rgba(255, 8, 8, 0.7));
}

.journey-lock__metric-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 1);
}

.journey-lock__metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 1);
}

.journey-lock__metric-divider {
  width: 1px;
  height: 2.75rem;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
}

/* Vertical pagination dots — right edge */
.journey-lock__dots {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.journey-lock__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.journey-lock__dot.active {
  width: 11px;
  height: 11px;
  background: rgba(255, 8, 8, 1);
  box-shadow: 0 0 10px rgba(255, 8, 8, 0.75);
}

/* Scroll hint (bottom center, bouncing arrow) */
.journey-lock__hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: opacity 0.5s ease;
  animation: scroll-bounce 2s ease-in-out infinite;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .journey-lock {
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }
  .journey-year-container {
    left: 1rem;
    height: clamp(4.5rem, 16vw, 6rem);
  }
  .journey-year-item {
    height: clamp(4.5rem, 16vw, 6rem);
    font-size: clamp(2.75rem, 10vw, 3.75rem);
  }
  .journey-lock__layout {
    padding: 2vh 1rem 3vh;
  }
  .journey-lock__stage {
    margin-top: -1vh;
  }
  .journey-lock__map {
    width: 100%;
    max-width: 100%;
    max-height: 38vh;
    margin-left: 0;
  }
  .journey-lock__metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.25rem;
    padding: 0 !important;
    margin-top: 0.5rem;
  }
  .journey-lock__metric {
    padding: 0;
  }
  .journey-lock__metric-value {
    font-size: 1.5rem;
  }
  .journey-lock__metric-divider {
    display: none;
  }
  .journey-lock__dots {
    right: 0.75rem;
  }
  .journey-lock__hint {
    bottom: 0.75rem;
  }
}

/* ============================================
   MILESTONE CARDS (Our Story Page)
   ============================================ */
.milestone-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Photo fills card */
.milestone-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.5s ease;
}
.milestone-card.is-active .milestone-card__img {
  transform: scale(1.04);
  filter: brightness(0.75);
}

/* Corner year badge — visible at rest, hides when details show */
.milestone-card__badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  z-index: 2;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.milestone-card.is-active .milestone-card__badge {
  opacity: 0;
}

/* Right-side overlay: slides in when the card is in view */
.milestone-card__overlay {
  position: absolute;
  inset-y: 0;
  right: 0;
  width: 45%;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.92) 55%,
    rgba(0, 0, 0, 0.5) 80%,
    transparent 100%
  );
  padding: 2.5rem 2.5rem 2.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  /* Hidden state */
  opacity: 0;
  transform: translateX(1.5rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.milestone-card.is-active .milestone-card__overlay {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.milestone-card__year-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 8, 8, 1);
}

.milestone-card__title {
  margin-top: 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

.milestone-card__text {
  margin-top: 0.85rem;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

/* Touch / mobile fallback — show overlay permanently at bottom */
@media (hover: none), (max-width: 767px) {
  .milestone-card {
    aspect-ratio: 16 / 9;
  }
  .milestone-card__overlay {
    opacity: 1 !important;
    transform: translateX(0) !important;
    inset: auto 0 0 0;
    width: 100% !important;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.75) 60%,
      transparent 100%
    ) !important;
    padding: 1.5rem !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  .milestone-card__badge {
    display: none;
  }
}

/* Navigation Dropdown */
.nav-dropdown {
  display: none;
}
.group:hover > .nav-dropdown,
.group:focus-within > .nav-dropdown {
  display: block;
}

/* ============================================
   CERTIFICATE WALL — Concept 07 Presentation & Glow
   ============================================ */

.cert {
  position: relative;
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 3 / 4;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 8, 8, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  text-align: left;
}
.cert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.cert:hover img {
  transform: scale(1.02);
}
.cert::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 220, 220, 0.25) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: soft-light;
  transition: background-position 0.9s ease;
  pointer-events: none;
}
.cert:hover::after,
.cert:focus-visible::after {
  background-position: -30% 0;
}
.cert:hover {
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 8, 8, 0.5), 0 0 0 1px rgba(255, 8, 8, 0.6);
  border-color: rgba(255, 8, 8, 0.6);
}
.cert__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
  color: #ffffff;
}

/* Lightbox Modal (Clean, no blur) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox__box {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img-wrap {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 8, 8, 0.35);
  background: #ffffff;
  max-height: 84vh;
}
.lightbox img {
  max-height: 84vh;
  max-width: 92vw;
  border-radius: 0.5rem;
  object-fit: contain;
  display: block;
}
.lightbox__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.lightbox__close:hover {
  background: rgba(255, 8, 8, 0.85);
  border-color: rgba(255, 8, 8, 1);
}
.lightbox__caption {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .cert {
    transform: none !important;
    transition: none !important;
  }
  .cert::after {
    transition: none !important;
  }
}

/* ============================================
   LARGE MONITOR SCALING (1536px+)
   Scale up root font-size so all rem-based values grow.
   Below 1536px everything stays exactly as it was (15px).
   ============================================ */
@media (min-width: 1536px) {
  html {
    font-size: clamp(15px, 0.85vw, 18px);
  }

  .equipment-item {
    width: clamp(230px, 16vw, 300px);
  }

  .journey-lock__stage {
    max-width: 1450px;
  }
  .journey-lock__map {
    max-width: 1450px;
    max-height: 68vh;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: clamp(16px, 0.92vw, 22px);
  }

  .equipment-item {
    width: clamp(260px, 17vw, 340px);
  }

  .journey-lock__stage {
    max-width: 1750px;
  }
  .journey-lock__map {
    max-width: 1750px;
    max-height: 72vh;
  }
}


/* Justified paragraphs inside centred layouts: last line stays centred */
.text-justify-center {
  text-align: justify;
  text-align-last: center;
}

/* Mission & Vision statement reveal (Our Story) */
.statement-text {
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.statement-text .w {
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.35s ease;
}
.statement-text .w.lit {
  color: #fff;
}
.statement-text .w.accent.lit {
  color: rgb(255, 8, 8);
}

/* Justified copy: keep whole words together and avoid one-word last lines */
.text-justify,
.text-justify-center {
  -webkit-hyphens: none;
  hyphens: none;
  text-wrap: pretty;
}


/* Core Values: sticky DIRECT rail beside the statements (overview.html #core-values) */
.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.cv-rail {
  position: sticky;
  top: 112px; /* clears the sticky site header */
  display: flex;
  flex-direction: column;
}
.cv-rail span {
  font-weight: 800;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.88;
  color: #e6e8eb;
  transition: color 0.3s ease;
}
.cv-rail span.is-active {
  color: rgb(255, 8, 8);
}
.cv-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cv-item {
  padding-block: 28px;
  border-top: 1px solid #d8dce0;
  min-width: 0;
}
.cv-item:first-child {
  border-top: 2px solid #000;
}
@media (max-width: 767px) {
  .cv-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cv-rail { position: static; flex-direction: row; justify-content: space-between; }
  .cv-rail span { font-size: 56px; color: rgb(255, 8, 8); }
}
@media (prefers-reduced-motion: reduce) {
  .cv-rail span { transition: none; }
}

/* ============================================
   PRECISION COMPONENTS — text-only spec list
   (#machinery section, left/right of the wireframe)
   ============================================ */
.pa-list { display: flex; flex-direction: column; }
.pa-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e5e5e5; }
.pa-item:first-child { border-top: 1px solid #e5e5e5; }
.pa-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #ff0808; font-weight: 700; letter-spacing: .05em; }
.pa-name { font-size: 17px; font-weight: 700; color: #111; line-height: 1.2; transition: color .2s; }
.pa-lead { display: none; }
.pa-left .pa-num { order: 1; }
.pa-left .pa-name { order: 2; }
@media (min-width: 1024px) {
  .pa-item { border: 0 !important; padding: 14px 0; }
  .pa-lead { display: block; flex: 1; min-width: 30px; height: 1px; background: #d4d4d4; position: relative; }
  .pa-left { justify-content: flex-end; }
  .pa-left .pa-name { order: 1; text-align: right; }
  .pa-left .pa-num { order: 2; }
  .pa-left .pa-lead { order: 3; }
  .pa-left .pa-lead::after,
  .pa-right .pa-lead::before { content: ''; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ff0808; }
  .pa-left .pa-lead::after { right: -3px; }
  .pa-right .pa-lead::before { left: -3px; }
  .pa-item:hover .pa-name { color: #ff0808; }
}

/* Tools & Devices wordmark: black letters with a dark steel outline sitting in
   the dark. The only light is a red one that follows the cursor; the steel
   shows nothing but its red reflection, and the rest of the word stays unlit.
   Every layer paints its outline the same way: a gradient background clipped to
   the text, with a transparent stroke to widen the clip past the glyph edge.
   A plain black copy of the word (.tools-wordmark__cover) sits on top of all of
   them and blacks out the letter bodies, so only the outer contour shows: no
   overlap lines from the variable font, and nothing lit inside the letters.
   (Safari doesn't paint a text's own fill over a background-clip: text
   background, so the cover can't be replaced by the layers' black fill.) */
.tools-wordmark {
  background: #000;
  padding: 4rem 1rem 3rem;
  text-align: center;
  overflow: hidden;
}
/* Between the Mission and Vision statements: full-bleed, no padding of its own,
   so the flex gap above and below is identical */
.tools-wordmark--between {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 0;
}
.tools-wordmark__text {
  --mx: 50%;
  --my: 50%;
  --glow: 0;
  position: relative;
  margin: 0;
  display: inline-block;
  font-size: clamp(2.5rem, 13vw, 15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #000;
  -webkit-text-stroke: 4px transparent;
  paint-order: stroke fill;
  /* Unlit steel: just enough banding to hint at metal in the dark */
  background-image: linear-gradient(
    180deg,
    #141518 0%,
    #24262a 22%,
    #111214 48%,
    #1e2023 74%,
    #0f1012 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  cursor: default;
  user-select: none;
}
/* Two decorative copies of the text, both masked to a spotlight at the cursor.
   Sized in em so the spotlight scales with the wordmark. */
.tools-wordmark__text::before,
.tools-wordmark__text::after {
  content: attr(data-text);
  content: attr(data-text) / ""; /* decorative duplicate: hide from screen readers */
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #000;
  -webkit-text-stroke: 4px transparent;
  paint-order: stroke fill;
  -webkit-background-clip: text;
  background-clip: text;
  /* Screen adds the light on top of the steel; the black fill adds nothing */
  mix-blend-mode: screen;
  opacity: var(--glow);
  transition: opacity 0.35s ease;
}
/* Black letter bodies over every lit layer; the outer half of the stroke
   stays visible around them */
.tools-wordmark__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: #000;
  -webkit-text-fill-color: #000;
  -webkit-text-stroke: 0;
}
/* Steel surface the red light lands on: broad bands from the polish. Used as
   a mask so the metal shapes the reflection's brightness without adding any
   colour of its own. */
.tools-wordmark__text {
  --steel-bands: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, #000 22%, rgba(0, 0, 0, 0.4) 46%, rgba(0, 0, 0, 0.9) 74%, rgba(0, 0, 0, 0.45) 100%);
}
/* Spill: the red light washes faintly over the steel around the hot spot,
   dropping off fast like light on metal rather than a soft glow */
.tools-wordmark__text::before {
  background-image: radial-gradient(circle 2.6em at var(--mx) var(--my), rgba(170, 0, 0, 0.55) 0%, rgba(110, 0, 0, 0.25) 35%, rgba(50, 0, 0, 0.08) 65%, transparent 100%);
  -webkit-mask-image: var(--steel-bands);
  mask-image: var(--steel-bands);
}
/* Reflection: saturated red where the light hits the steel (never white),
   a tight hot core, and a sharp horizontal streak like brushed steel */
.tools-wordmark__text::after {
  background-image:
    radial-gradient(ellipse 1.3em 0.14em at var(--mx) var(--my), #ff2414 0%, rgba(255, 20, 10, 0.55) 40%, transparent 100%),
    radial-gradient(circle 0.5em at var(--mx) var(--my), #ff2a16 0%, rgba(255, 24, 12, 0.6) 55%, transparent 100%),
    radial-gradient(circle 1.6em at var(--mx) var(--my), #ee1408 0%, #b80600 28%, #6e0000 55%, rgba(40, 0, 0, 0.5) 80%, transparent 100%);
  /* Bloom around the reflection; the radial mask (applied after the filter)
     keeps it from haloing the black letters across the whole word */
  filter: drop-shadow(0 0 7px rgba(255, 10, 0, 0.5));
  -webkit-mask-image: radial-gradient(circle 1.8em at var(--mx) var(--my), #000 55%, transparent 100%), var(--steel-bands);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle 1.8em at var(--mx) var(--my), #000 55%, transparent 100%), var(--steel-bands);
  mask-composite: intersect;
}
@media (prefers-reduced-motion: reduce) {
  .tools-wordmark__text::before,
  .tools-wordmark__text::after { transition: none; filter: none; }
}

/* Avoid one-word last lines in all paragraphs */
p {
  text-wrap: pretty;
}

/* Precision Machined Parts: 3 cards on the first row, 2 centred below */
.machined-parts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}
.machined-parts-grid > .subassembly-card {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  max-width: calc((100% - 1.5rem) / 3);
}
@media (min-width: 640px) {
  .machined-parts-grid { gap: 1rem; }
  .machined-parts-grid > .subassembly-card {
    flex-basis: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

/* Keep "Regulator Housing" on one line, "Assembly" on the next */
.subassembly-name--nowrap {
  white-space: nowrap;
}
