/* About page: brand story and the direct-injection schematic. */
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; list-style: none; border: 1px solid var(--line); background: var(--line); }
.about-stats li { display: grid; gap: 6px; padding: 18px 20px; background: var(--bg-raise); }
.about-stats strong { font: 600 clamp(24px, 5vw, 34px)/1 var(--font-display); letter-spacing: .04em; }
.about-stats span { color: var(--ink-dim); font-size: 14px; }

.about-points { display: grid; gap: 1px; margin-top: 32px; border: 1px solid var(--line); background: var(--line); }
.about-points article { padding: 24px 20px; background: var(--bg-raise); }
.about-points .mono { margin: 0; color: var(--red-text); font-size: 13px; letter-spacing: .1em; }
.about-points h3 { font: 600 20px/1.4 var(--font-display); letter-spacing: .04em; }
.about-points article p:last-child { margin-top: 10px; }

.about-story-body { max-width: 68ch; }
.about-markets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; }
.about-markets li { padding: 8px 14px; border: 1px solid var(--line); color: var(--ink-dim); font-size: 14px; }

/* ---------- Direct-injection schematic ---------- */
.dip { display: grid; gap: 24px; margin-top: 32px; }
.dip-figure { margin: 0; border: 1px solid var(--line); background: #101113; }
.dip-svg { display: block; width: 100%; height: auto; }
.dip-figure figcaption { padding: 10px 16px; border-top: 1px solid var(--line); color: #dce0e3; font-size: 12px; }
.dip-steps { display: grid; gap: 1px; align-content: start; list-style: none; border: 1px solid var(--line); background: var(--line); }
.dip-step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 18px; background: var(--bg-raise); border-left: 3px solid transparent; }
.dip-step .mono { color: var(--red-text); font-size: 13px; letter-spacing: .1em; }
.dip-step h3 { font: 600 18px/1.4 var(--font-display); letter-spacing: .06em; }
.dip-step p { margin-top: 4px; font-size: 15px; }

.dip-floor { stroke: #747a80; stroke-width: 2; }
.dip-base, .dip-piston { fill: #2b2e33; stroke: #8b9198; stroke-width: 1.5; }
.dip-mold rect { fill: #3a3e44; stroke: #a1a7ad; stroke-width: 1.5; }
.dip-mold-mark { stroke: #747a80; stroke-width: 1.5; fill: none; }
.dip-arm, .dip-arm-head { fill: #2b2e33; stroke: #8b9198; stroke-width: 1.5; }
.dip-shoe { fill: #1b1d20; stroke: #f5f6f7; stroke-width: 2.5; stroke-linejoin: round; }
.dip-shoe-line { fill: none; stroke: #a1a7ad; stroke-width: 2; stroke-linecap: round; }
.dip-outsole { fill: #f5f6f7; }
.dip-midsole { fill: #e8101c; }
.dip-tank { fill: #2b2e33; stroke: #e8101c; stroke-width: 2; }
.dip-pipe { fill: #e8101c; }
.dip-label { fill: #f5f6f7; font: 500 14px "IBM Plex Mono", monospace; letter-spacing: .1em; }

.dip-outsole, .dip-midsole { transform-box: fill-box; transform-origin: left center; }

/* Static end state; also what reduced-motion visitors see. */
.dip-mold-l { transform: translateX(-70px); }
.dip-mold-r { transform: translateX(70px); }
.dip-nozzle { opacity: 0; }
.dip-lift { transform: translateY(-50px); }

@media (prefers-reduced-motion: no-preference) {
  .dip-stage { animation: dip-stage 12s linear infinite; }
  .dip-upper { animation: dip-upper 12s ease-in-out infinite; }
  .dip-mold-l { animation: dip-mold-l 12s ease-in-out infinite; }
  .dip-mold-r { animation: dip-mold-r 12s ease-in-out infinite; }
  .dip-nozzle { animation: dip-nozzle 12s ease-in-out infinite; }
  .dip-outsole { animation: dip-outsole 12s linear infinite; }
  .dip-midsole { animation: dip-midsole 12s linear infinite; }
  .dip-lift { animation: dip-lift 12s ease-in-out infinite; }
  .dip-step-1 { animation: dip-step-1 12s linear infinite; }
  .dip-step-2 { animation: dip-step-2 12s linear infinite; }
  .dip-step-3 { animation: dip-step-3 12s linear infinite; }
  .dip-step-4 { animation: dip-step-4 12s linear infinite; }
}

@keyframes dip-stage { 0% { opacity: 0; } 4%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dip-upper { 0% { transform: translateY(-96px); } 18%, 100% { transform: translateY(0); } }
@keyframes dip-mold-l { 0%, 18% { transform: translateX(-70px); } 32%, 68% { transform: translateX(0); } 78%, 100% { transform: translateX(-70px); } }
@keyframes dip-mold-r { 0%, 18% { transform: translateX(70px); } 32%, 68% { transform: translateX(0); } 78%, 100% { transform: translateX(70px); } }
@keyframes dip-nozzle { 0%, 32% { transform: translateX(-60px); opacity: 0; } 40%, 66% { transform: translateX(0); opacity: 1; } 72%, 100% { transform: translateX(-60px); opacity: 0; } }
@keyframes dip-outsole { 0%, 40% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
@keyframes dip-midsole { 0%, 52% { transform: scaleX(0); } 68%, 100% { transform: scaleX(1); } }
@keyframes dip-lift { 0%, 78% { transform: translateY(0); } 90%, 100% { transform: translateY(-50px); } }
@keyframes dip-step-1 { 0%, 17% { border-left-color: var(--red); } 18%, 100% { border-left-color: transparent; } }
@keyframes dip-step-2 { 0%, 17% { border-left-color: transparent; } 18%, 39% { border-left-color: var(--red); } 40%, 100% { border-left-color: transparent; } }
@keyframes dip-step-3 { 0%, 39% { border-left-color: transparent; } 40%, 67% { border-left-color: var(--red); } 68%, 100% { border-left-color: transparent; } }
@keyframes dip-step-4 { 0%, 67% { border-left-color: transparent; } 68%, 100% { border-left-color: var(--red); } }

@media (min-width: 760px) {
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .about-points { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .dip { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

/* ---------- Homepage DESMA section ---------- */
.desma-home { background: #141517; color: #f5f6f7; border-top: 1px solid #747a80; }
.desma-home .section-desc, .desma-home .dip-step p { color: #e5e7e9; }
.desma-home .dip-step h3 { color: #f5f6f7; }
.desma-home .dip-step { background: #202225; }
.desma-home-more { margin-top: 24px; }
.desma-home .text-link { color: #f2dfe0; }

/* ---------- Machine photo ---------- */
.desma-photo { margin: 32px 0 0; border: 1px solid #747a80; background: #101113; }
.desma-photo img { display: block; width: 100%; height: auto; }
.desma-photo figcaption { padding: 10px 16px; border-top: 1px solid #747a80; color: #dce0e3; font-size: 12px; }
.rot-figure { margin-top: 24px; }
.dip .rot-figure { margin-top: 0; }
.about-subhead { margin-top: 44px; font: 600 22px/1.4 var(--font-display); letter-spacing: .04em; }

/* ---------- Rotary carousel schematic ---------- */
.rot-svg { display: block; width: 100%; height: auto; }
.rot-floor { stroke: #747a80; stroke-width: 2; }
.rot-leg { fill: #1b1d20; stroke: #747a80; stroke-width: 1.5; }
.rot-disc { fill: #202225; stroke: #8b9198; stroke-width: 1.5; }
.rot-disc-top { fill: #33373d; stroke: #a1a7ad; stroke-width: 1.5; }
.rot-well { fill: #17181b; stroke: #747a80; stroke-width: 1.5; }
.rot-tower { fill: #101113; stroke: #8b9198; stroke-width: 1.5; }
.rot-tower-cap { fill: #2b2e33; stroke: #8b9198; stroke-width: 1.5; }
.rot-tower-base { fill: #101113; stroke: #8b9198; stroke-width: 1.5; }
.rot-cable { fill: none; stroke: #57575f; stroke-width: 3; stroke-linecap: round; }
.rot-plate { fill: #c9cdd2; stroke: #f5f6f7; stroke-width: 1; }
.rot-upper { fill: #17181b; stroke: #f5f6f7; stroke-width: 1.8; stroke-linejoin: round; }
.rot-sole { fill: #e8101c; opacity: 0; }
.rot-soled .rot-sole { opacity: 1; }
.rot-empty .rot-shoe { opacity: 0; }
.rot-tank { fill: #2b2e33; stroke: #e8101c; stroke-width: 2; }
.rot-pipe, .rot-flow { fill: #e8101c; }
.rot-label { fill: #f5f6f7; font: 500 14px "IBM Plex Mono", monospace; letter-spacing: .1em; }
.rot-robot-base { fill: #2b2e33; stroke: #8b9198; stroke-width: 1.5; }
.rot-robot-arm { fill: none; stroke: #dce0e3; stroke-width: 9; stroke-linecap: round; }
.rot-robot-grip { fill: none; stroke: #dce0e3; stroke-width: 4; stroke-linecap: round; }
.rot-robot-joint { fill: #e8101c; }
.rot-s0 { --rot-d: 0s; }
.rot-s1 { --rot-d: -2s; }
.rot-s2 { --rot-d: -4s; }
.rot-s3 { --rot-d: -6s; }
.rot-s4 { --rot-d: -8s; }
.rot-s5 { --rot-d: -10s; }
.rot-s6 { --rot-d: -12s; }
.rot-s7 { --rot-d: -14s; }
.rot-s8 { --rot-d: -16s; }
.rot-s9 { --rot-d: -18s; }
.rot-s10 { --rot-d: -20s; }
.rot-s11 { --rot-d: -22s; }

@media (prefers-reduced-motion: no-preference) {
  @supports (offset-path: path("M0 0 L1 1")) {
    .rot-pos { transform: none; }
    .rot-st {
      offset-path: path("M 670 220 A 270 86 0 1 1 130 220 A 270 86 0 1 1 670 220");
      offset-rotate: 0deg;
      animation: rot-orbit 24s linear infinite;
      animation-delay: var(--rot-d);
    }
    .rot-pos .rot-shoe { animation: rot-shoe 24s linear infinite; animation-delay: var(--rot-d); }
    .rot-pos .rot-sole { animation: rot-sole 24s linear infinite; animation-delay: var(--rot-d); }
    .rot-robot-fore { animation: rot-robot 2s ease-in-out infinite; }
    .rot-flow { animation: rot-flow 2s linear infinite; }
  }
}

@keyframes rot-orbit {
  0% { offset-distance: 0%; scale: 1; }
  25% { offset-distance: 25%; scale: 1.14; }
  50% { offset-distance: 50%; scale: 1; }
  75% { offset-distance: 75%; scale: .84; }
  100% { offset-distance: 100%; scale: 1; }
}
@keyframes rot-shoe {
  0%, 3% { opacity: 0; transform: translateY(-26px); }
  8%, 94% { opacity: 1; transform: translateY(0); }
  98%, 100% { opacity: 0; transform: translateY(-26px); }
}
@keyframes rot-sole { 0%, 46% { opacity: 0; } 54%, 100% { opacity: 1; } }
@keyframes rot-robot { 0%, 30% { transform: translateY(0); } 52% { transform: translateY(16px); } 75%, 100% { transform: translateY(0); } }
@keyframes rot-flow { 0% { opacity: 1; } 30%, 80% { opacity: 0; } 100% { opacity: 1; } }
