/* 觀詠鋼管 KYST — layout modelled on Mannesmann (full-bleed hero, colour tiles,
   side tab), coloured from the KY 觀詠 logo: navy, brushed silver, a touch of red. */
:root {
  --navy: #1c3764;
  --navy-2: #27497e;
  --blue: #1c3764;
  --cyan: #c8202f;
  --cyan-2: #a9bcd6;
  --red: #c8202f;
  --steel: #5b6c86;
  --ink: #14223d;
  --text: #2b3346;
  --muted: #6b7489;
  --line: #dde2ec;
  --bg: #ffffff;
  --bg-2: #f2f4f7;
  --silver: #e8ecf1;
  --warn: #e8590c;
  --ok: #0f9d58;
  --display: 'Barlow Condensed', 'Noto Sans TC', sans-serif;
  --body: 'Noto Sans TC', 'Barlow', system-ui, sans-serif;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); text-transform: uppercase; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); font-weight: 600; font-size: 1rem; margin-bottom: .6em; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 760px; }

/* language switch: <span class="zh"> / <span class="en"> */
html[lang="en"] .zh, html[lang="zh-Hant"] .en { display: none !important; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.solid, .site-header.always { background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo svg { width: 46px; height: 46px; flex: none; }
.logo .name { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: .18em; line-height: 1; }
.logo .sub { font-family: var(--display); font-size: .72rem; letter-spacing: .2em; opacity: .85; display: block; margin-top: 3px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #fff; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.08rem; padding: 8px 12px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--cyan-2); }
.tools { display: flex; align-items: center; gap: 14px; color: #fff; font-family: var(--display); font-size: 1.15rem; }
.lang button { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; opacity: .6; padding: 2px 4px; }
.lang button.on { opacity: 1; font-weight: 700; }
.burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 28px; height: 2px; background: #fff; margin: 6px 0; }
.cart-link { color: #fff; position: relative; display: flex; align-items: center; gap: 4px; }
.cart-link b { background: var(--cyan); color: #fff; border-radius: 10px; font-size: .75rem; padding: 0 6px; font-family: var(--body); }

/* right-edge fixed tab (Mannesmann "Product Finder") */
.side-tab { position: fixed; right: 0; top: 42%; z-index: 40; background: var(--cyan); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); padding: 22px 12px; font-family: var(--display); font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: -2px 0 12px rgba(0,0,0,.2); }
.side-tab:hover { background: var(--blue); }
html[lang="zh-Hant"] .side-tab { transform: none; letter-spacing: .3em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: #0b1030; padding: 140px 0 80px; }
.hero .bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 40%, #2a3f9a 0%, #121a4a 45%, #070b22 100%); }
.hero .bg .hero-pic { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: 62%; height: auto; opacity: .9; }
.hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,34,.92) 0%, rgba(7,11,34,.55) 50%, rgba(7,11,34,.1) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: var(--cyan-2); margin-bottom: .3em; }
.hero h1 .w { color: #fff; display: block; }
.hero .claim { font-size: clamp(1.25rem, 2.3vw, 2rem); max-width: 820px; font-weight: 300; margin-bottom: 1.2em; }
.hero .kpi { display: inline-flex; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.35); padding: 8px 16px; font-family: var(--display); letter-spacing: .05em; font-size: 1.15rem; margin-bottom: 32px; }
.hero .kpi i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-2); display: inline-block; box-shadow: 0 0 12px var(--cyan-2); }
.hero .media-note { position: absolute; right: 24px; bottom: 20px; z-index: 3; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.25rem; border: 2px solid currentColor; color: #fff; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--navy); }
.btn.solid { background: var(--blue); border-color: var(--blue); }
.btn.solid:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.btn.dark { color: var(--navy); }
.btn.dark:hover { background: var(--navy); color: #fff; }
.btn.sm { padding: 8px 16px; font-size: 1rem; }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* four colour tiles under the hero */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; color: #fff; padding: 40px 32px 34px; min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; transition: filter .2s; }
.tile:hover { filter: brightness(1.12); }
.tile:nth-child(1) { background: var(--navy-2); }
.tile:nth-child(2) { background: var(--cyan); }
.tile:nth-child(3) { background: var(--blue); }
.tile:nth-child(4) { background: #1a2350; }
.tile svg { width: 74px; height: 74px; margin: 0 auto auto; stroke: #fff; fill: none; stroke-width: 1.6; }
.tile h3 { color: #fff; font-size: 1.9rem; margin: 20px 0 0; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; }
.tile h3::after { content: '+'; font-weight: 300; font-size: 2.2rem; }
.tile p { margin: 6px 0 0; opacity: .85; font-size: .95rem; }

/* intro + stats */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 2px solid var(--line); }
.stat { background: #fff; padding: 28px 24px; }
.stat b { display: block; font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--navy); }
.stat b small { font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .95rem; }
.values { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.values span { border: 1px solid var(--navy); color: var(--navy); padding: 4px 16px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .1em; }

/* product cards */
.dark-band { background: var(--navy); color: #d9def0; }
.dark-band h2, .dark-band h3 { color: #fff; }
.grey-band { background: var(--bg-2); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card { background: #fff; color: var(--text); display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,20,60,.18); }
.card .img { aspect-ratio: 4/3; background: linear-gradient(180deg,#fff,#eef1f6); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
.card .img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .tag { font-family: var(--display); color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; }
.card h3 { margin: 4px 0 8px; font-size: 1.45rem; }
.card p { font-size: .93rem; color: var(--muted); flex: 1; }
.card .more { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--warn); color: #fff; font-family: var(--display); letter-spacing: .08em; padding: 3px 10px; font-size: .95rem; text-transform: uppercase; }

/* feature split (simulator / catalog teasers) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.feature-visual { background: #0b1238; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 16px; height: 2px; background: var(--cyan); }

/* photo placeholders — to be replaced by company photos */
.ph { border: 2px dashed #9aa6c2; background: repeating-linear-gradient(45deg, #f4f6fb, #f4f6fb 12px, #eceff6 12px, #eceff6 24px); color: #56617d; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; min-height: 180px; font-size: .92rem; }
.ph::before { content: ''; width: 42px; height: 34px; margin-bottom: 10px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='%2356617d' stroke-width='1.5'%3E%3Crect x='1' y='4' width='22' height='15' rx='2'/%3E%3Ccircle cx='12' cy='11.5' r='4'/%3E%3Cpath d='M8 4l2-3h4l2 3'/%3E%3C/svg%3E"); }
.ph b { color: var(--navy); font-size: 1rem; }
.ph small { display: block; margin-top: 4px; opacity: .8; }
.dark-band .ph, .hero .ph { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); color: #cfd6ee; }
.dark-band .ph b, .hero .ph b { color: #fff; }
.hero .ph { min-height: 0; padding: 10px 14px; flex-direction: row; gap: 10px; font-size: .85rem; }
.hero .ph::before { margin: 0; width: 26px; height: 22px; filter: invert(1); }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 14px; }
.photo-grid .ph:first-child, .photo-grid .photo:first-child { grid-row: span 2; }
/* real photos in the grids (from the company deck) */
.photo { position: relative; margin: 0; overflow: hidden; background: #e9edf3; min-height: 160px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.fit { background: #fff; border: 1px solid var(--line); }
.photo.fit img { object-fit: contain; padding: 10px 10px 34px; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(transparent, rgba(12, 24, 48, .78)); color: #fff; font-size: .9rem; font-weight: 600; }

/* services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 2px; background: rgba(255,255,255,.12); }
.service { background: var(--navy); padding: 30px 26px; }
.service svg { width: 40px; height: 40px; stroke: var(--cyan-2); fill: none; stroke-width: 1.6; margin-bottom: 14px; }
.service h3 { font-size: 1.35rem; }
.service p { font-size: .92rem; margin: 0; opacity: .85; }

/* coming soon band */
.soon { background: linear-gradient(110deg, var(--blue) 0%, var(--navy-2) 70%); color: #fff; }
.soon h2 { color: #fff; }
.soon .q { font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--cyan-2); }

/* page hero (inner pages) */
.page-hero { background: radial-gradient(ellipse at 80% 20%, #2a3f9a, var(--navy) 60%); color: #fff; padding: 150px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero p { max-width: 760px; color: #cfd6ee; font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .85rem; color: #9fb0e0; margin-bottom: 18px; }
.crumbs a { color: #9fb0e0; }

/* ---------- product finder ---------- */
.finder { display: grid; grid-template-columns: 290px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 104px; background: var(--bg-2); padding: 24px; }
.filters h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; color: var(--navy); }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: .95rem; padding: 3px 0; cursor: pointer; }
.filters input[type=search], .filters select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); font: inherit; background: #fff; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input { width: 100%; padding: 8px; border: 1px solid var(--line); font: inherit; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.result-bar b { font-family: var(--display); font-size: 1.4rem; color: var(--navy); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--navy); color: #fff; padding: 2px 10px; font-size: .82rem; }
.results { display: grid; gap: 14px; }
.result { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--line); padding: 14px 18px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.result:hover { border-color: var(--cyan); box-shadow: 0 6px 20px rgba(10,20,60,.1); }
.result img { width: 120px; height: 90px; object-fit: contain; mix-blend-mode: multiply; }
.result h3 { margin: 0; font-size: 1.35rem; }
.result .meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-top: 4px; }
.result .meta b { color: var(--text); font-weight: 500; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.spec { border-collapse: collapse; width: 100%; font-size: .9rem; white-space: nowrap; }
table.spec th { background: var(--navy); color: #fff; font-weight: 500; padding: 10px 12px; text-align: center; position: sticky; top: 0; }
table.spec td { padding: 8px 12px; border-top: 1px solid var(--line); text-align: center; }
table.spec tr:nth-child(even) td { background: #f7f8fb; }
table.spec td:first-child { font-weight: 700; color: var(--navy); text-align: left; }
table.spec tr.hl td { background: #e3f4fc !important; }
table.spec.wrap { white-space: normal; min-width: 720px; }
table.spec.wrap td { text-align: left; vertical-align: top; line-height: 1.5; }
table.spec.wrap td:first-child { white-space: nowrap; }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,10,30,.6); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal .box { background: #fff; max-width: 1100px; width: 100%; position: relative; }
.modal .close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--muted); }
.modal .top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px; border-bottom: 1px solid var(--line); }
.modal .top .pic { background: var(--bg-2); display: flex; align-items: center; justify-content: center; padding: 16px; min-height: 220px; }
.modal .top .pic img { max-height: 260px; mix-blend-mode: multiply; }
.modal .sec { padding: 24px 32px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .93rem; margin: 12px 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- simulator ---------- */
.sim { display: grid; grid-template-columns: 360px 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.sim-panel { padding: 26px; background: var(--bg-2); border-right: 1px solid var(--line); }
.sim-panel h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 22px 0 8px; }
.sim-panel > h4:first-child { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.field label output { font-weight: 700; color: var(--navy); font-family: var(--display); font-size: 1.1rem; }
.field select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); font: inherit; background: #fff; }
.field input[type=range] { width: 100%; accent-color: var(--blue); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.seg button { border: 1px solid var(--line); background: #fff; padding: 8px 4px; font: inherit; font-size: .85rem; cursor: pointer; }
.seg button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sim-stage { padding: 26px; display: flex; flex-direction: column; min-width: 0; }
.stage-svg { background: #0b1238; position: relative; }
/* keep the drawing in view while the controls on the left are being used */
.sim .stage-svg { position: sticky; top: 96px; z-index: 5; }
.stage-svg svg { width: 100%; height: auto; display: block; }
.stage-legend { position: absolute; left: 14px; top: 10px; color: #9fb0e0; font-size: .8rem; font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; }
.anim-btn { position: absolute; right: 12px; top: 10px; }
.readout { display: flex; flex-wrap: wrap; gap: 2px; background: var(--line); margin-top: 18px; border: 1px solid var(--line); }
.readout div { background: #fff; padding: 14px 16px; flex: 1 1 130px; }
.readout span { font-size: .8rem; color: var(--muted); display: block; }
.readout b { font-family: var(--display); font-size: clamp(1.25rem, 1.7vw, 1.6rem); color: var(--navy); white-space: nowrap; }
.readout b small { font-size: .95rem; font-weight: 500; }
.status { margin-top: 14px; padding: 12px 16px; font-size: .95rem; border-left: 4px solid var(--ok); background: #eaf7ef; }
.status.bad { border-color: var(--warn); background: #fdf0e8; }
.model-out { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px; background: var(--navy); color: #fff; flex-wrap: wrap; }
.model-out code { font-family: var(--display); font-size: 1.9rem; letter-spacing: .06em; color: var(--cyan-2); }

/* ---------- flipbook ---------- */
.book-shell { background: radial-gradient(ellipse at center, #2a3566 0%, #0c1233 70%); padding: 36px 16px 26px; }
.book-toolbar { display: flex; justify-content: center; align-items: center; gap: 12px; color: #fff; margin-top: 20px; flex-wrap: wrap; }
.book-toolbar button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; cursor: pointer; font-family: var(--display); font-size: 1.05rem; letter-spacing: .05em; }
.book-toolbar button:hover { background: var(--cyan); }
.book-toolbar select { padding: 8px; font: inherit; }
.book { position: relative; margin: 0 auto; width: min(1100px, 100%); aspect-ratio: 1.414 / 1; perspective: 2600px; }
.book .page { position: absolute; top: 0; width: 50%; height: 100%; background: #fff; overflow: hidden; }
.book .page.left { left: 0; box-shadow: inset -24px 0 30px -20px rgba(0,0,0,.35); }
.book .page.right { right: 0; box-shadow: inset 24px 0 30px -20px rgba(0,0,0,.35); }
.book .leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,.1,.2,1); z-index: 5; }
.book .leaf.fwd { right: 0; transform-origin: left center; }
.book .leaf.back { left: 0; transform-origin: right center; }
.book .leaf.fwd.turn { transform: rotateY(-180deg); }
.book .leaf.back.turn { transform: rotateY(180deg); }
.book .leaf > div { position: absolute; inset: 0; backface-visibility: hidden; background: #fff; overflow: hidden; }
.book .leaf > .backface { transform: rotateY(180deg); }
.pg { padding: 6% 7%; height: 100%; display: flex; flex-direction: column; font-size: clamp(7px, 1.05vw, 12.5px); line-height: 1.5; position: relative; }
.pg .pg-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: .6em; margin-bottom: 1em; font-family: var(--display); letter-spacing: .1em; color: var(--navy); text-transform: uppercase; font-size: 1.05em; }
.pg .pg-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: .9em; border-top: 1px solid var(--line); padding-top: .5em; }
.pg h3 { font-size: 2.1em; margin: 0 0 .2em; }
.pg h4 { font-size: 1.3em; margin: .6em 0 .3em; color: var(--navy); }
.pg p { margin: 0 0 .6em; }
.pg img { max-height: 30%; margin: .4em auto; object-fit: contain; }
.pg table { border-collapse: collapse; width: 100%; font-size: .88em; }
.pg th { background: var(--navy); color: #fff; font-weight: 500; padding: .35em .3em; }
.pg td { border-bottom: 1px solid var(--line); padding: .3em; text-align: center; }
.pg td:first-child { font-weight: 700; color: var(--navy); text-align: left; white-space: nowrap; }
.pg.cover { background: radial-gradient(ellipse at 70% 30%, #2a3f9a, #0b1030 75%); color: #fff; justify-content: space-between; }
.pg.cover h3 { color: var(--cyan-2); font-size: 3.6em; text-transform: uppercase; line-height: 1; }
.pg.cover .big { font-family: var(--display); font-size: 1.6em; }
.pg.cover svg.bel, .pg.cover img.bel { width: 100%; height: auto; max-height: none; display: block; margin: 0 auto; }
.pg.back-cover { background: var(--navy); color: #cfd6ee; justify-content: center; text-align: center; }
.book-empty { background: transparent !important; box-shadow: none !important; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .9rem; display: block; margin-bottom: 4px; color: var(--ink); }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); font: inherit; background: #fff; }
.form-grid textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); padding: 20px 22px 22px; margin: 0 0 22px; }
legend { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); padding: 0 8px; }
.cart-list { list-style: none; padding: 0; margin: 0 0 12px; }
.cart-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-2); padding: 8px 12px; margin-bottom: 6px; }
.cart-list button { border: 0; background: none; color: var(--warn); cursor: pointer; font-size: 1.2rem; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { border-top: 3px solid var(--cyan); background: var(--bg-2); padding: 20px; }
.person b { font-family: var(--display); font-size: 1.4rem; color: var(--navy); display: block; }

/* knowledge */
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.kbox { border: 1px solid var(--line); padding: 26px; background: #fff; }
.kbox h3 { font-size: 1.4rem; }
.terms { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
.terms dt { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.terms dd { margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.steps div { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 14px; }
.steps div::before { content: '0' counter(s); font-family: var(--display); font-size: 2.4rem; color: var(--cyan); font-weight: 700; display: block; line-height: 1; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: #0a0f2c; color: #aeb8d8; padding: 64px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #aeb8d8; display: block; padding: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

.draft-flag { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--warn); color: #fff; font-size: .78rem; padding: 4px 10px; opacity: .92; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 12px 22px; z-index: 120; transition: transform .3s; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 84px 0 auto 0; background: var(--navy); flex-direction: column; padding: 10px 24px 24px; display: none; }
  .nav.open { display: flex; }
  .burger { display: block; }
  .tools { margin-left: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .intro, .split, .finder, .sim, .modal .top { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .filters { position: static; }
  .sim-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  /* small screens: drawing on top and pinned under the header, controls scroll beneath it */
  .sim { display: flex; flex-direction: column; }
  .sim-stage { display: contents; }
  .sim .stage-svg { order: 0; top: 84px; box-shadow: 0 6px 14px rgba(5,10,30,.25); }
  .sim-panel { order: 1; }
  .sim-stage > :not(.stage-svg) { order: 2; margin-left: 16px; margin-right: 16px; }
  .sim-stage > :last-child { margin-bottom: 16px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 170px; }
  .photo-grid .ph:first-child, .photo-grid .photo:first-child { grid-row: auto; }
  .readout div { flex-basis: 40%; }
  .sim .stage-svg { top: 68px; }
  .result { grid-template-columns: 80px 1fr; }
  .result img { width: 80px; height: 64px; }
  .result > :last-child { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .logo .sub { display: none; }
  .side-tab { display: none; }
  .book { aspect-ratio: 0.707 / 1; }
}
@media (max-width: 420px) {
  .site-header .bar { gap: 10px; height: 68px; }
  .nav { inset: 68px 0 auto 0; }
  .logo svg { width: 36px; height: 36px; }
  .logo .name { font-size: 1.45rem; }
  .tools { gap: 8px; font-size: 1rem; }
  .modal .top, .modal .sec { padding: 20px; }
  .modal h2 { font-size: 2rem !important; }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: stretch; min-height: auto; padding: 120px 0 40px; }
  .hero .media-note { position: static; margin: 28px 16px 0; }
  .hero .bg .hero-pic { width: 78%; right: -16%; opacity: .32; }
}

/* ---------- v2 brand theme: light silver hero + navy header text ---------- */
.site-header .logo, .nav a, .tools, .lang button, .cart-link { color: var(--navy); }
.site-header .logo .sub { color: var(--steel); font-size: .7rem; line-height: 1.35; border-left: 1px solid #c3cad6; padding-left: 12px; margin-left: 2px; }
.cart-link svg { stroke: currentColor; }
.burger span { background: var(--navy); }
.site-header.solid, .site-header.always { background: rgba(255,255,255,.97); box-shadow: 0 2px 18px rgba(20,34,61,.12); }
.nav a:hover, .nav a.active { border-color: var(--red); }
@media (max-width: 1080px) { .nav { background: #fff; box-shadow: 0 12px 20px rgba(20,34,61,.12); } }

.hero { background: #eef1f5; color: var(--ink); }
.hero .bg { background: linear-gradient(180deg, #f7f8fa 0%, #e9edf2 100%); }
.hero .bg::before { content: ''; position: absolute; inset: auto 0 0 0; height: 58%; background: url(../img/hero-waves.jpg) center bottom / cover no-repeat; }
.hero .bg .arc { position: absolute; right: 0; top: 0; width: 34%; height: 46%; background: url(../img/hero-arc.jpg) right top / cover no-repeat; -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 30%, transparent 72%); mask-image: radial-gradient(ellipse at 100% 0%, #000 30%, transparent 72%); }
.hero .bg::after { background: linear-gradient(90deg, rgba(244,246,249,.97) 0%, rgba(244,246,249,.82) 42%, rgba(244,246,249,0) 72%); }
.hero .bg .hero-pic { z-index: 1; width: 54%; right: -1%; top: 50%; opacity: 1; }
.hero h1 { color: var(--navy); }
.hero h1 .w { color: var(--ink); }
.hero .claim { color: #33405a; font-weight: 400; }
@media (min-width: 1081px) { .hero .claim { max-width: min(820px, 47vw); } }
.hero .kpi { border-color: rgba(28,55,100,.35); color: var(--navy); background: rgba(255,255,255,.6); }
.hero .kpi i { background: var(--red); box-shadow: 0 0 10px rgba(200,32,47,.6); }
.hero .btn:not(.solid) { color: var(--navy); }
.hero .btn:not(.solid):hover { background: var(--navy); color: #fff; }
.hero .eyebrow { color: var(--red); }
.hero .ph { background: rgba(255,255,255,.75); border-color: #9aa6c2; color: #56617d; }
.hero .ph b { color: var(--navy); }
.hero .ph::before { filter: none; }
.btn.solid:hover { background: var(--red); border-color: var(--red); }

.tile:nth-child(1) { background: var(--navy); }
.tile:nth-child(2) { background: var(--steel); }
.tile:nth-child(3) { background: var(--navy-2); }
.tile:nth-child(4) { background: #13284a; }
.tile::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.tile:hover::before { transform: scaleX(1); }

.page-hero { background: linear-gradient(120deg, #f6f7f9 0%, #e6ebf1 100%); color: var(--ink); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%; background: url(../img/hero-arc.jpg) right center / cover no-repeat; -webkit-mask-image: radial-gradient(ellipse at 100% 30%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 100% 30%, #000 25%, transparent 75%); opacity: .9; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--navy); }
.page-hero p { color: #45526b; }
.crumbs, .crumbs a { color: var(--steel); }

.side-tab { background: var(--navy); border-left: 4px solid var(--red); }
.side-tab:hover { background: var(--red); }
.dark-band { background: var(--navy); }
.site-footer { background: #0f1f3d; }
.stage-svg, .feature-visual { background: #13284a; }
.soon { background: linear-gradient(110deg, var(--navy-2) 0%, var(--navy) 70%); }
.soon .q { color: #fff; }
.soon .q::after { content: ''; display: block; width: 80px; height: 6px; background: var(--red); margin: 14px auto 0; transform: skewX(-35deg); }

.pg.cover { background: #f1f4f8 url(../img/hero-waves.jpg) center bottom / 100% auto no-repeat; color: var(--ink); }
.pg.cover h3 { color: var(--navy); }
.pg.cover .big { color: var(--navy); }
.pg.back-cover { background: var(--navy); }

.logo .kylogo { width: auto; flex: none; display: block; }
.site-footer .logo .kylogo { height: 48px; }
@media (max-width: 420px) { .logo .kylogo { height: 34px; } .site-header .logo .sub { display: none; } }
.hero .eyebrow::before { content: ''; display: inline-block; width: 22px; height: 4px; background: var(--red); transform: skewX(-35deg); margin-right: 10px; vertical-align: middle; }

/* ---------- v2 premium polish ---------- */
body { font-size: 16.5px; line-height: 1.8; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
h1, h2 { letter-spacing: .02em; }
h2 { font-weight: 700; }
.lead { line-height: 1.85; }
section { padding: 112px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .92rem; letter-spacing: .22em; }
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--red); transform: skewX(-35deg); flex: none; }
.hero .eyebrow::before { width: 26px; height: 3px; margin: 0; }
.dark-band .eyebrow, .soon .eyebrow { color: #e9a3a9 !important; }
.head-row { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 48px; }
.dark-band .head-row { border-color: rgba(255,255,255,.14); }

/* buttons: hairline + sliding arrow */
.btn { font-size: 1.12rem; padding: 15px 32px; border-width: 1px; letter-spacing: .1em; position: relative; overflow: hidden; transition: color .3s, background .3s, border-color .3s, box-shadow .3s; }
.btn.solid { box-shadow: 0 10px 30px -12px rgba(28,55,100,.6); }
.btn.solid:hover { box-shadow: 0 14px 34px -12px rgba(200,32,47,.55); }
.btn .arr, .more .arr { display: inline-block; transition: transform .3s; }
.btn:hover .arr, .card:hover .more .arr { transform: translateX(6px); }

/* cards: no hard border, soft depth, image zoom */
.card { border: 0; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20,34,61,.35); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,34,61,.45); }
.card .img { background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #eef1f5 70%); overflow: hidden; }
.card .img img, .card .img svg { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .img img, .card:hover .img svg { transform: scale(1.06); }
.card .body { padding: 26px 28px 30px; border-top: 3px solid transparent; transition: border-color .3s; }
.card:hover .body { border-top-color: var(--red); }
.card .tag { font-size: .85rem; letter-spacing: .16em; color: var(--steel); }

/* stats: large thin numerals */
.stats { background: transparent; border: 0; gap: 0; }
.stat { background: transparent; border-left: 1px solid var(--line); padding: 26px 30px; }
.stat b { font-weight: 500; font-size: 3.6rem; letter-spacing: .01em; }
.stat b small { color: var(--red); }

/* dark bands: brushed-metal sheen */
.dark-band, .service { background: linear-gradient(160deg, #1f3c6c 0%, #17305a 45%, #112443 100%); }
.services { background: rgba(255,255,255,.08); }
.service { transition: background .3s; }
.service:hover { background: linear-gradient(160deg, #26477e 0%, #1a3664 100%); }
.service svg { stroke: #e9a3a9; }

/* tiles: taller, refined */
.tile { min-height: 300px; padding: 44px 36px 38px; }
.tile h3 { font-size: 1.7rem; letter-spacing: .06em; }
.tile svg { opacity: .9; transition: transform .4s; }
.tile:hover svg { transform: translateY(-6px); }

/* header: hairline when solid */
.site-header.solid, .site-header.always { box-shadow: 0 1px 0 rgba(20,34,61,.08), 0 10px 30px -20px rgba(20,34,61,.3); backdrop-filter: saturate(1.4) blur(10px); background: rgba(255,255,255,.88); }
.nav a { font-size: 1.02rem; letter-spacing: .08em; padding: 8px 13px; }

/* hero: gentle float */
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }
.hero .bg .hero-pic { animation: float 7s ease-in-out infinite; }
@media (max-width: 1080px) { /* phones/tablets: product image sits below the buttons instead of behind the text */
  .hero { padding-bottom: calc(min(560px, 96vw) * .8 + 10px); }
  .hero .bg .hero-pic { width: min(560px, 96vw); top: auto; bottom: 0; right: 50%; transform: translateX(50%); opacity: 1; animation: none; }
}
.hero h1 { font-weight: 900; line-height: 1.12; }
.hero .scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 1px; height: 54px; background: linear-gradient(var(--navy), transparent); }
.hero .scroll-cue::after { content: ''; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* photo placeholders: quieter */
.ph { border: 1px dashed #b4bdcc; background: linear-gradient(135deg, #f7f8fa, #eef1f5); }
.photo-grid.even .ph:first-child, .photo-grid.even .photo:first-child { grid-row: auto; }

/* footer */
.site-footer { background: linear-gradient(180deg, #13284a, #0c1a33); }
.site-footer .tagline { font-family: var(--display); font-size: 1.4rem; letter-spacing: .12em; color: #fff; margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .tagline span { color: #e9a3a9; }

/* reveal on scroll */
.rv-in { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv-in.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-in { opacity: 1; transform: none; transition: none; }
  .hero .bg .hero-pic, .hero .scroll-cue::after { animation: none; }
}
.draft-flag { font-size: .72rem; opacity: .75; }
@media (max-width: 640px) { section { padding: 72px 0; } .stat { padding: 18px; } .stat b { font-size: 2.6rem; } .hero .scroll-cue { display: none; } }
.btn.anim-btn { position: absolute; right: 12px; top: 10px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.nav a { white-space: nowrap; }
html[lang="en"] .nav a { font-size: .95rem; padding: 8px 9px; letter-spacing: .05em; }
.site-header .logo .sub { white-space: nowrap; }
@media (max-width: 1280px) { .site-header .logo .sub { display: none; } }

/* about: milestones */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.timeline li { position: relative; padding: 28px 24px 0 0; }
.timeline li::before { content: ''; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.timeline li:first-child::before, .timeline li.next::before { background: var(--red); }
.timeline li.next::before { background: #fff; border: 3px solid var(--red); box-sizing: border-box; }
.timeline b { font-family: var(--display); font-size: 2rem; color: var(--red); display: block; line-height: 1; margin-bottom: 10px; }
.timeline h3 { font-size: 1.3rem; margin-bottom: .3em; }
.timeline p { color: var(--steel); margin: 0; }
@media (max-width: 1080px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--navy); padding-left: 24px; }
  .timeline li { padding: 0; } .timeline li::before { top: 4px; left: -33px; } }

/* about: plant map */
.map { display: flex; flex-direction: column; gap: 14px; }
.map iframe { width: 100%; min-height: 320px; border: 0; border-radius: 4px; box-shadow: 0 8px 28px rgba(28,55,100,.12); background: #e9edf2; }
.map .btn { align-self: flex-start; }

/* about: five application fields */
.cards.ind5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cards.ind5 .eyebrow { color: var(--red); font-size: 1.4rem; margin-bottom: .3em; }
@media (max-width: 1080px) { .cards.ind5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.ind5 { grid-template-columns: 1fr; } }

/* every page: "next step" band above the footer */
.next-steps { background: var(--silver); padding: 56px 0; border-top: 1px solid var(--line); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.next-card { display: block; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 22px 24px 20px; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.next-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10,20,60,.14); border-top-color: var(--red); }
.next-card b { font-family: var(--display); font-size: 1.6rem; color: var(--red); line-height: 1; }
.next-card h3 { margin: 8px 0 6px; font-size: 1.4rem; color: var(--navy); }
.next-card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* shop-floor clips and photos (portrait, 9:16) */
.clip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.clip-grid figure { margin: 0; aspect-ratio: 9 / 16; min-height: 0; }
.clip-grid .photo img { height: 100%; }
.clip { position: relative; overflow: hidden; background: #111; }
.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(12, 24, 48, .78)); }
@media (max-width: 900px) { .clip-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== visual effects (fx() in common.js) ===== */
.fx-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), #4f7fd8 60%, var(--red)); pointer-events: none; }

/* hero: entrance, mouse parallax, light sweep on the product */
.hero { --mx: 0; --my: 0; }
#heroBellows { position: absolute; inset: 0; z-index: 1; transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0) perspective(1400px) rotateY(calc(var(--mx) * 7deg)) rotateX(calc(var(--my) * -5deg)); transform-origin: 75% 50%; }
.fx .hero .bg::before { transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 8px), 0) scale(1.04); }
.fx .hero .bg .arc { transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 14px), 0); }
.hero .bg .hero-sheen { pointer-events: none; aspect-ratio: 2156 / 1760; -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 48%, rgba(170,200,255,.35) 52%, transparent 62%) 0 0 / 300% 100% no-repeat; mix-blend-mode: soft-light; animation: float 7s ease-in-out infinite, sheen 6.5s cubic-bezier(.5,0,.3,1) 1.2s infinite; }
@keyframes sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -20% 0; } }
.fx .hero .wrap > * { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.fx .hero.fx-in .wrap > * { opacity: 1; transform: none; }
.fx .hero .wrap > :nth-child(2) { transition-delay: .1s; } .fx .hero .wrap > :nth-child(3) { transition-delay: .2s; } .fx .hero .wrap > :nth-child(4) { transition-delay: .3s; } .fx .hero .wrap > :nth-child(5) { transition-delay: .4s; } .fx .hero .wrap > :nth-child(6) { transition-delay: .5s; }
.fx .hero #heroBellows { opacity: 0; filter: blur(8px); transition: opacity 1.4s ease .25s, filter 1.4s ease .25s; }
.fx .hero.fx-in #heroBellows { opacity: 1; filter: none; }
@media (max-width: 1080px) { #heroBellows { transform: none; } .hero .bg .hero-sheen { animation: sheen 6.5s cubic-bezier(.5,0,.3,1) 1.2s infinite; } }

/* 3D tilt + glare on cards */
.fx-tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.fx-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.38), rgba(255,255,255,0) 55%); mix-blend-mode: soft-light; z-index: 3; }
.card .fx-glare, .next-card .fx-glare, .result .fx-glare { mix-blend-mode: normal; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), rgba(255,255,255,0) 45%); }
.fx-tilt:hover .fx-glare { opacity: 1; }
.fx-tilt:hover { box-shadow: 0 34px 60px -30px rgba(20,34,61,.5); }

/* buttons: metal light sweep on hover */
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); pointer-events: none; transition: none; }
.btn:hover::after { left: 130%; transition: left .7s cubic-bezier(.3,.6,.2,1); }

/* dark bands: slow brushed-metal light drifting across */
.dark-band { position: relative; overflow: hidden; }
.dark-band::before { content: ''; position: absolute; inset: -20% -10%; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 45%, rgba(140,175,255,.08) 50%, transparent 60%); background-size: 250% 100%; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.dark-band > * { position: relative; }
@keyframes drift { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* photos: room for the scroll parallax */
.photo img.fx-par { transform: scale(1.1); will-change: transform; }

/* page tops on inner pages: arc image drifts in */
.fx .page-hero::after { animation: arcIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes arcIn { from { opacity: 0; transform: translateX(40px) scale(1.05); } to { opacity: .9; transform: none; } }
.fx .page-hero .wrap > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.fx .page-hero .wrap > :nth-child(2) { animation-delay: .1s; } .fx .page-hero .wrap > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fx .hero .wrap > *, .fx .hero #heroBellows { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero .bg .hero-sheen, .dark-band::before, .fx .page-hero::after, .fx .page-hero .wrap > * { animation: none !important; }
  .hero .bg .hero-sheen { display: none; }
  .btn::after { display: none; }
}

/* simulator: 3D model view + 2D/3D switch */
#draw3d { height: clamp(280px, 30vw, 440px); }
#draw3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#draw3d canvas.grab { cursor: grabbing; }
.view-seg { position: absolute; left: 14px; top: 10px; z-index: 2; display: inline-flex; border: 1px solid rgba(159,176,224,.5); }
.view-seg button { background: transparent; color: #9fb0e0; border: 0; padding: 4px 12px; font-family: var(--display); letter-spacing: .1em; font-size: .85rem; cursor: pointer; }
.view-seg button.on { background: #9fb0e0; color: #0b1238; }
.view-seg:not([hidden]) ~ .stage-legend { top: auto; bottom: 10px; }
.stage-legend { z-index: 2; pointer-events: none; }
@media (max-width: 640px) { #draw3d { height: 240px; } }

/* home: 3D simulator teaser */
.teaser3d { position: absolute; inset: 0; }
.teaser3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.teaser3d canvas.grab { cursor: grabbing; }

/* home: welded bellows (coming soon) render */
.soon-pic { display: block; width: min(100%, 420px); height: auto; margin: 20px auto 0; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }

/* ===== 2026-12-01 產品查找：導覽下拉選單 + 系列卡片 ===== */
.nav-dd { position: relative; display: flex; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 6px; }
.dd-arrow { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: none; grid-template-columns: repeat(3, auto); gap: 6px 36px; background: #fff; padding: 22px 28px 16px; box-shadow: 0 18px 40px rgba(20,34,61,.16); border-top: 2px solid var(--red); z-index: 60; }
.nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel { display: grid; }
.nav .dd-panel a { display: block; padding: 5px 0; border: 0; font-family: inherit; text-transform: none; letter-spacing: .02em; font-size: .95rem; color: var(--text); white-space: nowrap; }
.nav .dd-panel a:hover { color: var(--red); }
.nav .dd-panel a.dd-head { font-weight: 700; color: var(--navy); font-size: 1rem; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav .dd-panel a.dd-all { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--red); font-weight: 500; }
@media (max-width: 1080px) {
  .nav-dd { flex-direction: column; }
  .nav-dd .dd-arrow { display: none; }
  .dd-panel { position: static; transform: none; display: grid; grid-template-columns: 1fr; box-shadow: none; border-top: 0; padding: 0 0 8px 16px; gap: 0; }
  .nav .dd-panel a { padding: 4px 0; font-size: .9rem; }
  .nav .dd-panel a.dd-head { border-bottom: 0; margin: 6px 0 0; padding-bottom: 2px; }
  .nav .dd-panel a.dd-all { display: none; }
}

.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pf-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pf-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font: inherit; font-size: 1.05rem; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.pf-tabs button small { font-size: .8rem; color: var(--muted); margin-left: 2px; }
.pf-tabs button:hover { color: var(--navy); }
.pf-tabs button.on { color: var(--navy); font-weight: 700; border-color: var(--red); }
.pf-tools { display: flex; gap: 10px; padding: 8px 0; }
.pf-tools select, .pf-tools input { padding: 10px 12px; border: 1px solid var(--line); font: inherit; font-size: .95rem; background: #fff; }
.pf-tools input { width: 260px; }
.pf-h { display: flex; align-items: baseline; gap: 12px; font-size: 1.6rem; color: var(--navy); margin: 36px 0 16px; }
.pf-h small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pf-card { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); padding: 0; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pf-card:hover { border-color: var(--red); box-shadow: 0 10px 26px rgba(10,20,60,.1); transform: translateY(-2px); }
.pf-img { background: var(--bg-2); height: 200px; display: flex; align-items: center; justify-content: center; padding: 10px 16px; }
.pf-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pf-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pf-code { font-family: var(--display); letter-spacing: .1em; color: var(--red); font-size: .95rem; }
.pf-card h3 { margin: 2px 0 10px; font-size: 1.2rem; color: var(--navy); }
.pf-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .9rem; }
.pf-card dt { color: var(--muted); }
.pf-card dd { margin: 0; }
.pf-hit { margin: 10px 0 0; font-size: .85rem; background: #fdf0f1; color: var(--red); padding: 4px 8px; }
.pf-more { margin-top: auto; padding-top: 14px; font-family: var(--display); color: var(--navy); font-size: 1.05rem; }
.pf-none { padding: 40px 0; color: var(--muted); }
.pf-add { border: 1px solid var(--navy); background: #fff; color: var(--navy); padding: 3px 10px; font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.pf-add:hover { background: var(--navy); color: #fff; }
.pf-add.done { border-color: #2e7d4f; color: #2e7d4f; background: #fff; }
@media (max-width: 1080px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-tools, .pf-tools input { width: 100%; }
  .pf-tools select { flex: 0 0 auto; }
  .pf-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .pf-tabs button { white-space: nowrap; padding: 10px 12px; }
  .pf-img { height: 170px; }
}
/* 從選單點進來的卡片：輕輕浮起、金屬光澤掃過、頂端細線展開，再慢慢落回 */
.pf-card { position: relative; overflow: hidden; }
.pf-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--navy), var(--red)); transform: scaleX(0); transform-origin: left; opacity: 0; z-index: 2; pointer-events: none; }
.pf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; z-index: 1; }
@keyframes pfLift {
  0%   { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(20,34,61,0); border-color: var(--line); }
  22%  { transform: translateY(-10px) scale(1.018); box-shadow: 0 28px 56px rgba(20,34,61,.16), 0 6px 14px rgba(20,34,61,.06); border-color: rgba(28,55,100,.35); }
  70%  { transform: translateY(-10px) scale(1.018); box-shadow: 0 28px 56px rgba(20,34,61,.16), 0 6px 14px rgba(20,34,61,.06); border-color: rgba(28,55,100,.35); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(20,34,61,0); border-color: var(--line); }
}
@keyframes pfLine { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 75% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pfSheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.pf-card.pf-pop { animation: pfLift 2.6s cubic-bezier(.22,1,.36,1); will-change: transform, box-shadow; }
.pf-card.pf-pop::before { animation: pfLine 2.6s cubic-bezier(.22,1,.36,1); }
.pf-card.pf-pop::after { animation: pfSheen 1.1s cubic-bezier(.4,0,.2,1) .35s; }
@media (prefers-reduced-motion: reduce) { .pf-card.pf-pop { animation: none; } .pf-card.pf-pop::after { animation: none; } .pf-card.pf-pop::before { animation: pfLine 2.6s linear; } }
/* 關於頁設備照：統一棚拍背景，整張填滿 */
.photo.eq { background: #eef1f5; }
.photo.eq img { object-fit: cover; object-position: center 40%; }
@media (max-width: 1080px) { .photo.eq { background: #edf0f4; } .photo.eq img { object-fit: contain; } }
/* 型錄封面：用真的產品照（去背），稍微放大、斜放，底下有陰影 */
.pg.cover img.bel.real { mix-blend-mode: normal; filter: drop-shadow(0 18px 22px rgba(20,34,61,.22)); transform: scale(1.12); }
