:root {
  --alloy: #E4E7EA;      /* machined aluminium */
  --alloy-2: #D5DADF;    /* deeper panel */
  --ink: #15212B;        /* deep slate */
  --steel: #5F6B76;      /* secondary text */
  --line: #BCC3CA;
  --ti-blue: #2D5BBE;    /* titanium heat-tint blue, actions */
  --ti-blue-ink: #1F468F;
  --straw: #C9A227; --bronze: #A8642C; --violet: #6A3E9E;
  --heat: linear-gradient(90deg, var(--straw), var(--bronze) 35%, var(--violet) 68%, var(--ti-blue));
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --la: "Archivo", "Noto Sans TC", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--alloy); color: var(--ink);
  font: 400 17px/1.75 var(--zh); letter-spacing: .01em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ti-blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--alloy) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 60px; height: auto; }
.brand-word { font: 400 1.05rem/1 var(--la); font-stretch: 112%; letter-spacing: .02em; }
.brand-word b { font-weight: 800; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--steel); }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ti-blue); font-weight: 700; }
@media (max-width: 860px) {
  .top nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 3px;
  background: var(--ti-blue); color: #fff; font: 700 1rem/1 var(--zh); letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--ti-blue-ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-text { font-weight: 500; color: var(--ink); text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 70px);
  padding: clamp(28px, 5vw, 64px) var(--gutter);
}
.hero h1 {
  font: 900 clamp(2.2rem, 4.5vw, 4.4rem)/1.14 var(--zh);
  letter-spacing: .01em;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero-sub { margin-top: 28px; max-width: 30em; color: var(--steel); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.heat-rule { height: 4px; width: min(320px, 70%); margin-top: 56px; background: var(--heat); border-radius: 2px; }

.hero-stage { position: relative; margin: 0; width: 100%; }
#stage { width: 100%; aspect-ratio: 1 / 0.8; height: auto; display: block; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
#stage.ready { opacity: 1; }
.readout {
  margin-top: 12px; width: max-content; max-width: 100%;
  display: grid; grid-template-columns: repeat(3, auto); gap: 4px 22px;
  font: 500 .92rem/1.4 var(--la); font-variant-numeric: tabular-nums; font-stretch: 100%;
  color: var(--ink);
  padding: 12px 16px; background: color-mix(in srgb, var(--alloy) 80%, transparent);
  border-left: 3px solid var(--ti-blue);
}
.readout div { display: flex; gap: 10px; justify-content: space-between; min-width: 7.6em; }
.readout span { font-weight: 800; color: var(--steel); }
.readout .rot output { color: var(--ti-blue); font-weight: 700; }
.stage-note { margin-top: 10px; font-size: .82rem; color: var(--steel); max-width: 34em; }

/* page-load sequence: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
  .hero h1 .line:nth-child(2) { animation-delay: .12s; }
  .hero h1 .line:nth-child(3) { animation-delay: .24s; }
  .hero-sub, .hero-actions { animation: rise .9s .42s cubic-bezier(.2,.7,.1,1) both; }
  .heat-rule { transform-origin: left; animation: draw 1.6s .6s cubic-bezier(.6,0,.2,1) both; }
  .readout { animation: fade .8s 1.4s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero-stage { order: -1; }
  #stage { aspect-ratio: 1 / 0.85; }
  .readout { gap: 2px 14px; font-size: .8rem; padding: 8px 12px; }
  .readout div { min-width: 6.4em; }
  .heat-rule { margin-top: 40px; }
}

/* ---------- section shell ---------- */
.industries, .why, .machine, .process, .contact {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter);
}
section h2 { font: 900 clamp(1.9rem, 3.6vw, 3rem)/1.2 var(--zh); }

/* industries: three columns under one rule */
.ind-lead { margin-top: 20px; max-width: 34em; color: var(--steel); font-size: 1.08rem; }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.ind { padding: 36px 32px 8px; border-left: 1px solid var(--line); }
.ind:first-child { padding-left: 0; border-left: 0; }
.ind:last-child { padding-right: 0; }
.ind h3 { font: 900 1.6rem/1.2 var(--zh); display: flex; flex-direction: column; gap: 6px; }
.ind h3 .en { font: 300 clamp(1.9rem, 2.6vw, 2.5rem)/1 var(--la); font-stretch: 118%; color: var(--steel); letter-spacing: -.01em; }
.ind p { margin-top: 20px; }
.ind ul { margin: 24px 0 0; padding: 0; list-style: none; }
.ind li { padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
@media (max-width: 960px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind, .ind:first-child, .ind:last-child { padding: 32px 0 8px; border-left: 0; }
  .ind + .ind { border-top: 1px solid var(--line); margin-top: 32px; }
  .ind h3 .en { font-size: 2rem; }
}

/* application gallery */
.apps { margin-top: 88px; }
.apps h3 { font: 700 1.35rem/1.4 var(--zh); }
.apps-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.apps-grid figure { margin: 0; }
.apps-grid img { width: 100%; height: auto; aspect-ratio: 1200 / 896; object-fit: cover; background: var(--alloy-2); border-radius: 2px; }
.apps-grid figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 14px; border-top: 2px solid var(--ink); margin-top: 14px; }
.apps-grid figcaption b { font-weight: 700; font-size: 1.08rem; }
.apps-grid figcaption span { color: var(--steel); font-size: .95rem; }
.apps-note { margin-top: 20px; font-size: .82rem; color: var(--steel); }
@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .apps { margin-top: 64px; }
  .apps-grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .apps-grid::-webkit-scrollbar { display: none; }
  .apps-grid li { flex: 0 0 82%; scroll-snap-align: start; }
}

/* why five-axis: statements left, explanations right */
.why { border-top: 1px solid var(--line); }
.why-list { margin: 48px 0 0; }
.why-list > div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.why-list dt { font: 700 1.35rem/1.4 var(--zh); }
.why-list dd { margin: 0; color: var(--steel); max-width: 36em; }
@media (max-width: 760px) { .why-list > div { grid-template-columns: 1fr; gap: 8px; } }

/* machine: the one dark band */
.machine {
  max-width: none; background: var(--ink); color: var(--alloy);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.machine-head p { margin-top: 16px; max-width: 34em; color: #9AA6B1; font-size: 1.08rem; }
.fleet { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid #33424F; }
.unit { padding: 32px 32px 8px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.unit + .unit { padding-left: 32px; border-left: 1px solid #33424F; }
.unit h3 { display: flex; flex-direction: column; font-family: var(--la); line-height: 1; gap: 6px; }
.unit .maker { font: 400 .95rem/1 var(--la); font-stretch: 125%; letter-spacing: .12em; color: #7E8B97; }
.unit .series { font-weight: 300; font-stretch: 125%; font-size: 1.5rem; color: #C3CBD2; }
.unit .model { font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.unit-lead .model { font-weight: 900; font-stretch: 125%; font-size: clamp(3rem, 6vw, 5.4rem);
  background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent; }
.unit .kind { font-weight: 700; font-size: 1.05rem; }
.unit > p:not(.kind) { color: #9AA6B1; font-size: .95rem; }
.unit dl { margin: auto 0 0; padding-top: 8px; }
.unit dl div { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #33424F; }
.unit dt { color: #7E8B97; width: 5.5em; flex: none; }
.unit dd { margin: 0; font-family: var(--la); font-variant-numeric: tabular-nums; }
.machine-foot { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.machine-foot .cam { color: #C3CBD2; max-width: 26em; font-size: 1.05rem; }
.machine h3.mat-h, .mat h3 { font: 700 1.2rem/1.4 var(--zh); }
.materials { list-style: none; margin: 12px 0 0; padding: 0; }
.materials li { padding: 10px 0; border-top: 1px solid #33424F; display: flex; gap: 16px; font-family: var(--la); }
.materials b { font-family: var(--zh); font-weight: 500; color: #9AA6B1; width: 7em; flex: none; }
@media (max-width: 1000px) {
  .fleet { grid-template-columns: 1fr; }
  .unit, .unit + .unit { padding: 32px 0 8px; border-left: 0; }
  .unit + .unit { border-top: 1px solid #33424F; }
}
@media (max-width: 760px) { .machine-foot { grid-template-columns: 1fr; gap: 32px; } }

/* equipment images */
.unit-img { margin: 0 0 8px; height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.unit-img img { max-height: 190px; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }
.unit-img figcaption { margin-top: 10px; font-size: .78rem; color: #7E8B97; }
@media (max-width: 1000px) { .unit-img { height: auto; } .unit-img img { max-height: 220px; } }

/* partners */
.partners { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 128px) var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.partner-list { list-style: none; margin: 0; padding: 0; }
.partner-list li { display: flex; align-items: center; gap: 40px; padding: 32px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.partner-list img { width: clamp(180px, 22vw, 296px); height: auto; flex: none; }
.partner-list p { color: var(--steel); max-width: 22em; }
@media (max-width: 760px) {
  .partners { grid-template-columns: 1fr; }
  .partner-list li { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* process: a real sequence, numbered by the list */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; padding: 0 20px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: block; font: 300 3.4rem/1 var(--la); font-stretch: 125%; color: var(--steel);
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.steps h3 { font: 700 1.15rem/1.4 var(--zh); }
.steps p { margin-top: 8px; color: var(--steel); font-size: .95rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 4.2rem 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
  .steps li::before { grid-row: span 2; font-size: 2.4rem; border: 0; padding: 0; margin: 0; }
}

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact p { margin-top: 20px; max-width: 32em; color: var(--steel); font-size: 1.08rem; }
.contact-mail {
  display: inline-block; margin-top: 40px; padding-bottom: 10px;
  font: 700 clamp(2.2rem, 7vw, 6rem)/1 var(--la); font-stretch: 118%; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
  background: var(--heat) left bottom / 100% 4px no-repeat;
  transition: color .2s;
}
.contact-mail:hover { color: var(--ti-blue); }

/* footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: start;
  border-top: 2px solid var(--ink);
}
.foot-name { margin-top: 14px; font-weight: 700; }
.foot-info { margin: 0; display: grid; gap: 6px; }
.foot-info div { display: flex; gap: 20px; }
.foot-info dt { color: var(--steel); width: 5em; flex: none; }
.foot-info dd { margin: 0; }
.foot-info a { color: var(--ti-blue); }
.copy { grid-column: 1 / -1; color: var(--steel); font-size: .85rem; font-family: var(--la); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }
.nw { white-space: nowrap; display: inline-block; }
