/* ============================================================
   B2B manufacturer demo — light industrial / technical drawing
   Deliberately the opposite of the SaaS landing demo: cool, sharp,
   engineered. Single steel-blue accent, blueprint motifs.
   ============================================================ */

:root {
  --paper:  #ffffff;
  --bg:     #f3f6f8;
  --bg-2:   #e9eef2;
  --ink:    #0d1318;
  --ink-2:  #2b3945;
  --steel:  #5c6b78;
  --muted:  #8494a1;
  --line:   #dae1e8;
  --line-2: #bfcbd6;
  --blue:   #0b5fd0;
  --blue-dk:#084aa3;
  --blue-lt:#e9f1fe;

  --f-head: "Archivo", "Noto Sans TC", system-ui, sans-serif;
  --f-body: "Noto Sans TC", "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(1.15rem, 4vw, 2.75rem);
  --ease: cubic-bezier(.2,.6,.35,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }

.eyebrow {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.h-sm { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 1rem;
        padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 500; font-size: .93rem;
  padding: .8em 1.5em; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 1em 2em; font-size: 1rem; }
.full { width: 100%; }

/* ---------- demo bar ---------- */
.demobar {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem var(--pad);
  background: var(--ink); color: #b9c6d2;
  font-size: .76rem; line-height: 1.45;
}
.demobar-tag {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: .25em .6em; border-radius: 2px; white-space: nowrap;
}
.demobar-by { margin-left: auto; font-family: var(--f-mono); font-size: .68rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 860px) { .demobar-by { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { color: var(--blue); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--f-head); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text small { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em;
                    text-transform: uppercase; color: var(--muted); }

.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav-menu > a { font-size: .92rem; color: var(--ink-2); position: relative; }
.nav-menu > a:not(.btn):not(.nav-lang)::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0;
  background: var(--blue); transition: width .25s var(--ease);
}
.nav-menu > a:not(.btn):hover { color: var(--blue); }
.nav-menu > a:not(.btn):not(.nav-lang):hover::after { width: 100%; }
.nav-lang {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em;
  border: 1px solid var(--line-2); padding: .3em .65em; border-radius: 2px;
}
.nav-lang:hover { border-color: var(--blue); }
.nav-cta { padding: .55em 1.1em; font-size: .88rem; }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 34px;
  background: none; border: 1px solid var(--line-2); border-radius: 2px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.1rem; margin: 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-lang { align-self: flex-start; margin: .9rem 0; }
  .nav-cta { margin-top: .3rem; }
}

/* ---------- layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); }
/* Full-bleed background, content held to the same column as .section.
   Padding (not per-child max-width) does the centring, so left-aligned
   children such as .sec-head stay aligned with the grid below them. */
.band {
  max-width: none;
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding-inline: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
}
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: .9rem; font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--pad) 0;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 1.1rem 0 1.3rem; font-weight: 600; }
.lede { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--steel); max-width: 40em; }
.hero-actions { display: flex; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-draw { position: relative; }
.draw { width: 100%; height: auto; color: var(--blue); }
.draw-grid { color: var(--line-2); }
.draw-part circle { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.draw-part circle:nth-child(2) { stroke: var(--blue); }
.draw-center path { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 14 4 3 4; }
.draw-dim path { stroke: var(--blue); stroke-width: 1; }
.draw-lead path { stroke: var(--blue); stroke-width: 1; }
.draw-lead circle { fill: var(--blue); }
.draw-txt { font-family: var(--f-mono); font-size: 12px; fill: var(--blue); }
.draw-badge {
  position: absolute; left: 0; top: 4%;
  background: var(--ink); color: #fff; padding: .5rem .8rem; border-radius: 2px;
  display: flex; flex-direction: column; line-height: 1.25;
}
.draw-badge-k { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .16em; color: var(--muted); }
.draw-badge-v { font-family: var(--f-mono); font-size: 1rem; font-weight: 500; }

/* stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--paper);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat { padding: 1.5rem 1.4rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-v { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.stat-v span { font-size: .85rem; color: var(--muted); margin-left: .18em; }
.stat-l { font-size: .8rem; color: var(--steel); margin-top: .15rem; }

/* ---------- capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cap {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.5rem 1.35rem; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.cap:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(11,95,208,.5); }
.cap-code {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em;
  color: var(--blue); background: var(--blue-lt); padding: .2em .5em; border-radius: 2px; align-self: flex-start;
}
.cap h3 { font-size: 1.1rem; }
.cap p { font-size: .87rem; color: var(--steel); flex: 1; }
.cap-go { font-family: var(--f-mono); font-size: .72rem; color: var(--blue); letter-spacing: .04em; }

/* ---------- specs ---------- */
.spec-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.spec-copy h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin-top: .9rem; font-weight: 500; }
.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.spec-row dt { font-size: .88rem; color: var(--steel); }
.spec-row dd { font-family: var(--f-mono); font-size: .92rem; font-weight: 500; color: var(--ink); text-align: right; }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ind { background: var(--bg); padding: 1.7rem 1.4rem; }
.ind-n { font-family: var(--f-mono); font-size: .7rem; color: var(--blue); letter-spacing: .1em; }
.ind h3 { font-size: 1.05rem; margin: .5rem 0 .5rem; }
.ind p { font-size: .85rem; color: var(--steel); }

/* ---------- process ---------- */
.proc { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: p; }
.proc li { position: relative; padding-top: 2.2rem; border-top: 2px solid var(--line-2); }
.proc li:first-child { border-top-color: var(--blue); }
.proc-n {
  position: absolute; top: -.9rem; left: 0;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  background: var(--bg); color: var(--blue); padding-right: .6rem;
}
.band .proc-n { background: var(--paper); }
.proc h3 { font-size: 1rem; margin-bottom: .4rem; }
.proc p { font-size: .84rem; color: var(--steel); }

/* ---------- cta ---------- */
.cta {
  max-width: none; background: var(--ink); color: #fff; text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
  background-image: radial-gradient(circle at 50% 0%, rgba(11,95,208,.35), transparent 60%);
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 500; }
.cta p { color: #a9b8c5; margin: 1rem auto 2rem; max-width: 44em; font-size: 1rem; }

/* ---------- page head ---------- */
.page-head {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) 0;
}
.page-head h1 { max-width: 18ch; }
.back { font-family: var(--f-mono); font-size: .76rem; color: var(--steel); }
.back:hover { color: var(--blue); }

/* ---------- about ---------- */
.story-wrap { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.story-copy p { color: var(--steel); margin-bottom: 1rem; }
.story-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.num { background: var(--paper); padding: 1.3rem 1.1rem; }
.num-v { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 500; }
.num-l { font-size: .76rem; color: var(--steel); margin-top: .1rem; }

.timeline { list-style: none; border-left: 1px solid var(--line-2); margin-left: .4rem; }
.timeline li { position: relative; padding: 0 0 1.6rem 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--f-mono); font-size: .84rem; font-weight: 500; color: var(--blue); display: block; margin-bottom: .2rem; }
.tl-dot { position: absolute; left: -4.5px; top: .5rem; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
.timeline p { font-size: .92rem; color: var(--steel); }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table th[scope="row"] { font-weight: 500; color: var(--ink); }
.td-qty { font-family: var(--f-mono); color: var(--blue); white-space: nowrap; }
.td-note { color: var(--steel); font-size: .84rem; }
.table-spec thead th {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-2); font-weight: 500;
}
.table-spec td { font-family: var(--f-mono); text-align: right; font-size: .88rem; }

/* ---------- certs ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cert { background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 1.4rem 1.2rem; }
.band .cert { background: var(--bg); }
.cert-ico { color: var(--blue); display: inline-flex; margin-bottom: .7rem; }
.cert-ico svg { width: 22px; height: 22px; }
.cert-code { font-family: var(--f-mono); font-size: .92rem; font-weight: 500; }
.cert-desc { font-size: .8rem; color: var(--steel); margin-top: .15rem; }

/* ---------- product list ---------- */
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column;
}
.pcard-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.pcard-head h2 { font-size: 1.3rem; }
.pcard-sum { font-size: .9rem; color: var(--steel); margin-bottom: 1.2rem; }
.pcard-specs { margin-bottom: 1.5rem; border-top: 1px solid var(--line); flex: 1; }
.pcard-specs .spec-row { padding: .55rem 0; }
.pcard-specs dt { font-size: .82rem; }
.pcard-specs dd { font-size: .84rem; }
.pcard .btn { align-self: flex-start; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.detail-main .h-sm { margin-top: 2.2rem; }
.detail-main .h-sm:first-child { margin-top: 0; }
.checks { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.checks li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--steel); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border: 1.5px solid var(--blue); border-radius: 50%;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: .35em .7em;
}
.chips-plain li { font-family: var(--f-body); background: var(--blue-lt); border-color: transparent; color: var(--blue-dk); }
.detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }

/* ---------- news ---------- */
.newslist { border-top: 1px solid var(--line); }
.newsitem {
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line);
}
.newsitem-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.newsitem-meta time { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); }
.tag {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-lt); padding: .25em .6em; border-radius: 2px;
}
.newsitem-body h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.newsitem-body p { font-size: .92rem; color: var(--steel); }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.form-card, .info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 1.8rem 1.6rem;
}
.form-note { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.form-note-sm { margin: .7rem 0 0; text-align: center; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: .92rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 2px;
  padding: .62em .75em; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,95,208,.13); background: var(--paper);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.f-err { font-size: .74rem; color: #c0392b; min-height: 1em; }

#quoteSubmit { position: relative; }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: none; animation: spin .7s linear infinite;
}
#quoteSubmit.loading .spinner { display: inline-block; }
#quoteSubmit.loading { opacity: .85; pointer-events: none; }

.form-err { text-align: center; margin-top: .6rem; min-height: 1em; }
.cf-turnstile { margin-bottom: 1rem; }

.form-success { text-align: center; padding: 2.5rem 1rem; }
.ok-ico { color: var(--blue); display: inline-flex; }
.ok-ico svg { width: 46px; height: 46px; }
.form-success h3 { font-size: 1.25rem; margin: .9rem 0 .5rem; }
.form-success p { font-size: .9rem; color: var(--steel); max-width: 34em; margin: 0 auto; }

.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.info-list { border-top: 1px solid var(--line); }
.info-list .spec-row { padding: .7rem 0; }
.info-list dd { font-family: var(--f-body); font-size: .85rem; text-align: right; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: .8rem 0; font-size: .88rem; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--blue); font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: .85rem; color: var(--steel); padding-bottom: .9rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9dadba; }
.footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad) 2rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem;
}
.footer-brand .brand-mark { color: var(--blue); margin-bottom: .8rem; }
.footer-brand p { font-size: .84rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: .9rem; font-weight: 500;
}
.footer-col a { display: block; font-size: .85rem; margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-info { font-size: .8rem; margin-bottom: .45rem; }
.footer-info span { color: var(--muted); display: inline-block; min-width: 4.5em; }
.footer-base {
  max-width: var(--maxw); margin: 0 auto; padding: 1.2rem var(--pad);
  border-top: 1px solid #23303b; display: flex; justify-content: space-between; gap: .6rem;
  flex-wrap: wrap; font-size: .78rem; color: var(--muted);
}
.footer-credit { font-family: var(--f-mono); font-size: .74rem; }

/* ---------- reveal (progressive enhancement) ---------- */
.js .reveal, .js .reveal-up { opacity: 0; }
.reveal { transform: translateY(10px); animation: rise .7s var(--ease) forwards; }
.reveal[data-delay="1"]{ animation-delay: .07s; } .reveal[data-delay="2"]{ animation-delay: .14s; }
.reveal[data-delay="3"]{ animation-delay: .21s; }
.reveal-up { transform: translateY(18px); }
.reveal-up.in { animation: rise .65s var(--ease) forwards; }
.reveal-up.in[data-delay="1"]{ animation-delay: .07s; } .reveal-up.in[data-delay="2"]{ animation-delay: .14s; }
.reveal-up.in[data-delay="3"]{ animation-delay: .21s; } .reveal-up.in[data-delay="4"]{ animation-delay: .28s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cap-grid, .ind-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .proc { grid-template-columns: 1fr 1fr 1fr; }
  .detail, .contact-wrap, .spec-wrap, .story-wrap { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
@media (max-width: 820px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-draw { order: -1; max-width: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .plist { grid-template-columns: 1fr; }
  .newsitem { grid-template-columns: 1fr; gap: .8rem; }
  .newsitem-meta { flex-direction: row; align-items: center; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cap-grid, .ind-grid, .cert-grid, .proc { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .reveal-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.nf { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: clamp(4rem, 10vw, 7rem) var(--pad); }
.nf-in { max-width: 46em; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .8rem 0 1rem; }
.nf-lede { color: var(--muted); margin-bottom: 2rem; }
.nf-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- public demo sandbox notice ---------- */
.sandbox {
  border: 1px solid var(--accent, #0b5fd0); border-left-width: 3px; border-radius: 6px;
  background: rgba(11, 95, 208, .05); padding: 1rem 1.1rem; margin-bottom: 1.4rem;
}
.sandbox p { font-size: .84rem; line-height: 1.7; }
.sandbox-t { font-weight: 700; margin-bottom: .35rem; }
.sandbox-link { margin-top: .6rem; }
.sandbox-link a { color: var(--accent, #0b5fd0); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Success-state CTA into the admin list (public demo build only). */
.success-cta { margin-top: 1.2rem; }
