/* NEOFORGE · process teaser pages (welding, machining, forming).
   Same tokens and type as index.html. */
:root {
  --ink: #000000;
  --mist: #E2EEEF;
  --muted: rgba(226, 238, 239, .58);
  --dim: rgba(226, 238, 239, .42);
  --faint: rgba(226, 238, 239, .16);
  --green: #00E095;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--mist);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* Hero image: dark, right side, fixed like the landing */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.ambient img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
.ambient picture { display: contents; }
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.86) 45%, rgba(0,0,0,.55) 66%, rgba(0,0,0,.15) 90%, rgba(0,0,0,.05) 100%);
}

.page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 5vw, 72px);
}
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header .home img { height: clamp(18px, 1.6vw, 24px); display: block; }

main { max-width: min(940px, 66vw); text-shadow: 0 1px 12px rgba(0,0,0,.6); padding: clamp(40px, 6vh, 72px) 0 clamp(36px, 5vh, 56px); }

.lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 clamp(18px, 2.4vw, 28px); font-size: 14px; letter-spacing: .04em; }
.lockup b { font-weight: 500; letter-spacing: .02em; }
.lockup .proc { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--green); border-left: 1px solid var(--faint); padding-left: 12px; }
.tag { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--faint); border-radius: 100px; padding: 5px 10px 4px; }

h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 1rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 clamp(36px, 5vw, 60px);
  max-width: 20ch;
}
h1 em { font-style: normal; color: var(--green); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: clamp(28px, 3.6vw, 44px); }
h2 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { font-size: clamp(15px, .9rem + .2vw, 17px); line-height: 1.45; font-weight: 300; padding: 10px 0; border-top: 1px solid var(--faint); }
.lines li:last-child { border-bottom: 1px solid var(--faint); }
.lines li b { font-weight: 500; color: var(--green); }

.carry { margin: 0 0 clamp(40px, 5vw, 60px); font-size: 13px; letter-spacing: .06em; color: var(--muted); line-height: 1.8; }
.carry span { color: var(--mist); white-space: nowrap; }
.carry span + span::before { content: "·"; color: var(--green); margin: 0 10px; }

.market { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin: 0 0 clamp(36px, 5vw, 56px); }
.fig { border-top: 1px solid var(--green); padding-top: 14px; }
.fig strong { display: block; font-weight: 300; font-size: clamp(2rem, 1.2rem + 1.8vw, 3rem); letter-spacing: -.03em; line-height: 1; color: var(--green); margin-bottom: 10px; }
.fig p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; color: var(--mist); font-weight: 300; }
.fig cite { display: block; font-style: normal; font-size: 11px; line-height: 1.45; color: var(--dim); letter-spacing: .02em; }
.fig cite a { text-decoration: none; border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
.fig cite a:hover, .fig cite a:focus-visible { color: var(--mist); border-color: var(--green); outline: none; }

.actions { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.actions a { font-size: 15px; letter-spacing: .04em; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.actions a span { color: var(--green); }
.actions a:hover, .actions a:focus-visible { color: var(--mist); border-color: var(--green); outline: none; }
.actions .proven b { color: var(--mist); font-weight: 500; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--faint); padding-top: 18px;
}
.origin { display: inline-flex; align-items: center; gap: 10px; }
.flag { width: 21px; height: 14px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover, footer a:focus-visible { color: var(--green); outline: none; }

/* Concept caption */
.concept { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* AI layer: animated SVG over the concept image, same frame as the img (cover, right-aligned) */
.ai-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ai-label { font: 500 15px "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: .18em; fill: var(--green); }
.ai-ghost { opacity: .22; }
.ai-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ai-draw 9s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes ai-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 6% { opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.ai-mark { opacity: 0; animation: ai-fade 9s ease-in-out infinite; }
@keyframes ai-fade { 0%, 10% { opacity: 0; } 22%, 85% { opacity: 1; } 100% { opacity: 0; } }
.ai-tag, .ai-gauge, .ai-trace { animation: ai-breathe 6s ease-in-out infinite; }
@keyframes ai-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.ai-vec line { transform-box: fill-box; animation: ai-vec 2.4s ease-in-out infinite; }
.ai-vec .v1 { transform-origin: 0% 50%; }
.ai-vec .v2 { transform-origin: 0% 100%; animation-delay: .4s; }
.ai-vec .v3 { transform-origin: 0% 0%; animation-delay: .8s; }
@keyframes ai-vec { 0%, 100% { transform: scale(.82); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
.ai-pulse { transform-box: fill-box; transform-origin: center; animation: ai-pulse 1.6s ease-in-out infinite; }
@keyframes ai-pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.25); opacity: 1; } }
.ai-scroll { animation: ai-scroll 6s linear infinite; }
@keyframes ai-scroll { from { transform: translateX(0); } to { transform: translateX(-165px); } }
.ai-heat { transform-box: fill-box; transform-origin: 0 50%; animation: ai-heat 5s ease-in-out infinite; }
@keyframes ai-heat { 0% { transform: scaleX(.3); } 35% { transform: scaleX(.78); } 55% { transform: scaleX(.6); } 75% { transform: scaleX(.68); } 100% { transform: scaleX(.3); } }
@media (prefers-reduced-motion: reduce) {
  .ai-layer * { animation: none !important; }
  .ai-draw { stroke-dashoffset: 0; opacity: 1; }
  .ai-mark { opacity: 1; }
  .ai-heat { transform: scaleX(.66); }
}

@media (max-width: 900px) {
  main { max-width: none; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ambient { position: absolute; height: 62svh; bottom: auto; }
  .ambient img, .ai-layer { opacity: .6; }
  .ai-label, .ai-gauge, .ai-trace, .ai-tag { display: none; }
  .ambient::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.7) 55%, #000 100%); }
  main { padding: 36px 0 32px; }
  h1 { font-size: 2.3rem; max-width: none; }
  .market { grid-template-columns: 1fr; gap: 22px; }
  .carry span { white-space: normal; }
  footer { flex-direction: column; align-items: flex-start; }
}
