/* ============================================================
   KPR 尊王安全鞋 — Industrial Tech / Swiss
   Palette: near-black + KPR shield red
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-raise: #131316;
  --bg-card: #161619;
  --line: #26262b;
  --line-strong: #3a3a41;
  --ink: #ececee;
  --ink-dim: #a3a3ab;
  --ink-faint: #6c6c75;
  --red: #e8101c;
  --red-deep: #b00d16;
  --red-glow: rgba(232, 16, 28, 0.35);
  --font-display: "Chakra Petch", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --header-h: 64px;
  --pad: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 18px; z-index: 200;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }

::selection { background: var(--red); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 13, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.18em; color: var(--ink);
}
.brand-sub { font-size: 11px; letter-spacing: 0.32em; color: var(--ink-dim); }

.site-nav {
  position: fixed; top: var(--header-h); right: 0; bottom: 0;
  width: min(78vw, 320px);
  background: var(--bg-raise);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav a {
  text-decoration: none; color: var(--ink-dim);
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; letter-spacing: 0.08em;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.nav-cta {
  margin-top: 18px;
  background: var(--red); color: #fff !important;
  text-align: center; border: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.nav-cta:hover { background: var(--red-deep); }

.nav-toggle {
  width: 48px; height: 48px;
  background: none; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: 0.1em;
  padding: 14px 28px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-solid {
  background: var(--red); color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn-solid:hover { background: var(--red-deep); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) var(--pad) 56px;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid; gap: 40px;
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--red);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.kicker-mark { width: 28px; height: 2px; background: var(--red); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 1.08; letter-spacing: 0.02em;
}
.hero h1 em {
  font-style: normal; color: var(--red);
  text-shadow: 0 0 32px var(--red-glow);
}
.hero-lead {
  margin-top: 22px; max-width: 46ch;
  color: var(--ink-dim); font-size: 16px; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats {
  display: flex; gap: 0; margin-top: 44px;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  flex: 1; padding: 18px 16px 0 0;
  border-right: 1px solid var(--line);
  padding-left: 16px;
}
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: none; }
.hero-stats dt {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 5vw, 40px); line-height: 1;
}
.hero-stats dt span { color: var(--red); }
.hero-stats dd { color: var(--ink-faint); font-size: 13px; margin-top: 6px; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border: 1px solid var(--line);
}
.hero-visual::before {
  content: ""; position: absolute; z-index: 1;
  top: -10px; left: -10px; width: 56px; height: 56px;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
}
.hero-visual::after {
  content: ""; position: absolute; z-index: 1;
  bottom: 26px; right: -10px; width: 56px; height: 56px;
  border-bottom: 2px solid var(--red); border-right: 2px solid var(--red);
}
.hero-tag {
  margin-top: 12px; font-size: 13px; color: var(--ink-dim);
}
.hero-tag .mono { color: var(--red); margin-right: 10px; font-size: 13px; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.18em;
  color: var(--ink-faint);
  padding: 12px 0 12px 28px;
}
.ticker-track span::after { content: "·"; color: var(--red); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 76px var(--pad); }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: 44px; }
.section-no {
  font-size: 12px; color: var(--red); letter-spacing: 0.26em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 6vw, 48px); letter-spacing: 0.04em; line-height: 1.15;
}
.section-desc { color: var(--ink-dim); margin-top: 12px; max-width: 56ch; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; gap: 44px; }
.about-text .lede {
  font-size: 21px; font-weight: 500; line-height: 1.6;
  margin-bottom: 18px;
}
.about-text p + p { margin-top: 14px; }
.about-text p { color: var(--ink-dim); font-weight: 300; }
.about-text .lede { color: var(--ink); }
.about-claim {
  margin-top: 26px !important;
  padding: 16px 20px;
  border-left: 3px solid var(--red);
  background: var(--bg-raise);
  color: var(--ink) !important; font-weight: 500 !important;
}
.about-pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-pillars li { background: var(--bg-card); padding: 26px 24px; position: relative; }
.pillar-no {
  position: absolute; top: 22px; right: 22px;
  font-size: 13px; color: var(--ink-faint);
}
.about-pillars h3 {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 0.12em;
  color: var(--red); margin-bottom: 8px;
}
.about-pillars p { color: var(--ink-dim); font-size: 14px; font-weight: 300; }

/* ---------- Tech ---------- */
.tech { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-grid {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.tech-grid li {
  background: var(--bg); padding: 28px 24px;
  transition: background 0.25s;
}
.tech-grid li:hover { background: var(--bg-card); }
.tech-code {
  display: inline-block; font-size: 12px; color: var(--red);
  border: 1px solid var(--red); padding: 2px 9px;
  margin-bottom: 16px;
}
.tech-grid h3 {
  font-family: var(--font-display); font-size: 19px;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.tech-grid p { color: var(--ink-dim); font-size: 14px; font-weight: 300; }

/* ---------- Anatomy (tech callouts) ---------- */
.anatomy-model { color: var(--red); font-size: 0.95em; }
.anatomy-stage { display: grid; gap: 36px; }

.anatomy-figure {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.anatomy-figure::before {
  content: ""; position: absolute; z-index: 2;
  top: -8px; left: -8px; width: 48px; height: 48px;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
}
.anatomy-figure::after {
  content: ""; position: absolute; z-index: 2;
  bottom: -8px; right: -8px; width: 48px; height: 48px;
  border-bottom: 2px solid var(--red); border-right: 2px solid var(--red);
}
.anatomy-figure img { width: 100%; position: relative; }
.anatomy-overlay { position: absolute; inset: 0; z-index: 5; }

/* --- laser scan layers --- */
.scan-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 16, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 16, 28, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.scan-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.028) 0px, rgba(255, 255, 255, 0.028) 1px,
    transparent 1px, transparent 3px
  );
}
.scan-beam {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 3;
  width: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--red) 18%, #ff5b63 50%, var(--red) 82%, transparent);
  box-shadow: 0 0 14px 2px var(--red-glow), 0 0 42px 6px rgba(232, 16, 28, 0.2);
}
.scan-beam::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 3px; width: 90px;
  background: linear-gradient(270deg, rgba(232, 16, 28, 0.18), transparent);
}
.anatomy-stage.is-visible .scan-beam {
  animation: scan-sweep 3s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}
.anatomy-stage.is-visible .scan-beam-idle {
  animation: scan-sweep 9s linear 4.2s infinite;
  width: 1px; box-shadow: 0 0 10px 1px rgba(232, 16, 28, 0.25);
}
.scan-beam-idle::before { display: none; }
.anatomy-stage.is-visible .scan-beam-idle { opacity: 0; }
@keyframes scan-sweep {
  0%   { left: 0; opacity: 0; }
  4%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

/* HUD readouts */
.scan-hud {
  position: absolute; z-index: 4; pointer-events: none;
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(232, 16, 28, 0.85);
  text-shadow: 0 0 8px rgba(232, 16, 28, 0.4);
  opacity: 0;
}
.anatomy-stage.is-visible .scan-hud { animation: hud-in 0.4s ease forwards; animation-delay: var(--hud-d, 0s); }
.hud-tl { top: 14px; left: 16px; }
.hud-tr { top: 14px; right: 16px; --hud-d: 3.1s; }
.hud-br { bottom: 12px; right: 16px; --hud-d: 3.3s; }
.hud-cursor { animation: hud-blink 1s steps(1) infinite; margin-left: 4px; }
@keyframes hud-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hud-blink { 50% { opacity: 0; } }

/* callouts revealed as the beam passes their x-position */
.anatomy-stage .co { opacity: 0; }
.anatomy-stage.is-visible .co { animation: co-appear 0.4s ease forwards; }
.anatomy-stage.is-visible .co-toe  { animation-delay: 0.74s; }
.anatomy-stage.is-visible .co-cap  { animation-delay: 1.0s; }
.anatomy-stage.is-visible .co-sole { animation-delay: 1.16s; }
.anatomy-stage.is-visible .co-tls  { animation-delay: 1.6s; }
.anatomy-stage.is-visible .co-mesh { animation-delay: 1.92s; }
.anatomy-stage.is-visible .co-mid  { animation-delay: 2.12s; }
@keyframes co-appear {
  0%   { opacity: 0; transform: translate(var(--co-x, -7px), -50%) scale(0.82); filter: brightness(2.4); }
  55%  { opacity: 1; filter: brightness(1.6); }
  100% { opacity: 1; transform: translate(var(--co-x, -7px), -50%) scale(1); filter: none; }
}

/* callout = dot + line + tag, anchored on the dot */
.co {
  position: absolute;
  display: flex; align-items: center;
  transform: translate(var(--co-x, -7px), -50%);
}
.co-left { flex-direction: row-reverse; --co-x: calc(-100% + 7px); }
.co-right { --co-x: -7px; }

.co-dot {
  position: relative; flex-shrink: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 16, 28, 0.25);
}
.co-dot::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--red); border-radius: 50%;
  animation: co-pulse 2.2s ease-out infinite;
}
@keyframes co-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.co-line {
  flex-shrink: 0;
  width: clamp(28px, 6vw, 72px); height: 1px;
}
.co-right .co-line { background: linear-gradient(90deg, var(--red), rgba(232, 16, 28, 0.15)); }
.co-left .co-line { width: 30px; background: linear-gradient(270deg, var(--red), rgba(232, 16, 28, 0.15)); }

.co-tag {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  background: rgba(11, 11, 13, 0.78);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 0.08em; color: var(--ink);
}
.co-tag i { font-style: normal; font-size: 11px; color: var(--red); }

/* dot positions (percentage of the O-775GT photo) */
.co-tls  { left: 52.5%; top: 35%; }
.co-toe  { left: 24%;   top: 62%; }
.co-cap  { left: 33%;   top: 53%; }
.co-mid  { left: 70%;   top: 67%; }
.co-sole { left: 38%;   top: 75%; }
.co-mesh { left: 63%;   top: 45%; }

/* legend */
.anatomy-legend {
  display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  counter-reset: none;
}
.anatomy-legend li {
  display: flex; gap: 16px;
  background: var(--bg-card); padding: 20px 22px;
}
.legend-no {
  flex-shrink: 0; font-size: 12px; color: var(--red);
  border: 1px solid var(--red);
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.anatomy-legend h3 {
  font-family: var(--font-display); font-size: 17px;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.anatomy-legend p { color: var(--ink-dim); font-size: 14px; font-weight: 300; }

/* mobile: dots become numbered chips, no lines/text labels */
@media (max-width: 879px) {
  .co-line { display: none; }
  .co-tag b { display: none; }
  .co-tag { padding: 3px 8px; gap: 0; background: rgba(11, 11, 13, 0.82); }
  .co-tag i { font-size: 12px; }
}

/* ---------- Products ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em;
  color: var(--ink-dim); background: none;
  border: 1px solid var(--line-strong);
  padding: 10px 18px; min-height: 44px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter-btn.is-active {
  color: #fff; background: var(--red); border-color: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.product-grid { display: grid; gap: 20px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.product-card:hover { border-color: var(--red); transform: translateY(-3px); }
.product-card figure { overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; }
.card-model { font-size: 13px; color: var(--red); margin-bottom: 6px; }
.card-body h3 { font-size: 16px; font-weight: 500; letter-spacing: 0.02em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card-tags span {
  font-size: 11px; color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  padding: 2px 8px; letter-spacing: 0.06em;
}
.card-price {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.04em;
}
.product-card.is-hidden { display: none; }
.product-note { margin-top: 30px; color: var(--ink-faint); font-size: 14px; }
.product-note a { color: var(--red); }

/* ---------- Global ---------- */
.global { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.global-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.global-grid li {
  background: var(--bg); padding: 20px 18px;
  font-family: var(--font-display); font-size: 17px; letter-spacing: 0.1em;
  position: relative;
  transition: background 0.25s, color 0.25s;
}
.global-grid li::before {
  content: "▸"; color: var(--red); margin-right: 10px; font-size: 13px;
}
.global-grid li:hover { background: var(--bg-card); }
.global-note { margin-top: 22px; color: var(--ink-faint); font-size: 14px; letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 30px 26px;
}
.contact-card h3 {
  font-size: 13px; color: var(--ink-faint); letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.contact-co { font-size: 19px; font-weight: 700; line-height: 1.4; }
.contact-co span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-faint); margin-top: 4px; }
.contact-card address { font-style: normal; color: var(--ink-dim); margin-top: 14px; }
.contact-hours { color: var(--ink-dim); font-size: 14px; margin: 10px 0 22px; }
.contact-list { display: grid; gap: 0; margin-bottom: 24px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.contact-list .mono { font-size: 12px; color: var(--red); width: 44px; flex-shrink: 0; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--red); }

/* ---------- Order form ---------- */
.order { border-top: 1px solid var(--line); }
.order-grid { display: grid; gap: 28px; }
.order-form {
  background: var(--bg-card); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 28px 24px;
  display: grid; gap: 18px;
}
.form-row { display: grid; gap: 18px; }
.form-field {
  display: grid; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.06em; color: var(--ink);
}
.req { color: var(--red); }
.field-hint {
  font-family: var(--font-body); font-weight: 300;
  font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 16px;
  transition: border-color 0.2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.form-field input:user-invalid,
.form-field textarea:user-invalid { border-color: var(--red-deep); }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#order-submit { justify-self: start; cursor: pointer; border: none; }
#order-submit:disabled { opacity: 0.5; cursor: wait; }
.form-status { font-size: 13px; min-height: 20px; letter-spacing: 0.04em; }
.form-status.is-ok { color: #4cd964; }
.form-status.is-err { color: var(--red); }

.order-aside {
  background: var(--bg-raise); border: 1px solid var(--line);
  padding: 28px 24px; align-self: start;
}
.order-aside h3 { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.3em; margin-bottom: 16px; }
.order-aside-lead { color: var(--ink-dim); font-size: 14px; margin-bottom: 6px; }
.order-note {
  margin-top: 20px; padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: var(--bg-card);
  font-size: 13.5px; color: var(--ink-dim);
}

/* ---------- News ---------- */
.news { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.news-list li {
  background: var(--bg); padding: 22px 24px;
  display: grid; gap: 6px;
  transition: background 0.25s;
}
.news-list li:hover { background: var(--bg-card); }
.news-tag {
  justify-self: start;
  font-size: 11px; color: var(--red); letter-spacing: 0.2em;
  border: 1px solid var(--red); padding: 2px 9px;
}
.news-list h3 { font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.news-list p { color: var(--ink-dim); font-size: 14px; font-weight: 300; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-raise); border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; }
.faq-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--bg-card);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.faq-item[open] { border-left-color: var(--red); }
.faq-item summary {
  display: flex; align-items: center; gap: 14px;
  list-style: none; cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px; letter-spacing: 0.04em;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-no { flex-shrink: 0; font-size: 12px; color: var(--red); }
.faq-mark { margin-left: auto; position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; background: var(--ink-faint);
  transition: transform 0.25s ease;
}
.faq-mark::before { left: 0; right: 0; top: 6px; height: 2px; }
.faq-mark::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-item[open] .faq-mark::before { background: var(--red); }
.faq-a { padding: 0 20px 20px 20px; }
.faq-a p { color: var(--ink-dim); font-weight: 300; font-size: 15px; }
.faq-a strong { color: var(--ink); font-weight: 500; }
.faq-a a { color: var(--red); }

/* ---------- Cart badge & sub-page header ---------- */
.cart-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.08em;
  padding: 8px 6px;
}
.cart-link:hover { color: var(--red); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 11px;
  border-radius: 999px;
}
.cart-count.is-empty { background: var(--line-strong); color: var(--ink-dim); }
.header-cart { margin-left: auto; }
@media (min-width: 880px) { .header-cart { margin-left: 8px; } }

.sub-nav { display: flex; align-items: center; gap: 14px; }
.sub-nav a {
  text-decoration: none; color: var(--ink-dim);
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: 0.06em; padding: 8px 4px;
}
.sub-nav a:hover, .sub-nav a[aria-current] { color: var(--ink); }
.sub-nav .cart-link { color: var(--ink); }
.sub-main { padding: calc(var(--header-h) + 36px) var(--pad) 72px; }

/* ---------- Product detail page ---------- */
.pd-grid { display: grid; gap: 32px; }
.pd-loading { color: var(--ink-faint); padding: 60px 0; }
.pd-figure {
  position: relative; border: 1px solid var(--line); align-self: start;
}
.pd-figure::before {
  content: ""; position: absolute; top: -8px; left: -8px;
  width: 44px; height: 44px;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
}
.pd-cat { font-size: 12px; color: var(--red); letter-spacing: 0.22em; margin-bottom: 10px; }
.pd-model {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 6vw, 44px); letter-spacing: 0.04em; line-height: 1.15;
}
.pd-name { font-size: 18px; color: var(--ink-dim); margin-top: 6px; }
.pd-tags { margin-top: 14px; }
.pd-desc { color: var(--ink-dim); font-weight: 300; margin-top: 18px; max-width: 56ch; }
.pd-price {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  margin-top: 20px; letter-spacing: 0.04em;
}
.pd-form {
  margin-top: 24px; padding: 22px;
  background: var(--bg-card); border: 1px solid var(--line);
  display: grid; gap: 16px; max-width: 460px;
}
.pd-form select, .pd-form input {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 11px 13px; font-family: var(--font-body); font-size: 16px;
}
.pd-form select:focus, .pd-form input:focus { outline: none; border-color: var(--red); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-actions .btn { border: none; cursor: pointer; }
.pd-actions .btn-ghost { border: 1px solid var(--line-strong); }
.pd-added { min-height: 18px; }
.pd-note {
  margin-top: 18px; padding: 12px 16px;
  border-left: 3px solid var(--red); background: var(--bg-raise);
  font-size: 13.5px; color: var(--ink-dim); max-width: 460px;
}
.pd-missing { text-align: center; padding: 60px 0; display: grid; gap: 14px; justify-items: center; }
.pd-missing-code { color: var(--red); letter-spacing: 0.2em; }
.pd-extra { margin-top: 64px; }
.pd-related-title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.card-link { display: block; color: inherit; text-decoration: none; }

/* ---------- Cart page ---------- */
.cart-grid { display: grid; gap: 32px; }
.cart-empty, .order-done { padding: 48px 0; display: grid; gap: 14px; justify-items: start; }
.cart-empty .mono { color: var(--ink-faint); letter-spacing: 0.2em; }
.cart-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cart-item {
  background: var(--bg-card);
  display: grid; grid-template-columns: 96px 1fr; gap: 12px 16px;
  padding: 16px; align-items: center;
}
.cart-thumb { border: 1px solid var(--line); width: 96px; height: 72px; object-fit: cover; }
.cart-item-model { font-size: 13px; color: var(--red); }
.cart-item-name { font-size: 14px; color: var(--ink); margin-top: 2px; }
.cart-item-price { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 10px; grid-column: 2; }
.cart-qty {
  width: 70px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); padding: 8px 10px;
  font-size: 16px; font-family: var(--font-mono);
}
.cart-remove {
  background: none; border: 1px solid var(--line-strong);
  color: var(--ink-dim); font-size: 13px; padding: 8px 14px; cursor: pointer;
  min-height: 38px;
}
.cart-remove:hover { border-color: var(--red); color: var(--red); }
.cart-item-sub { grid-column: 2; font-size: 15px; color: var(--ink); }
.cart-summary {
  margin-top: 16px; padding: 18px 20px;
  background: var(--bg-raise); border: 1px solid var(--line);
}
.cart-summary-note { font-size: 13px; color: var(--ink-faint); margin-bottom: 8px; }
.cart-calc { display: grid; gap: 8px; }
.cart-calc > div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--ink-dim);
}
.cart-calc dd { font-family: var(--font-mono); color: var(--ink); }
.cart-ship-method { font-size: 12px; color: var(--ink-faint); margin-left: 4px; }
.cart-calc-total { border-top: 1px solid var(--line-strong); padding-top: 10px; margin-top: 4px; }
.cart-calc-total dt { font-size: 15px; color: var(--ink); }
.cart-calc-total dd {
  font-family: var(--font-display) !important; font-weight: 700;
  font-size: 26px; letter-spacing: 0.04em;
}
.cart-ship-note { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }
.checkout-title { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.3em; }

.pay-fieldset { border: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; }
.pay-legend { padding: 0 8px; }
.pay-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--line-strong);
  cursor: pointer; transition: border-color 0.2s;
}
.pay-option:hover { border-color: var(--ink-faint); }
.pay-option:has(input:checked) { border-color: var(--red); background: var(--bg); }
.pay-option input { margin-top: 4px; accent-color: var(--red); }
.pay-option strong {
  display: block; font-family: var(--font-display);
  font-size: 15px; letter-spacing: 0.06em;
}
.pay-option em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

.order-done-code { color: #4cd964; letter-spacing: 0.2em; }
.order-done h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em; }
.order-done p { color: var(--ink-dim); max-width: 56ch; }
.twpay-box {
  margin-top: 8px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  display: grid; gap: 12px; justify-items: start;
}
.twpay-box h4 { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.08em; }
.twpay-box img { background: #fff; padding: 10px; max-width: 300px; height: auto; }
.twpay-apps { font-size: 13px; color: var(--ink-dim); max-width: 48ch; }
.twpay-note { font-size: 13px; color: var(--ink-faint); }

/* ---------- Global links ---------- */
.global-grid a {
  color: inherit; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.global-grid a:hover { color: var(--red); }
.global-tag { font-size: 10px; color: var(--ink-faint); border: 1px solid var(--line-strong); padding: 1px 7px; letter-spacing: 0.12em; }
.global-grid a:hover .global-tag { color: var(--red); border-color: var(--red); }
.global-grid .is-here { display: flex; align-items: center; gap: 10px; }
.global-grid .is-here .global-tag { color: var(--red); border-color: var(--red); }
.global-hq { color: var(--red); }

@media (min-width: 880px) {
  .pd-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .cart-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .cart-item { grid-template-columns: 96px 1fr auto auto; }
  .cart-item-ctrl { grid-column: auto; }
  .cart-item-sub { grid-column: auto; min-width: 90px; text-align: right; }
  .sub-main { padding-top: calc(var(--header-h) + 56px); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raise); }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 44px var(--pad) 36px;
  display: grid; gap: 28px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.footer-brand strong { color: var(--ink); letter-spacing: 0.06em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a {
  color: var(--ink-dim); text-decoration: none; font-size: 14px;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--red); }
.footer-copy { color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0.04em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .scan-beam { display: none; }
}

/* ============================================================
   Breakpoints (mobile-first)
   ============================================================ */
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .global-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  :root { --pad: 36px; --header-h: 72px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; width: auto; transform: none;
    flex-direction: row; align-items: center; gap: 6px;
    background: none; border: none; padding: 0;
  }
  .site-nav a {
    font-size: 13px; padding: 8px 9px; border-bottom: none;
  }
  .nav-cta { margin-top: 0; margin-left: 8px; padding: 10px 16px; }

  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 84px; }

  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
  .anatomy-stage { grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .global-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 104px var(--pad); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
}

@media (min-width: 1100px) {
  .site-nav a { font-size: 14px; padding: 8px 13px; }
  .nav-cta { margin-left: 10px; padding: 10px 20px; }
}

@media (min-width: 1240px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .global-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 720px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 880px) {
  .order-grid { grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
  .news-list li { grid-template-columns: 110px 280px 1fr; align-items: center; gap: 20px; }
  .news-list h3 { font-size: 16px; }
}
