/* ==========================================================================
   Shelter Subsea 漫岳有限公司 — style.css
   視覺方向：A 深海工程檔案（全站深色）+ B 北歐精密的網格與留白
   色彩取自品牌 Logo；強調色為海事作業安全橙
   全站底色與 hero 收尾同為 #05101F，區塊間無明暗斷層
   ========================================================================== */

/* === TOKENS === */
:root {
  /* 深色系 */
  --abyss:     #05101F;   /* 最深，hero / footer */
  --deep:      #0A1A33;   /* 深區塊 */
  --deep-2:    #12294B;   /* 深區塊上的卡片 */
  --navy:      #1E4187;   /* 品牌主色，取自字標 */
  --navy-2:    #152D81;   /* S 記號暗面 */

  /* 亮色強調 */
  --cyan:      #6AD5FE;   /* S 記號高光 */
  --sky:       #2BA5E1;   /* 副標 SUBSEA TECHNOLOGY */
  --amber:     #FF8A1F;   /* 安全橙 — 作業服與機具真實色彩 */
  --amber-2:   #FFC066;

  /* 底色系（全站深色，與 hero 收尾同色，區塊間無斷層） */
  --paper:     #05101F;   /* 主背景 = hero 底部 */
  --paper-alt: #0A1A33;   /* 交錯區塊 */
  --surface:   #0E2140;   /* 卡片 */
  --surface-2: #14294C;   /* 卡片 hover */

  /* 文字 */
  --ink:       #EAF2F8;
  --ink-2:     rgba(234,242,248,0.68);
  --ink-3:     rgba(234,242,248,0.42);
  --line:      rgba(234,242,248,0.13);
  --line-2:    rgba(234,242,248,0.24);

  --on-dark:   #EAF2F8;
  --on-dark-2: rgba(234,242,248,0.66);
  --on-dark-3: rgba(234,242,248,0.38);
  --line-dark: rgba(234,242,248,0.14);

  --nav-h: 72px;
  --radius: 4px;

  --sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--amber); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* === 容器與區塊 === */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }
.bg-alt { background: var(--paper-alt); }
.on-dark { background: var(--deep); color: var(--on-dark); }
.on-dark h2, .on-dark h3 { color: var(--on-dark); }

/* 區塊之間的細線 */
.rule { height: 1px; background: var(--line); border: 0; }

/* === 區塊標頭 === */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow .idx { color: var(--amber); }
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line-2); max-width: 120px; }
.on-dark .eyebrow { color: var(--cyan); }
.on-dark .eyebrow::after { background: var(--line-dark); }

.section-head { margin-bottom: 64px; max-width: 760px; }
.section-h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.section-h2 em { font-style: normal; color: var(--cyan); }
.on-dark .section-h2 em { color: var(--cyan); }
.section-lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.95;
}
.on-dark .section-lead { color: var(--on-dark-2); }

/* === 按鈕 === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-size: 15px; font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--abyss); }
.btn-primary:hover { background: var(--amber-2); }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.on-dark .btn-ghost, .hero .btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn .arrow { font-family: var(--mono); font-weight: 400; }

/* ==========================================================================
   NAV
   ========================================================================== */
#main-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 40px;
  background: rgba(5,16,31,0.0);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
body.scrolled #main-nav {
  background: rgba(5,16,31,0.88);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav-logo img { width: 34px; height: auto; }
.nav-logo-name { line-height: 1.1; }
.nav-logo-name b {
  display: block; font-size: 15px; font-weight: 900;
  letter-spacing: 0.14em; color: #fff;
  transition: color .3s ease;
}
.nav-logo-name span {
  display: block; font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--cyan);
  transition: color .3s ease;
}
body.scrolled .nav-logo-name b { color: #fff; }
body.scrolled .nav-logo-name span { color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li > a {
  display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius);
  transition: color .2s ease, background .2s ease;
}
body.scrolled .nav-links > li > a { color: rgba(255,255,255,0.78); }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }
body.scrolled .nav-links > li > a:hover,
body.scrolled .nav-links > li > a.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-lang {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.9);
  transition: all .2s ease;
}
.nav-lang:hover { border-color: var(--cyan); color: var(--cyan); }
body.scrolled .nav-lang { border-color: var(--line-2); color: rgba(255,255,255,0.85); }
body.scrolled .nav-lang:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-cta {
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  background: var(--amber); color: var(--abyss);
  border-radius: var(--radius);
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--amber-2); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute; left: 9px; width: 22px; height: 2px;
  background: #fff; transition: all .25s ease;
}
body.scrolled .nav-toggle span { background: #fff; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(43,165,225,0.30) 0%, rgba(43,165,225,0) 55%),
    radial-gradient(90% 70% at 12% 92%, rgba(30,65,135,0.55) 0%, rgba(30,65,135,0) 60%),
    linear-gradient(178deg, #0C2647 0%, #071B33 42%, var(--abyss) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
/* 深度層線（僅水平）— 垂直線交給數據列的分隔線，避免兩套格線互相錯位 */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(234,242,248,0.055) 1px, transparent 1px);
  background-size: 100% 88px;
  mask-image: radial-gradient(90% 75% at 50% 40%, #000 0%, transparent 100%);
  pointer-events: none;
}
/* 水面光束 */
.hero::after {
  content: ''; position: absolute; top: -30%; left: 50%; width: 160%; height: 90%;
  transform: translateX(-50%) rotate(-8deg);
  background: linear-gradient(96deg,
    transparent 0%, rgba(106,213,254,0.07) 18%, transparent 24%,
    transparent 40%, rgba(106,213,254,0.05) 52%, transparent 60%,
    transparent 76%, rgba(106,213,254,0.06) 86%, transparent 94%);
  animation: caustics 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes caustics {
  from { transform: translateX(-52%) rotate(-8deg); opacity: .7; }
  to   { transform: translateX(-48%) rotate(-6deg); opacity: 1; }
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 30px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255,138,31,0.7);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,138,31,0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255,138,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); }
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 900; line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 15em;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-sub {
  margin-top: 28px; max-width: 620px;
  font-size: 17px; line-height: 2;
  color: var(--on-dark-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

/* Hero 數據列 */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
  border-top: 1px solid var(--line-dark);
}
/* 分隔線畫在「後一欄的左側」，並補上左內距 —— 數字才不會貼著線 */
.hero-stat { padding: 26px 24px 0 0; }
.hero-stat + .hero-stat {
  border-left: 1px solid var(--line-dark);
  padding-left: 28px;
}
.hero-stat b {
  display: block; font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  line-height: 1.1; color: #fff;
}
.hero-stat b sup {
  font-size: 0.42em; font-weight: 400; color: var(--cyan);
  vertical-align: super; margin-left: 4px; letter-spacing: 0.06em;
}
.hero-stat span {
  display: block; margin-top: 10px;
  font-size: 13px; color: var(--on-dark-3); letter-spacing: 0.04em;
}

/* 深度尺（右側裝飾） */
.depth-ruler {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  z-index: 2; display: flex; flex-direction: column; gap: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--on-dark-3);
}
.depth-ruler div {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  height: 46px;
}
.depth-ruler div::after { content: ''; width: 14px; height: 1px; background: var(--line-dark); }
.depth-ruler div.mark { color: var(--cyan); }
.depth-ruler div.mark::after { width: 26px; background: var(--cyan); }

/* ==========================================================================
   01 定位：在地團隊的結構性優勢
   ========================================================================== */
.edge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.edge {
  padding: 40px 36px 44px;
  border-left: 1px solid var(--line);
}
.edge:last-child { border-right: 1px solid var(--line); }
.edge-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--amber); margin-bottom: 18px;
}
.edge h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.edge p { font-size: 15px; color: var(--ink-2); line-height: 1.95; }

/* 引言 */
.pull-quote {
  margin-top: 72px; padding: 40px 0 40px 40px;
  border-left: 3px solid var(--amber);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700; line-height: 1.65; letter-spacing: -0.01em;
  max-width: 900px;
}
.pull-quote span { color: var(--cyan); }

/* ==========================================================================
   02 四大價值
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: 34px 28px 32px;
  transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}
.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.5);
  border-top-color: var(--amber);
}
.value-ico { width: 30px; height: 30px; margin-bottom: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.value h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.value p { font-size: 14px; color: var(--ink-2); }
.value .en {
  display: block; margin-top: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ==========================================================================
   03 六大服務
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service {
  background: var(--surface);
  padding: 40px 34px 42px;
  position: relative;
  transition: background .22s ease;
}
.service:hover { background: var(--surface-2); }
.service:hover .service-no { color: var(--amber); }
.service-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--ink-3); margin-bottom: 22px; transition: color .22s ease;
}
.service h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service .en {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--sky); margin-bottom: 16px;
}
.service p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }

/* ==========================================================================
   04 ROV 設備（深底）
   ========================================================================== */
.rov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rov {
  background: var(--deep-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
}
.rov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.rov h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.rov-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 4px 10px; border: 1px solid var(--line-dark); border-radius: 2px;
  color: var(--cyan); white-space: nowrap;
}
.rov-maker { font-family: var(--mono); font-size: 12px; color: var(--on-dark-3); letter-spacing: 0.08em; margin-bottom: 24px; }
.spec { border-top: 1px solid var(--line-dark); }
.spec tr { border-bottom: 1px solid var(--line-dark); }
.spec th, .spec td { padding: 13px 0; text-align: left; font-weight: 400; font-size: 14px; }
.spec th { color: var(--on-dark-3); width: 45%; }
.spec td { font-family: var(--mono); color: var(--on-dark); text-align: right; }
.spec td.hl { color: var(--cyan); }

/* TODO 標記（僅內部審稿時可見，上線前移除 .draft class） */
.draft {
  position: relative;
}
.draft::after {
  content: 'TODO 待客戶提供';
  position: absolute; top: 6px; right: 6px; z-index: 5;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  padding: 3px 7px; border-radius: 2px;
  background: var(--amber); color: var(--abyss);
  pointer-events: none;
}

/* ==========================================================================
   05 實績案例
   ========================================================================== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.case-img {
  aspect-ratio: 4/3; background: linear-gradient(160deg, #14304F, var(--abyss));
  position: relative; display: grid; place-items: center;
}
.case-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(106,213,254,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106,213,254,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.case-img span {
  position: relative; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--on-dark-3);
}
.case-body { padding: 26px 26px 28px; flex: 1; }
.case-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--sky); margin-bottom: 12px;
}
.case h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.case p { font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
   06 認證與 HSE
   ========================================================================== */
.cert-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.cert-list { list-style: none; }
.cert-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.cert-list li:first-child { border-top: 1px solid var(--line); }
.cert-list .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--amber); padding-top: 6px; min-width: 34px;
}
.cert-list h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cert-list p { font-size: 14px; color: var(--ink-2); }

.hse-card {
  background: var(--surface); color: var(--on-dark);
  border-radius: var(--radius); padding: 40px 36px;
}
.hse-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.hse-card > p { font-size: 14.5px; color: var(--on-dark-2); margin-bottom: 28px; }
.hse-metrics { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.hse-metric { background: var(--surface); padding: 20px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hse-metric span { font-size: 13.5px; color: var(--on-dark-2); }
.hse-metric b { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--cyan); }

/* ==========================================================================
   07 教育訓練
   ========================================================================== */
.train-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.train-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 36px 34px;
}
/* 里程碑標記 —— 讓這一段讀起來像實績紀錄，而不是課程招生 */
.train-panel .milestone {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--amber);
  margin-bottom: 14px;
}
.train-panel h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.train-points b { color: var(--ink); font-weight: 700; }
.train-panel p { font-size: 15px; color: var(--ink-2); }
.train-points { list-style: none; margin-top: 26px; }
/* 用 block + 絕對定位標記，不能用 flex —— 否則行內的 <b> 會變成獨立 flex item 而斷行 */
.train-points li {
  position: relative;
  font-size: 14.5px; color: var(--ink-2);
  padding: 9px 0 9px 20px;
  line-height: 1.85;
}
.train-points li::before {
  content: '▸'; position: absolute; left: 0; top: 9px;
  color: var(--amber); font-family: var(--mono);
}

/* ==========================================================================
   08 創辦人
   ========================================================================== */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.founder-photo {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(165deg, #16324F, var(--abyss));
  display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid var(--line);
  margin: 0;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  position: relative; z-index: 1;
}
/* 底部漸暗，讓人物照與深色區塊接得起來，不像貼上去的方塊 */
.founder-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(5,16,31,0.5) 0%, rgba(5,16,31,0) 42%);
}
.founder-photo::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(106,213,254,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106,213,254,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.founder-photo span {
  position: relative; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--on-dark-3); text-align: center; padding: 0 20px;
}
.founder-name { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.founder-name h3 { font-size: 34px; font-weight: 900; letter-spacing: 0.02em; }
.founder-name span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--sky); }
.founder-role { font-size: 15px; color: var(--ink-2); margin-bottom: 34px; }
.cred-group { margin-bottom: 30px; }
.cred-group h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}
.cred-group ul { list-style: none; }
.cred-group li {
  font-size: 15px; color: var(--ink-2); padding: 7px 0 7px 18px;
  position: relative; line-height: 1.8;
}
.cred-group li::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 6px; height: 1px; background: var(--line-2);
}

/* ==========================================================================
   09 合作夥伴
   ========================================================================== */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.partner {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 34px 38px;
}
.partner-logo {
  height: 46px; display: flex; align-items: center;
  margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.partner-logo b {
  font-size: 20px; font-weight: 900; letter-spacing: 0.06em; color: var(--on-dark);
}
.partner-logo b em { font-style: normal; color: var(--sky); }
.partner p { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; }
.partner .tag {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  padding: 4px 9px; border-radius: 2px;
  background: rgba(106,213,254,0.12); color: var(--cyan);
}

/* ==========================================================================
   CTA 帶
   ========================================================================== */
.cta-band {
  background: var(--navy); color: #fff;
  padding: 76px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 130% at 88% 50%, rgba(106,213,254,0.22), transparent 60%);
}
.cta-inner {
  position: relative; display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.45; }
.cta-inner p { margin-top: 12px; color: rgba(255,255,255,0.72); font-size: 15px; }

/* ==========================================================================
   FOOTER / 聯絡
   ========================================================================== */
.site-footer { background: var(--abyss); color: var(--on-dark); padding: 100px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.foot-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.foot-logo img { width: 46px; height: auto; }
.foot-logo b { display: block; font-size: 17px; font-weight: 900; letter-spacing: 0.12em; }
.foot-logo span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--cyan); }
.foot-cn { font-size: 22px; font-weight: 700; margin-bottom: 30px; letter-spacing: 0.04em; }

.contact-list { list-style: none; }
.contact-list li {
  display: grid; grid-template-columns: 74px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 15px; align-items: start;
}
.contact-list li:first-child { border-top: 1px solid var(--line-dark); }
.contact-list .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--on-dark-3); padding-top: 5px; text-transform: uppercase;
}
.contact-list a:hover { color: var(--cyan); }
.contact-list .badge {
  display: inline-block; margin-left: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 2px 8px; border-radius: 2px; background: var(--amber); color: var(--abyss);
}

.foot-map { border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.foot-map iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.85); }

.foot-bottom {
  margin-top: 80px; padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--on-dark-3);
}

/* 浮動 CTA */
.float-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 40px;
  background: var(--amber); color: var(--abyss);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 34px rgba(255,138,31,0.34);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
body.scrolled .float-cta { opacity: 1; pointer-events: auto; transform: none; }

/* 進場動畫 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::after { animation: none; }
  .hero-eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RWD
   ========================================================================== */
@media (max-width: 1080px) {
  .depth-ruler { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .cert-layout, .train-layout, .foot-grid { grid-template-columns: 1fr; gap: 44px; }
  .founder { grid-template-columns: 300px 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  section { padding: 84px 0; }
  .wrap, .wrap-narrow { padding: 0 24px; }
  #main-nav { padding: 0 20px; gap: 12px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,16,31,0.98);
    backdrop-filter: blur(14px);
    padding: 10px 20px 26px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > li > a,
  body.scrolled .nav-links > li > a {
    color: var(--on-dark); padding: 14px 6px; font-size: 16px;
    border-bottom: 1px solid var(--line-dark); border-radius: 0;
  }
  .nav-links > li:last-child { margin-top: 16px; }
  .nav-lang, body.scrolled .nav-lang { color: var(--on-dark); border-color: var(--line-dark); }
  .nav-cta { display: block; text-align: center; padding: 14px; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 64px) 0 72px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .hero-stat, .hero-stat + .hero-stat { padding: 22px 16px 20px 0; border-left: 0; }
  .hero-stat:nth-child(2n) { border-left: 1px solid var(--line-dark); padding-left: 22px; }
  .hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }

  .edge-grid { grid-template-columns: 1fr; }
  .edge { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 34px; }
  .edge:last-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .pull-quote { margin-top: 48px; padding: 26px 0 26px 24px; }

  .values, .services, .cases, .rov-grid, .partners { grid-template-columns: 1fr; }
  .services { gap: 1px; }
  .founder { grid-template-columns: 1fr; gap: 34px; }
  .founder-photo { max-width: 320px; }
  .section-head { margin-bottom: 44px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .foot-map iframe { height: 260px; }
  .float-cta { right: 16px; bottom: 16px; padding: 13px 18px; }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat, .hero-stat + .hero-stat { border-left: 0; padding-left: 0; }
  .hero-stat:not(:last-child) { border-bottom: 1px solid var(--line-dark); }
  .hero-stat:last-child { border-bottom: 0; }
  .btn { width: 100%; justify-content: center; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}
