/* page openings, each one acts out what the page is about. the motion is in heroes.js */

.hx { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden; }
/* dark layer over the city, fades out at the bottom so there's no hard edge */
.hx::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(0,0,0,.5);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.hx .eyebrow { display: flex; margin-bottom: 0; }
.hx [data-in] { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.hx.is-in [data-in] { opacity: 1; transform: none; }

/* --- company --- */
.hx--ride { justify-content: space-between; }
.hx-ride__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.hx-ride__read { display: flex; gap: 28px; margin-top: 22px; }
.hx-ride__read dt { font-size: 9.5px; color: var(--w-48); margin-bottom: 4px; }
.hx-ride__read dd { font-size: 12px; color: var(--white); }
.hx-ride__read b { color: var(--volt); font-weight: 400; font-variant-numeric: tabular-nums; }
.hx-ride__lede { max-width: 440px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--w-72); text-wrap: pretty; }
.hx-ride__lede::first-line { color: var(--white); }
.hx-ride__title { position: relative; z-index: 1; margin-top: auto; padding: 0 var(--gutter); font-size: clamp(60px, 12.5vw, 216px); font-weight: 500; letter-spacing: -.05em; line-height: .9; white-space: nowrap; }
.hx-ride__ch { display: inline-block; white-space: pre; transform: translateY(-120%); opacity: 0; transition: transform .9s var(--ease-out), opacity .5s; transition-delay: calc(var(--i) * 60ms + .2s); }
.hx.is-in .hx-ride__ch { transform: none; opacity: 1; }
.hx-ride__ground { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.hx-ride__line { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.5; }
.hx-ride__fill { fill: rgba(255,255,255,.03); }
.hx-ride__ground .strut { stroke: rgba(255,255,255,.45); stroke-width: 1.2; }
.hx-ride__ground .wheel { fill: #0b0c0d; stroke: var(--white); stroke-width: 1.5; }
.hx-ride__ground .hub { fill: var(--volt); }
.hx-ride__ground .spoke { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.hx-ride__ground .kerb { fill: var(--volt); }
.hx-ride__note { position: absolute; z-index: 1; right: var(--gutter); top: var(--note-y, 60%); display: flex; align-items: center; gap: 10px; color: var(--w-48); font-size: 10px; }
.hx-ride__note i { width: 28px; height: 2px; background: var(--volt); }
.hx-ride__ground .deck { stroke: var(--volt); stroke-width: 2; }

/* --- omegamtl --- */
.hx--stack { justify-content: center; }
.hx-stack__title { position: relative; display: inline-block; margin: 26px 0 34px; font-size: clamp(60px, 12.6vw, 220px); font-weight: 500; letter-spacing: -.05em; line-height: .92; }
.hx-stack__sizer { display: block; visibility: hidden; }
.hx-stack__slice { position: absolute; left: 0; top: 0; white-space: nowrap;
  clip-path: inset(var(--t, calc(var(--k) * 20% - 1px)) -20px var(--b, calc(80% - var(--k) * 20% - 1px)) -20px);
  transform: translate3d(calc(var(--dx, 0px) + var(--px, 0px)), 0, 0); transition: transform 1.3s var(--ease-out), color .6s; }
.hx-stack__slice.is-moving { color: var(--w-48); }
.hx-stack__slice::after { content: ""; position: absolute; left: -20px; right: -20px; top: calc(var(--k) * 20%); height: 1px; background: var(--volt); opacity: 0; transition: opacity .4s; }
.hx-stack__slice.is-moving::after { opacity: .8; }
.hx-stack__title::after { content: ""; position: absolute; left: -2%; right: -2%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--volt), transparent); opacity: 0; }
.hx--stack.is-locked .hx-stack__title::after { animation: scan 2.2s var(--ease-io) 1; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.hx-stack__legend { position: absolute; left: calc(100% + 28px); top: 0; height: 100%; width: 230px; }
.hx-stack__legend li { position: absolute; left: 0; top: calc((var(--k) + .5) * 20%); translate: 0 -50%; display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: var(--w-48); opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .6s var(--ease-out), color .4s; white-space: nowrap; }
.hx-stack__legend li i { width: 26px; height: 1px; background: var(--volt); }
.hx-stack__legend li span { color: var(--volt); }
.hx-stack__legend li.is-on { opacity: 1; transform: none; color: var(--white); }
.hx-stack__lede { max-width: 640px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--w-72); text-wrap: pretty; }

/* --- technology --- */
.hx--sheet { justify-content: center; cursor: crosshair; }
.hx-sheet__grid { position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(rgba(198,253,91,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(198,253,91,.07) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(80% 70% at 50% 50%, #000 40%, transparent 100%); }
.hx-sheet__cross { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.hx--sheet:hover .hx-sheet__cross { opacity: 1; }
.hx-sheet__cross i { position: absolute; background: rgba(198,253,91,.35); }
.hx-sheet__cross i:nth-child(1) { left: 0; right: 0; height: 1px; top: var(--cy, 50%); }
.hx-sheet__cross i:nth-child(2) { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.hx-sheet__cross span { position: absolute; left: calc(var(--cx, 50%) + 10px); top: calc(var(--cy, 50%) + 8px); font-size: 9.5px; color: var(--volt); }
.hx-sheet__inner { position: relative; }
.hx-sheet__drawing { position: relative; margin: 18px 0 10px; }
.hx-sheet__svg { width: 100%; height: auto; display: block; overflow: visible; }
.hx-sheet__svg text[data-sheet-text] { font: 500 200px var(--font-display); letter-spacing: -.05em; fill: rgba(255,255,255,0); stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: fill 1s var(--ease-out); }
.hx--sheet.is-in .hx-sheet__svg text[data-sheet-text] { animation: draw 2.6s var(--ease-io) forwards; }
.hx--sheet.is-drawn .hx-sheet__svg text[data-sheet-text] { fill: var(--white); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hx-sheet__svg .dim { stroke: var(--volt); stroke-width: 1; fill: none; }
.hx-sheet__svg .ext { stroke: rgba(198,253,91,.45); stroke-width: .8; stroke-dasharray: 4 4; }
.hx-sheet__svg .lbl { fill: var(--volt); font: 500 13px var(--font-mono); letter-spacing: .12em; }
.hx-sheet__svg .lead { stroke: rgba(255,255,255,.55); stroke-width: 1; fill: none; }
.hx-sheet__svg .pin { fill: var(--volt); }
.hx-sheet__svg g[data-sheet-dims] > * { opacity: 0; transition: opacity .6s; transition-delay: var(--d, 0s); }
.hx--sheet.is-drawn .hx-sheet__svg g[data-sheet-dims] > * { opacity: 1; }
.hx-sheet__callouts { position: absolute; inset: 0; pointer-events: none; }
.hx-sheet__callouts li { position: absolute; translate: -50% 0; }
.hx-sheet__callouts a { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px; font-size: 10px; color: var(--w-72); background: rgba(0,0,0,.6); border: 1px solid var(--w-24); white-space: nowrap; opacity: 0; transition: opacity .5s, border-color .25s, color .25s; transition-delay: var(--d, 0s); }
.hx-sheet__callouts a span { color: var(--volt); }
.hx-sheet__callouts a:hover { border-color: var(--volt); color: var(--white); }
.hx--sheet.is-drawn .hx-sheet__callouts a { opacity: 1; }
.hx-sheet__block { margin-left: auto; width: min(560px, 100%); border: 1px solid var(--w-24); background: rgba(0,0,0,.55); }
.hx-sheet__cells { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--w-24); }
.hx-sheet__cells span { padding: 8px 10px; font-size: 9px; color: var(--w-48); border-right: 1px solid var(--w-08); }
.hx-sheet__cells span:last-child { border-right: 0; }
.hx-sheet__block p { padding: 16px 18px; font-size: 17px; line-height: 1.55; color: var(--w-72); }

/* --- news --- */
.hx--board { justify-content: center; }
.hx-board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.hx-board__lede { max-width: 420px; color: var(--w-72); font-size: 17px; line-height: 1.5; }
.hx-board { border: 1px solid var(--w-24); background: linear-gradient(180deg, rgba(10,11,12,.92), rgba(4,5,6,.92)); padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.hx-board__title { margin-bottom: 26px; }
.flap-row { display: inline-flex; flex-wrap: nowrap; gap: .08em; font-family: var(--font-mono); font-weight: 500; }
.hx-board__title .flap-row { font-size: clamp(40px, 7.6vw, 128px); }
.flap { position: relative; display: inline-grid; place-items: center; width: .74em; height: 1.08em; line-height: 1; color: #f3f3f1; border-radius: .06em;
  background: linear-gradient(180deg, #1b1e22 0 49.5%, #121417 50.5% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 .04em .08em rgba(0,0,0,.6); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, .02em); background: #000; }
.flap.is-flip { animation: flip .09s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(70deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
.flap.is-space { background: transparent; box-shadow: none; }
.flap.is-space::after { display: none; }
.hx-board__cols { display: grid; grid-template-columns: 7.6em 10.8em 1fr 7em; gap: 18px; padding: 0 0 10px; font-size: 9.5px; color: var(--w-48); border-bottom: 1px solid var(--w-08); }
.hx-board__row { display: grid; grid-template-columns: 7.6em 10.8em 1fr 7em; gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--w-08); transition: background .25s; }
.hx-board__row .flap-row--sm { font-size: 13px; }
.hx-board__row:hover { background: rgba(198,253,91,.04); }
.hx-board__row .flap-row--title { overflow: hidden; }
.hx-board__status { font-size: 10px; color: var(--w-48); text-align: right; transition: color .25s; }
.hx-board__status b { font-weight: 400; display: inline-block; transition: transform .35s var(--ease-out); }
.hx-board__row:hover .hx-board__status { color: var(--volt); }
.hx-board__row:hover .hx-board__status b { transform: translateX(4px); }
.hx-board__rows li:first-child .hx-board__status { color: var(--volt); }

/* --- careers --- */
.hx--mill { justify-content: center; }
.hx-mill__plate { position: relative; margin: 26px 0 30px; padding: clamp(46px, 6vw, 96px) clamp(28px, 4vw, 70px); border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), linear-gradient(180deg, #25282c, #141619);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.7), 0 40px 90px rgba(0,0,0,.55); }
.hx-mill__bolt { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a4f55, #15171a 70%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.06); }
.hx-mill__bolt:nth-child(1) { left: 16px; top: 16px; } .hx-mill__bolt:nth-child(2) { right: 16px; top: 16px; }
.hx-mill__bolt:nth-child(3) { left: 16px; bottom: 16px; } .hx-mill__bolt:nth-child(4) { right: 16px; bottom: 16px; }
.hx-mill__serial { position: absolute; left: 44px; top: 18px; font-size: 9.5px; color: var(--w-48); }
.hx-mill__pct { position: absolute; right: 44px; top: 18px; font-size: 9.5px; color: var(--w-48); }
.hx-mill__pct b { color: var(--volt); font-weight: 400; font-variant-numeric: tabular-nums; }
.hx-mill__title { position: relative; font-size: clamp(52px, 9.4vw, 164px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
/* tool path preview, then the cut behind the tool */
.hx-mill__title::before { content: attr(data-text); position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); }
.hx-mill__cut { display: block; color: transparent; background: linear-gradient(180deg, #ffffff 0%, #d7dadd 55%, #aeb3b8 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.9)) drop-shadow(0 1px 0 rgba(255,255,255,.08)); clip-path: inset(-10% calc(100% - var(--p, 0) * 100%) -10% 0); }
.hx-mill__tool { position: absolute; top: 14%; bottom: 14%; left: 0; width: 2px; background: var(--volt); box-shadow: 0 0 10px rgba(198,253,91,.8); opacity: 0; transition: opacity .4s; }
.hx-mill__plate.is-cutting .hx-mill__tool { opacity: 1; }
.hx-mill__tool em { position: absolute; left: 0; bottom: 30%; width: 3px; height: 3px; border-radius: 50%; background: #fff6c8; animation: spark .5s linear infinite; }
.hx-mill__tool em:nth-child(2) { animation-delay: .1s; bottom: 50%; } .hx-mill__tool em:nth-child(3) { animation-delay: .2s; bottom: 64%; }
.hx-mill__tool em:nth-child(4) { animation-delay: .3s; bottom: 40%; } .hx-mill__tool em:nth-child(5) { animation-delay: .4s; bottom: 22%; }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-40px, 26px); opacity: 0; } }
.hx-mill__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.hx-mill__lede { max-width: 560px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--w-72); }
.hx-mill__foot .cta-row { margin: 0; }

/* smaller plate for /careers/apply */
.hx--compact { min-height: auto; padding-bottom: 30px; }
.hx-mill__plate--compact { padding-top: clamp(40px, 4vw, 60px); padding-bottom: clamp(30px, 3vw, 46px); }
.hx--compact .hx-mill__title { font-size: clamp(52px, 7vw, 112px); }

/* --- news article --- */
.article__meta .flap-row { font-size: 12px; }
.article__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.article__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + .15s); }
body.is-ready .article__title .w > span { transform: none; }

/* --- contact --- */
.hx--signal { min-height: auto; padding-bottom: 40px; }
.hx-signal__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.hx-signal__title { margin: 22px 0 18px; font-size: clamp(48px, 7.6vw, 128px); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.hx-signal__title .g { color: var(--volt); opacity: .75; }
.hx-signal__lede { max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--w-72); }
.hx-signal__scope { border: 1px solid var(--w-24); background: rgba(0,0,0,.6); }
.hx-signal__bar { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--w-08); font-size: 10px; color: var(--w-48); }
.hx-signal__bar b { font-weight: 400; color: #ffc977; transition: color .3s; }
.hx-signal__bar b.is-locked { color: var(--volt); }
.hx-signal__svg { display: block; width: 100%; height: 150px; }
.hx-signal__svg path { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: stroke .4s; }
.hx-signal__svg path.is-locked { stroke: var(--volt); }
.hx-signal__svg line { stroke: var(--w-08); vector-effect: non-scaling-stroke; }
.hx-signal__read { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--w-08); font-size: 10px; color: var(--w-48); }
.hx-signal__read b { color: var(--white); font-weight: 400; }

/* --- legal --- */
.hx--doc { min-height: auto; padding-bottom: 30px; }
.hx-doc__sheet { position: relative; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--w-24); }
.hx-doc__meta { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--w-48); }
.hx-doc__title { margin: 30px 0 18px; min-height: 1em; font-size: clamp(44px, 6.4vw, 104px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hx-doc__title .caret { display: inline-block; width: .06em; height: .8em; margin-left: .04em; vertical-align: -.04em; background: var(--volt); animation: blinkc .9s steps(2) infinite; }
@keyframes blinkc { 50% { opacity: 0; } }
.hx-doc__lede { max-width: 620px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--w-72); }
.hx-doc__seal { position: absolute; right: 2%; top: 40px; width: clamp(120px, 14vw, 190px); opacity: 0; transform: scale(1.9) rotate(-4deg); }
.hx-doc__seal.is-stamped { animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-4deg); } 60% { opacity: .95; transform: scale(.94) rotate(-13deg); } 100% { opacity: .85; transform: scale(1) rotate(-12deg); } }
.hx-doc__seal circle { fill: none; stroke: rgba(198,253,91,.7); stroke-width: 1.5; }
.hx-doc__seal circle + circle { stroke-dasharray: 3 3; }
.hx-doc__seal text { fill: rgba(198,253,91,.85); font: 500 10.5px var(--font-mono); letter-spacing: .14em; }
.hx-doc__seal .hx-doc__seal-big { font-size: 15px; letter-spacing: .18em; }

/* --- small screens --- */
@media (max-width: 900px) {
  .hx-stack__legend { display: none; }
  .hx-signal__inner { grid-template-columns: 1fr; }
  .hx-board__cols, .hx-board__row { grid-template-columns: 7.6em 1fr 4em; }
  .hx-board__cols span:nth-child(2), .hx-board__row .flap-row:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  .hx { min-height: 88svh; padding-bottom: 48px; }
  .hx-ride__top { flex-direction: column; gap: 18px; }
  .hx-ride__read { gap: 16px; }
  .hx-ride__title { font-size: 15vw; }
  .hx-ride__note { display: none; }
  .hx-sheet__block { width: 100%; }
  .hx-sheet__cells { grid-template-columns: 1fr 1fr; }
  .hx-sheet__callouts { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .hx-sheet__callouts li { position: static; translate: none; }
  .hx-sheet__callouts a { flex-direction: row; gap: 6px; font-size: 9px; padding: 5px 8px; }
  .hx-sheet__drawing { margin-bottom: 22px; }
  .hx-board__head { flex-direction: column; align-items: flex-start; }
  .hx-board__cols { display: none; }
  .hx-board__row { grid-template-columns: 1fr auto; }
  .hx-board__row .flap-row:first-child { display: none; }
  .hx-board__row .flap-row--title { font-size: 10px; }
  .hx-doc__seal { top: -10px; width: 96px; }
  .hx-mill__serial, .hx-mill__pct { top: 12px; }
  .hx-mill__serial { left: 38px; } .hx-mill__pct { right: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-ride__ch { transform: none; opacity: 1; }
  .hx-sheet__svg text[data-sheet-text] { stroke-dashoffset: 0; fill: var(--white); }
}
