/* ==========================================================================
   UXKB — design tokens
   Colours taken from the official CI manual (UXKB Corporate Identity.jpg):
     Primary   PANTONE 7739 C  deep green
     Secondary PANTONE 7506 C  cream
     Beige     PANTONE 4685 C
     Deep grey PANTONE 425 C

   Type: read off the live Canva design, NOT the CI manual. The manual specifies
   Montserrat + Noto Sans/Serif KR, but the actual design loads:
     - Nanum Gothic   -> every Korean string (headings, body, cards, CTA)
     - TT Ramillas    -> the language switcher links only
     - TT Interphases -> loaded by Canva but not used in the design
   (Confirmed via the font file URLs Canva serves; its CSS family names are
   obfuscated, e.g. YAFdJhcKBrg_0 = NanumGothic-Regular.)

   Nanum Gothic is OFL and served from Google Fonts — safe to use.
   TT Ramillas is a commercial TypeType face licensed for use *inside Canva*;
   we cannot self-host it, so --f-serif is a substitute. See README.
   ========================================================================== */

:root {
  --green: #1f5c3d;
  --green-deep: #17452e;
  --cream: #f5edd0;
  --beige: #d8b895;
  --grey: #3c3c3b;
  --ink: #1c1c1b;
  --muted: #6f6f6d;
  --line: #e3e1dc;
  --bg: #ffffff;
  --bg-soft: #faf8f4;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 64px);

  /* Nanum Gothic carries the whole design, headings included — it is a gothic
     (sans) face, so headings must NOT fall back to a serif. */
  /* "Noto Sans Thai" sits in the stack so Thai glyphs (absent from Nanum Gothic)
     render in a proper webfont across platforms; Latin/Korean still use Nanum. */
  --f-display: "Nanum Gothic", "Noto Sans Thai", -apple-system, "Apple SD Gothic Neo", sans-serif;
  --f-body: "Nanum Gothic", "Noto Sans Thai", -apple-system, "Apple SD Gothic Neo", sans-serif;
  /* Stand-in for TT Ramillas (commercial) on the language switcher only. */
  --f-serif: "Gowun Batang", "Noto Serif KR", Georgia, serif;
}

/* Vietnamese: Nanum Gothic carries Latin base letters but mangles Vietnamese
   tone/vowel marks (they detach and float). Swap the whole VN locale to
   Be Vietnam Pro, which is built for Vietnamese; other locales are untouched. */
html[lang="vi-VN"] {
  --f-display: "Be Vietnam Pro", -apple-system, sans-serif;
  --f-body: "Be Vietnam Pro", -apple-system, sans-serif;
  --f-serif: "Be Vietnam Pro", "Gowun Batang", Georgia, serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.2rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.7rem + 4vw, 5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* CJK breaks mid-word by default, which splits Korean eojeol like "단단한"
     across lines. keep-all restricts breaks to spaces, matching Canva. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

/* Top-right page menu, matching the Canva nav. */
.pagenav { border-bottom: 1px solid var(--line); }
.pagenav .wrap {
  display: flex; justify-content: flex-end; gap: clamp(12px, 2vw, 28px);
  padding-block: 10px;
}
.pagenav a {
  text-decoration: none;
  font-size: var(--step--1);
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.pagenav a:hover { color: var(--ink); }
.pagenav a[aria-current="page"] { color: var(--ink); }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 18px;
}
.logo img { width: clamp(88px, 12vw, 120px); height: auto; }

.langs { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); }
.langs a {
  text-decoration: none;
  /* Canva sets these links in TT Ramillas at 25.2px / -0.5px tracking. */
  font-family: var(--f-serif);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.langs a:hover { color: var(--green); }
.langs a[aria-current="true"] { border-bottom-color: transparent; opacity: 0.45; }

.cta-pill {
  display: inline-block; white-space: nowrap;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 9px 22px; text-decoration: none;
  font-size: var(--step--1);
  transition: transform 0.3s ease, background 0.3s var(--ease), color 0.3s var(--ease);
}
.cta-pill:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(28px, 4vw, 56px); }
.hero-head { display: flex; align-items: center; gap: clamp(16px, 4vw, 48px); justify-content: flex-end; padding-right: 3%; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  /* Breaks come from headline_lines in the content JSON, not from width. */
  max-width: none;
}
.hero-arrow { flex: none; color: var(--ink); }
.hero-arrow svg { width: clamp(60px, 9vw, 120px); height: auto; }

/* Canva's hero is an overlapping collage, not an even 4-up grid: the images
   differ in height and vertical offset, and the first three overlap by ~20px.
   Positions come from _about_slots.json as percentages of the collage box,
   so the whole thing scales with the viewport. */
.gallery {
  position: relative;
  width: 100%;
  margin: clamp(28px, 4vw, 56px) auto 0;
  height: 0;
}
/* Hero: 4 equal-height tiles in a neat row (per client's correct reference). */
.hgallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: clamp(32px, 4vw, 60px);
}
.hg-item { margin: 0; overflow: hidden; }
.hg-item img {
  width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; display: block;
  transition: transform 0.6s var(--ease);
}
.hg-item:hover img { transform: scale(1.04); }
.g-item { position: absolute; margin: 0; overflow: hidden; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.g-item:hover img { transform: scale(1.04); }
.g-item:hover { z-index: 2; }

/* ---------- dark about ---------- */
.about {
  background: var(--ink); color: #fff;
  padding-block: clamp(48px, 8vw, 110px);
}
.about p { color: rgba(255, 255, 255, 0.78); }

/* "K-Beauty를 다시 설계하다" + the long down arrow to its right */
.kb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.kb-head h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.2; margin: 0;
}
.kb-arrow { flex: none; color: var(--ink); }
.kb-arrow svg { width: 22px; height: clamp(56px, 8vw, 90px); }

/* Brand identity: big UXKB title, pill label, then a vertical numbered list. */
.identity .id-title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); margin: 0; }
.pill {
  display: inline-block; margin: 12px 0 clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: var(--step--1); color: var(--muted);
}
.id-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 38px); }
.id-item { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 34px); align-items: start; }
.id-no { font-family: var(--f-display); font-size: var(--step-2); color: var(--ink); line-height: 1; }
.id-item h3 { font-size: var(--step-1); font-weight: 500; margin: 0 0 8px; }
.id-item p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.85; }

/* ---------- statement ---------- */
.statement { padding-block: clamp(48px, 8vw, 110px); text-align: center; }
.statement .kicker { color: var(--green); font-size: var(--step-1); margin: 0 0 18px; }
.statement p { margin: 0; color: var(--muted); }

/* ---------- generic section ---------- */
.section { padding-block: clamp(48px, 8vw, 110px); }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin: 0 0 14px;
}
.section h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.4; margin: 0 0 clamp(28px, 4vw, 56px);
  max-width: 22ch;
}
/* Lab 頁標題比一般 section 大一級(對齊 SVG display 尺寸) */
#lab.about h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); }
.lab-bigtitle { font-family: var(--f-display); font-weight: 400; color: #fff; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); margin: 0 0 24px; }
.lab-lead { color: #fff; font-size: var(--step-1); line-height: 1.5; margin: 0 0 20px; }
.lab-hero + .section .kb-head h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); }
.section.soft h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }

.cards { display: grid; gap: clamp(20px, 3vw, 40px); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }

.card { border-top: 1px solid var(--line); padding-top: 22px; }
.card .no { font-family: var(--f-display); color: var(--beige); font-size: var(--step-1); }
.card h3 { font-size: var(--step-1); font-weight: 500; margin: 6px 0 12px; }
.card p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.85; }

/* ---------- lab (Canva page 2) ---------- */
.lab-grid {
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.lab-grid p { margin: 0; color: var(--muted); }
.lab-grid img { width: 100%; height: auto; }

.pull {
  margin: 28px 0 0; padding-left: 20px;
  border-left: 2px solid var(--green);
  font-size: var(--step-1); color: var(--ink); line-height: 1.6;
}
.pull span { display: block; margin-top: 10px; font-size: var(--step--1); color: var(--muted); }

.certs { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); padding-top: 24px; }
.certs h3 { font-weight: 400; font-size: var(--step-1); margin: 0 0 16px; max-width: 30ch; }
.certs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.certs li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: var(--step--1); color: var(--muted);
}

/* ---------- closing quote ---------- */
.closing { background: var(--ink); color: #fff; padding-block: clamp(48px, 8vw, 100px); text-align: center; }
.closing blockquote {
  margin: 0 auto; max-width: 26ch;
  font-size: var(--step-2); line-height: 1.5; font-weight: 400;
}
.closing p { margin: 22px auto 0; max-width: 46ch; color: rgba(255, 255, 255, 0.7); font-size: var(--step--1); }

/* ---------- science ---------- */
.science-stat {
  font-family: var(--f-display); font-size: var(--step-4);
  color: var(--green); line-height: 1; margin: 0 0 8px;
}

/* ---------- what we do ---------- */
.whatwedo { background: var(--green); color: #fff; padding-block: clamp(48px, 8vw, 110px); }
.whatwedo .eyebrow { color: var(--cream); }
.whatwedo h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 0; max-width: 24ch; }

/* ---------- footer ---------- */
/* Canva's footer is light and left-aligned, headed by a large "UXKB 랩 문의".
   It is not a dark multi-column footer, and it carries no copyright line. */
.site-footer { background: var(--bg); color: var(--muted); padding-block: clamp(48px, 8vw, 110px); }
.site-footer h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--step-3); color: var(--ink); margin: 0 0 clamp(24px, 3vw, 40px);
}
.site-footer p { margin: 0 0 18px; line-height: 1.9; }
.site-footer a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--green); }

/* ---------- scroll-reveal ----------
   Elements fade + rise as they enter the viewport, staggered per group.
   Note: this is an addition, not a replication — the Canva design has no
   entrance animations (see README).

   Gated behind .js so the content is never invisible when the script does not
   run. Without this, a blocked or failed app.js would leave the whole page
   blank, since the resting state is opacity:0. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .lab-grid { grid-template-columns: 1fr; }
  .kb-head h2 { font-size: var(--step-2); }
  .cards.c4, .cards.c3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pagenav .wrap { justify-content: flex-start; overflow-x: auto; gap: 16px; }
  .bar { flex-wrap: wrap; gap: 12px; }
  .langs { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; row-gap: 8px; }
  .hero-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero h1 { max-width: none; }
  .hero-arrow svg { width: 72px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: clamp(160px, 42vw, 240px); }
  .cards.c4, .cards.c3, .cards.c2 { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .hero-arrow { display: none; }
  body { color: #000; }
}

/* ============================================================
   About 頁：依 SVG 匯出重建的區塊（拼貼牆／裝置圖／漸層／技術媒體）
   絕對定位 + padding-top 比例框，隨視窗縮放
   ============================================================ */

/* 深色 About：照片在上、標題、雙環、雙欄內文 */
.about .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: "head photo" "cols cols";
  column-gap: clamp(28px, 5vw, 64px); row-gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.about-head { grid-area: head; }
.about-photo { grid-area: photo; width: 100%; height: auto; border-radius: 2px; }
.about-head h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); margin: 0 0 28px; }
.rings { display: block; width: 44px; }
.rings svg { width: 100%; height: auto; }
.about-cols { grid-area: cols; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); }
/* min-width:0 lets these grid columns actually shrink so long CJK copy wraps
   instead of blowing the track wider than its container (see ct-spec note). */
.about .wrap > *, .about-cols > * { min-width: 0; }
.about-cols p { color: rgba(255,255,255,0.82); margin: 0; font-size: var(--step-0); line-height: 1.75; overflow-wrap: anywhere; }
.about .kicker { color: #fff; }

/* 拼貼牆 / 裝置圖 / 漸層：共用絕對定位盒 */
.wall, .devices, .grads { position: relative; width: 100%; height: 0; margin-inline: auto; }
.wall-wrap { padding-block: 0 clamp(40px, 6vw, 80px); }
.wall { width: 100%; }
.grad-wrap { padding-block: clamp(24px,4vw,48px) clamp(48px, 8vw, 110px); }
.grads { width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.grad-wrap .g-item { position: static; width: 100%; }
.grad-wrap .g-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.g-item { position: absolute; margin: 0; overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-item:hover { z-index: 2; }
.g-item:hover img { transform: scale(1.04); }

/* 品牌識別：左列表 + 右裝置圖 */
.id-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.devices { align-self: start; position: relative; min-height: 340px; }
/* 平板+手機外框用 CSS 畫(原始外框素材缺失) */
.tablet { position: relative; width: 74%; margin-left: auto; border: 10px solid #1c1c1b; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.tablet img { width: 100%; height: auto; display: block; }
.phone { position: absolute; left: 0; bottom: -6%; width: 30%; border: 7px solid #1c1c1b; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.22); background:#1c1c1b; }
.phone img { width: 100%; height: auto; display: block; border-radius: 20px; }

/* 技術區：左列表 + 右出血影片 */
.tech { position: relative; padding-block: clamp(48px, 8vw, 110px); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tech h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 0 0 14px; }
.tech-media { position: relative; padding-top: 44%; }
/* 水滴右上(不出血,留右白);模特兒下方靠左,兩者垂直錯開 */
.tm-top { position: absolute; right: 8%; top: 0; width: 44%; height: auto; z-index: 2; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.tm-side { width: 58%; height: auto; display: block; margin: 0 auto 0 4%; }

/* 頁尾大幅影片封面 */
.bigmedia { margin-top: clamp(24px, 4vw, 48px); }
.bigmedia img { width: 76%; margin-inline: auto; height: auto; display: block; }

@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "cols"; }
  .about-cols, .id-grid, .tech-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { float: none; width: 60%; margin: 0 0 20px; }
  .tm-top { display: none; }
  .bigmedia img { width: 100%; }
}

/* 影片版位:與同位置的 img 一致填滿 */
.g-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-media video.tm-side { width: 72%; margin-left: auto; height: auto; display: block; }
.tech-media video.tm-top { position: absolute; right: 0; top: 0; width: 46%; height: auto; z-index: 2; }
.bigmedia video { width: 76%; margin-inline: auto; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  video[autoplay] { /* 瀏覽器多半仍會播,靠 JS 暫停 */ }
}

/* ============ Core Tech ============ */
.ct-cat { padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.ct-cat-grid { display: grid; grid-template-columns: 46% 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ct-cat-img { width: 100%; height: auto; display: block; }
.ct-cat-title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: clamp(20px,3vw,36px) 0 0; }
.ct-cat-right .eyebrow { text-align: right; font-size: var(--step-1); color: var(--ink); letter-spacing: 0; text-transform: none; margin-bottom: clamp(20px,3vw,36px); }
.ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3vw, 40px); }
.ct-list li { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.ct-no { font-family: var(--f-display); font-size: var(--step-2); color: var(--ink); line-height: 1; }
.ct-list h3 { font-size: var(--step-1); font-weight: 500; margin: 0 0 8px; }
.ct-list p { margin: 6px 0 0; color: var(--muted); font-size: var(--step--1); line-height: 1.8; display: block; }
.ct-spec { padding-block: clamp(40px, 6vw, 90px); overflow: hidden; }
.ct-spec.alt { background: var(--bg-soft); }
/* Media column is fixed wider than the text column (≈1.25:1) so the images stay
   the larger, generous size in every locale. This is set explicitly rather than
   left to 1fr:1fr because CSS grid's default min-width:auto let a short-text
   locale (Korean) steal width and render bigger images than a long-text locale
   (Chinese) — the sizes must not depend on text length. The .alt rows mirror the
   template so the media column is the wide one whether it sits left or right. */
.ct-spec-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ct-spec.alt .ct-spec-grid { grid-template-columns: 1fr 1.25fr; }
.ct-spec-grid > * { min-width: 0; }
.ct-spec.alt .ct-spec-media { order: 2; }

/* 規格區:兩張圖並排(對照 SVG),左右交錯由 ct-spec.alt 控制 */
.ct-spec-media { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: stretch; }
.ct-spec-media img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 3/4; background: #fff; }
.ct-spec-body h2 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 0 0 6px; }
.ct-spec-body .quote { color: var(--green); font-size: var(--step-1); margin: 0 0 24px; }
.ct-spec-list { list-style: none; margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.ct-spec-list li { font-size: var(--step--1); color: var(--muted); padding: 3px 0; }
.ct-steps { display: grid; gap: 18px; }
.ct-step h4 { font-size: var(--step-0); font-weight: 600; margin: 0 0 4px; }
.ct-step p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.8; }
@media (max-width: 760px) {
  .ct-cat-grid, .ct-spec-grid { grid-template-columns: 1fr; }
  .ct-spec.alt .ct-spec-grid { direction: ltr; }
  .ct-spec-img2 { position: static; width: 60%; margin-top: 12px; }
}

/* ============ PDRN Series ============ */
.pd-hero { padding-block: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); max-width: 52ch; }
.pd-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.25; margin: 6px 0 14px; }
.pd-sub { font-size: var(--step-0); color: var(--ink); margin: 0 0 12px; }
.pd-lead { color: var(--muted); margin: 0; }
.pd-prod { padding-block: clamp(24px, 3.5vw, 48px); border-bottom: 1px solid var(--line); }
/* 圖左(小、靠底) + 內容右;alt 反向 */
.pd-grid { display: grid; grid-template-columns: 30% 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.pd-prod.alt .pd-grid { grid-template-columns: 1fr 30%; }
.pd-prod.alt .pd-media { order: 2; }
.pd-media { margin: 0; align-self: center; display: flex; justify-content: center; align-items: center; }
/* 統一視覺高度:所有產品圖以相同最大高度呈現,寬度自動 → 大小協調 */
.pd-media img { width: auto; max-width: 100%; height: auto; max-height: calc(clamp(260px, 26vw, 360px) * var(--sc, 1)); object-fit: contain; display: block; }
/* 標題在內容欄頂 + PDP Link 靠右 */
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(12px, 2vw, 20px); }
.pd-head h2 { margin: 0; }
.pd-body h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.25; margin: 0 0 10px; }
.pd-tag { color: var(--green); font-size: var(--step-1); margin: 0 0 24px; }
.pd-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pd-feats li { color: var(--muted); font-size: var(--step--1); line-height: 1.8; padding-left: 16px; border-left: 2px solid var(--line); }
.pd-mtitle { font-size: var(--step-0); font-weight: 600; margin: 28px 0 12px; }
.pd-moments { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.pd-moments li { color: var(--muted); font-size: var(--step--1); line-height: 1.8; }
@media (max-width: 760px) {
  .pd-grid, .pd-prod.alt .pd-grid { grid-template-columns: 1fr; }
  .pd-prod.alt .pd-media { order: 0; }
}

/* ============ UXKB Lab ============ */
.lab-hero { margin: 0; }
.lab-hero img, .lab-hero video { width: 100%; height: auto; display: block; }
.lab-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.5vw, 20px); margin-top: clamp(24px, 4vw, 48px); }
.lab-photos img { width: 100%; aspect-ratio: 539/301; object-fit: cover; }
@media (max-width:640px){ .lab-photos { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 760px){ .lab-photos { grid-template-columns: 1fr; } }

/* 科學區水滴圖 */
.sci-media img { width: 100%; height: auto; display: block; }
/* whatwedo:大標 + 副標 + 右上三環 */
.whatwedo-sec { padding-block: clamp(40px, 6vw, 90px); }
.wd-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: start; }
.wd-h { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); margin: 0 0 20px; }
.wd-sub { color: var(--muted); margin: 0; line-height: 1.8; }
.wd-rings { width: clamp(120px, 16vw, 180px); }
.wd-rings svg { width: 100%; height: auto; }
@media (max-width: 760px){ .wd-grid { grid-template-columns: 1fr; } }




/* Lab 底部橫幅:認證/收尾文字疊在圖片上(對照 SVG) */
.lab-banner { position: relative; }
.lab-banner img { width: 100%; height: auto; display: block; }
.lab-overlay { position: absolute; color: #1c1c1b; max-width: 32%; }
.lab-overlay.tl { top: 8%; left: 5%; }
.lab-overlay.br { right: 3%; bottom: 14%; text-align: left; max-width: 26%; }
.lab-overlay h3 { font-size: var(--step-1); font-weight: 500; margin: 0 0 12px; }
.lab-overlay ul { margin: 0; padding: 0; list-style: none; }
.lab-overlay ul li { font-size: var(--step--1); line-height: 1.9; }
.lab-overlay blockquote { margin: 0 0 12px; font-size: var(--step-1); line-height: 1.5; }
.lab-overlay p { margin: 0; font-size: var(--step--1); line-height: 1.8; color: var(--muted); }
@media (max-width: 640px){ .lab-overlay { max-width: 60%; } .lab-overlay h3, .lab-overlay blockquote { font-size: var(--step-0); } }

/* Lab 품질 製程:左三環圖 + 右條列項目(對照 SVG,非三欄卡片) */
.proc-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.proc-rings { width: clamp(120px, 16vw, 180px); }
.proc-rings svg { width: 100%; height: auto; }
.proc-list { list-style: none; margin: 0; padding: 0; max-width: 58ch; }
.proc-list li { position: relative; padding-left: 18px; margin-bottom: 16px; font-size: var(--step--1); line-height: 1.8; color: var(--muted); }
.proc-list li::before { content: "•"; position: absolute; left: 0; color: var(--ink); }
.proc-list li strong { color: var(--ink); font-weight: 700; }
@media (max-width: 640px){ .proc-grid { grid-template-columns: 1fr; } }

/* ============ Contact 頁(對照 SVG:淺灰底、大標+箭頭、兩欄、社群)============ */
.contact-page { background: #ececec; min-height: 80vh; padding-block: clamp(48px, 9vw, 130px); }
.contact-head { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(48px, 8vw, 120px); }
.contact-head h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1.15; margin: 0; max-width: 14ch; }
.contact-arrow { flex: none; margin-top: clamp(12px, 2vw, 28px); }
.contact-arrow svg { width: clamp(80px, 12vw, 160px); height: auto; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 760px; margin-bottom: clamp(40px, 6vw, 80px); }
.ct-col h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); margin: 0 0 clamp(16px, 2.5vw, 28px); }
.ct-col p { margin: 0; line-height: 2; color: var(--grey); }
.ct-col a { color: inherit; text-decoration: none; }
.ct-col a:hover { color: var(--green); }
.contact-social { border-top: 1px solid rgba(0,0,0,.1); padding-top: clamp(28px, 4vw, 48px); display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); }
.contact-social h3 { font-size: var(--step-0); font-weight: 400; margin: 0; color: var(--grey); }
.soc-icons { display: flex; gap: 14px; }
.soc-icons a { width: 40px; height: 40px; border-radius: 999px; background: #fff; display: grid; place-items: center; color: var(--ink); }
@media (max-width: 640px){ .contact-cols { grid-template-columns: 1fr; } .contact-head { flex-direction: column; } }

/* PDRN 產品標題 + PDP Link 按鈕 */
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.pd-head h2 { margin: 0; }
.pdp-link { flex: none; white-space: nowrap; border: 1px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-size: var(--step--1); text-decoration: none; color: var(--ink); align-self: center; transition: background .3s var(--ease), color .3s var(--ease); }
.pdp-link:hover { background: var(--ink); color: #fff; }

/* PDRN 第一產品的 eyebrow + 引言段 */
.pd-eyebrow { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin: 0 0 12px; }
.pd-intro { color: var(--grey); line-height: 1.9; margin: 0 0 24px; }
