  :root {
    --bg: #0a1630;
    --bg2: #0f1f42;
    --panel: #12264f;
    --panel2: #183266;
    --line: #2d4f8c;
    --cyan: #4ff0ff;
    --cyan-hi: #c2fcff;
    --cyan-dim: #2b93c0;
    --blue: #5b8cff;
    --violet: #9d7bff;
    --orange: #ff8a3d;
    --text: #f3f8ff;
    --muted: #b0c6ea;
    --shadow: #050b1c;
    --glow: 0 0 18px rgba(79,240,255,.55);
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: clip; }  /* 跑過畫面的光不要撐出橫向捲軸 */
  body {
    margin: 0;
    background:
      radial-gradient(900px 600px at 0% 0%, rgba(91,140,255,.22), transparent 60%),
      radial-gradient(800px 700px at 100% 30%, rgba(79,240,255,.12), transparent 60%),
      var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--cyan); }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; }

  /* ===== 從左到右：平滑 → 像素 ===== */
  /* 像素馬賽克層：左邊透明、越往右越明顯（圖由下面的程式產生） */
  .pxfield { position: absolute; inset: 0; pointer-events: none; image-rendering: pixelated;
    background-repeat: repeat; background-size: var(--pxs, 480px) auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 25%, rgba(0,0,0,.55) 65%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 25%, rgba(0,0,0,.55) 65%, #000 100%); }
  /* 分隔線：左邊是平滑漸層線，右邊變成一格一格的像素 */
  .rule { position: relative; height: 8px; margin: 0; }
  .rule::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px;
    background: linear-gradient(90deg, rgba(91,140,255,.9), rgba(79,240,255,.6) 45%, transparent 70%); box-shadow: 0 0 10px rgba(79,240,255,.4); }
  .rule::after { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 16px); filter: drop-shadow(0 0 6px rgba(79,240,255,.7));
    -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 85%); mask-image: linear-gradient(90deg, transparent 40%, #000 85%); }
  /* 標題：同一段字疊兩層，左邊清晰、右邊像素化 */
  .dissolve { position: relative; display: block; }
  .dissolve > .sm { display: block; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 78%); mask-image: linear-gradient(90deg, #000 30%, transparent 78%); }
  .dissolve > .pz { position: absolute; inset: 0; display: block; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 78%); mask-image: linear-gradient(90deg, transparent 30%, #000 78%); }
  h1 .pz { filter: url(#px4); }
  h2 .pz { filter: url(#px3); }

  /* 頁首 */
  header { position: sticky; top: 0; z-index: 10; background: rgba(10,22,48,.78); backdrop-filter: blur(10px); }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
  header .rule { position: absolute; left: 0; right: 0; bottom: -4px; }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
  .brand img { width: 28px; height: 28px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(79,240,255,.6)); }
  .brand .bn { display: flex; align-items: baseline; gap: 10px; }
  .brand small { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 12.5px; letter-spacing: .08em; }
  nav { display: flex; gap: 26px; }
  nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
  nav a:hover { color: var(--cyan); text-shadow: var(--glow); }

  /* 開場 */
  .hero { position: relative; overflow: hidden; }
  .hero .pxfield { --pxs: 640px; opacity: .55; }
  .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(45% 70% at 78% 50%, rgba(79,240,255,.22), transparent 70%); }
  .hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding-top: 88px; padding-bottom: 92px; }
  .tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--cyan-hi); background: rgba(79,240,255,.08); border: 1px solid rgba(79,240,255,.35); padding: 5px 14px; border-radius: 999px; }
  .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: blink 1.8s infinite; }
  @keyframes blink { 0%, 70%, 100% { opacity: 1; } 82% { opacity: .2; } }
  h1 .ln { white-space: nowrap; }
  h1.dissolve > .sm { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 96%); mask-image: linear-gradient(90deg, #000 55%, transparent 96%); }
  h1.dissolve > .pz { -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000 96%); mask-image: linear-gradient(90deg, transparent 55%, #000 96%); }
  h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.32; margin: 22px 0 18px; letter-spacing: .02em; font-weight: 800; }
  h1 .hi { color: var(--cyan); text-shadow: var(--glow); }
  .lead { color: var(--muted); font-size: 17.5px; max-width: 31em; margin: 0 0 32px; }
  .cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 12px 22px; border-radius: 10px; transition: transform .15s, box-shadow .15s; }
  .btn.solid { color: #04202e; background: linear-gradient(90deg, var(--cyan), #7fd8ff 60%, var(--blue)); box-shadow: 0 0 0 1px rgba(194,252,255,.5) inset, 0 8px 30px rgba(79,240,255,.4); }
  .btn.ghost { color: var(--cyan-hi); border: 1px solid rgba(79,240,255,.5); background: rgba(79,240,255,.06); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(194,252,255,.6) inset, 0 10px 36px rgba(79,240,255,.55); }
  .btn .pxa { width: 10px; height: 10px; image-rendering: pixelated; }
  .stage .photo { position: relative; }
  .stage .photo::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40%; background: radial-gradient(closest-side, rgba(79,240,255,.28), transparent); filter: blur(30px); }
  .stage .photo img { position: relative; display: block; width: 100%; height: auto;
    -webkit-mask-image: radial-gradient(ellipse 58% 60% at 52% 52%, #000 70%, transparent 100%);
            mask-image: radial-gradient(ellipse 58% 60% at 52% 52%, #000 70%, transparent 100%); }
  .stage .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
  .stage .chipglow { opacity: .12; animation: chipglow 3.2s ease-in-out infinite; }
  @keyframes chipglow { 50% { opacity: .32; } }
  .stage .leds circle { fill: #9ffbff; opacity: .15; animation: led 1.6s steps(1) infinite; filter: blur(3px); }
  .stage .leds circle:nth-child(2) { animation-delay: .4s; }
  .stage .leds circle:nth-child(3) { animation-delay: .8s; }
  .stage .leds circle:nth-child(4) { animation-delay: 1.2s; }
  @keyframes led { 0% { opacity: .95; } 25% { opacity: .15; } }
  .stage .wifi path { opacity: 0; animation: wifi 2s ease-out infinite; filter: drop-shadow(0 0 6px #4ff0ff); }
  .stage .wifi path:nth-child(2) { animation-delay: .25s; }
  .stage .wifi path:nth-child(3) { animation-delay: .5s; }
  @keyframes wifi { 0% { opacity: 0; } 20% { opacity: .9; } 70%, 100% { opacity: 0; } }
  .stage .gas circle { opacity: 0; animation: gas 3s ease-out infinite; }
  .stage .gas circle:nth-child(2) { animation-delay: .8s; }
  .stage .gas circle:nth-child(3) { animation-delay: 1.5s; }
  .stage .gas circle:nth-child(4) { animation-delay: 2.2s; }
  @keyframes gas { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-120px); } }
  .stage .cap { font-family: var(--mono); font-size: 12px; color: var(--cyan-dim); text-align: right; margin-top: 6px; }

  /* 區塊共用 */
  section { position: relative; padding: 86px 0; overflow: hidden; }
  section > .pxfield { --pxs: 560px; opacity: .25; }
  .label { font-family: var(--mono); color: var(--cyan); font-size: 13px; letter-spacing: .14em; margin: 0 0 10px; text-shadow: var(--glow); }
  h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: .03em; font-weight: 800; }
  .sub { color: var(--muted); margin: 0 0 40px; max-width: 40em; }

  /* 卡片：左邊平滑圓角，右邊浮出像素格 */
  .card { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, var(--panel2), var(--panel) 60%); border: 1px solid rgba(79,240,255,.18); transition: box-shadow .2s, border-color .2s, transform .2s; }
  .card > .pxfield { --pxs: 260px; opacity: .5; }
  .card:hover { border-color: rgba(79,240,255,.55); box-shadow: 0 0 0 1px rgba(79,240,255,.2), 0 12px 40px rgba(79,240,255,.18); transform: translateY(-2px); }
  .card > * { position: relative; }
  .card > .pxfield { position: absolute; }

  /* 領域 */
  .skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .skill { padding: 24px 24px 26px; }
  .skill svg { width: 44px; height: 44px; display: block; margin-bottom: 12px; shape-rendering: crispEdges; filter: drop-shadow(0 0 6px rgba(79,240,255,.55)); }
  .skill h3 { margin: 0 0 6px; font-size: 18.5px; }
  .skill p { margin: 0; color: var(--muted); font-size: 14.5px; }
  .skill .ref { position: absolute; top: 14px; right: 16px; font-family: var(--mono); font-size: 11px; color: var(--cyan-dim); }

  /* 流程：一條從平滑漸層變成像素方塊的進度條 */
  .track { position: relative; height: 16px; margin: 0 0 22px; }
  .track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; border-radius: 6px;
    background: linear-gradient(90deg, var(--blue), var(--cyan) 50%, transparent 72%); box-shadow: 0 0 14px rgba(79,240,255,.5); }
  .track::after { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 12px, transparent 12px 18px); filter: drop-shadow(0 0 8px rgba(79,240,255,.8));
    -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 80%); mask-image: linear-gradient(90deg, transparent 45%, #000 80%); }
  .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .step .no { font-family: var(--mono); color: var(--cyan); font-size: 13px; text-shadow: var(--glow); }
  .step h3 { margin: 2px 0 4px; font-size: 17px; }
  .step p { margin: 0; color: var(--muted); font-size: 14px; }

  /* 作品 */
  .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
  .filters button { font: inherit; font-size: 14.5px; color: var(--muted); background: rgba(79,240,255,.05); border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
  .filters button:hover { color: var(--text); border-color: var(--cyan-dim); }
  .filters button[aria-pressed="true"] { color: #04202e; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(79,240,255,.5); }
  .filters .n { font-family: var(--mono); font-size: 12px; opacity: .75; margin-left: 6px; }
  .works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
  .work { display: flex; flex-direction: column; }
  .work .pic { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #1f4a8a, #0c1a3a 72%); border-bottom: 1px solid rgba(79,240,255,.18); }
  .work .pic img { width: 100%; height: 100%; object-fit: cover; }
  .work .pic.logo img { width: 42%; height: auto; border-radius: 22px; object-fit: contain; box-shadow: 0 0 40px rgba(79,240,255,.25); }
  .work .pic.none { color: var(--cyan-dim); font-family: var(--mono); font-size: 13px; }
  .work .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
  .work .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
  .work .type { color: var(--orange); text-shadow: 0 0 8px rgba(255,138,61,.6); }
  .work h3 { margin: 0 0 6px; font-size: 19px; }
  .work p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
  .work .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
  .work .tags li { font-family: var(--mono); font-size: 12px; color: var(--cyan-hi); background: rgba(79,240,255,.08); border: 1px solid rgba(79,240,255,.3); padding: 1px 9px; border-radius: 6px; }
  .work .go { margin-top: 16px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
  .work .go:hover { text-shadow: var(--glow); }
  .empty { display: grid; place-items: center; text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; min-height: 200px; position: relative; overflow: hidden; }
  .empty > .pxfield { --pxs: 260px; opacity: .35; }
  .empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; position: relative; }
  .empty span { position: relative; }

  /* 聯絡 */
  .contact-box { padding: 40px 36px 44px; }
  .contact-box .say { font-size: 18px; margin: 0 0 18px; color: var(--muted); }
  .contact-box a.mail { font-size: clamp(22px, 4vw, 34px); font-weight: 800; color: var(--cyan); text-decoration: none; text-shadow: var(--glow); word-break: break-all; }
  .contact-box a.mail:hover { color: var(--cyan-hi); }
  .contact-box .next { position: absolute; right: 26px; bottom: 18px; width: 14px; height: 10px; image-rendering: pixelated; animation: bob .8s steps(2) infinite; filter: drop-shadow(0 0 6px rgba(79,240,255,.8)); }
  @keyframes bob { 50% { transform: translateY(4px); } }

  footer { position: relative; color: var(--muted); font-size: 13px; font-family: var(--mono); }
  footer .wrap { padding-top: 24px; padding-bottom: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

  /* ===== 商業版補充 ===== */
  /* 像素效果收斂一點，保持專業 */
  .hero .pxfield { opacity: .38; }
  section > .pxfield { opacity: .14; }
  .card > .pxfield { opacity: .28; }
  nav { align-items: center; }
  .nav-cta { color: #04202e !important; background: var(--cyan); padding: 7px 16px; border-radius: 8px; font-weight: 700; box-shadow: 0 0 16px rgba(79,240,255,.45); }
  .nav-cta:hover { text-shadow: none !important; background: var(--cyan-hi); }
  .hero-points { list-style: none; margin: 36px 0 0; padding: 22px 0 0; display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(79,240,255,.18); }
  .hero-points b { display: block; font-size: 15.5px; color: var(--text); }
  .hero-points span { font-size: 13.5px; color: var(--muted); }

  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .service { padding: 28px 26px 30px; }
  .service .no { font-family: var(--mono); font-size: 13px; color: var(--cyan); text-shadow: var(--glow); margin-bottom: 8px; }
  .service h3 { font-size: 21px; margin: 0 0 10px; }
  .service p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
  .check { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(79,240,255,.15); }
  .check li { position: relative; padding-left: 22px; font-size: 14.5px; margin: 6px 0; }
  .check li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 8px rgba(79,240,255,.8); }

  .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 36px; }
  .why-item .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(79,240,255,.08); border: 1px solid rgba(79,240,255,.3); margin-bottom: 16px; box-shadow: 0 0 22px rgba(79,240,255,.15); }
  .why-item svg { width: 30px; height: 30px; shape-rendering: crispEdges; filter: drop-shadow(0 0 5px rgba(79,240,255,.6)); }
  .why-item h3 { font-size: 18.5px; margin: 0 0 8px; }
  .why-item p { margin: 0; color: var(--muted); font-size: 15px; }

  .contact-box { padding: 48px 46px; background: linear-gradient(120deg, #1b3a7a, #12264f 55%, #10244a); border-color: rgba(79,240,255,.35); box-shadow: 0 0 60px rgba(79,240,255,.12); }
  .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
  .contact-box h2 { margin-bottom: 14px; }
  .contact-box .say { margin: 0; font-size: 16.5px; }
  .contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .btn.big { font-size: 17px; padding: 14px 28px; }
  .contact-box a.mail { font-size: 20px; }
  .info { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14.5px; color: var(--text); }
  .info li { margin: 4px 0; }
  .info span { display: inline-block; width: 5.5em; color: var(--muted); }

  footer .foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; font-family: inherit; font-size: 14px; }
  .foot-brand p { margin: 12px 0 0; color: var(--muted); max-width: 24em; }
  .foot-col { display: flex; flex-direction: column; gap: 6px; }
  .foot-col b { color: var(--text); font-size: 14px; margin-bottom: 4px; }
  .foot-col a, .foot-col span { color: var(--muted); text-decoration: none; }
  .foot-col a:hover { color: var(--cyan); }
  footer .copy { border-top: 1px solid rgba(79,240,255,.12); padding-top: 18px; padding-bottom: 26px; font-size: 12.5px; }

  @media (max-width: 900px) {
    .services, .why { grid-template-columns: 1fr; gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    footer .foot { grid-template-columns: 1fr 1fr; }
    nav a:not(.nav-cta) { display: none; }
  }
  @media (max-width: 560px) {
    .contact-box { padding: 32px 22px; }
    .hero-points { gap: 18px; }
    footer .foot { grid-template-columns: 1fr; }
  }

  /* ===== 動畫與光效 ===== */
  /* 開場背景的流動光點 */
  #fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .hero .wrap { z-index: 1; }

  /* 捲到才浮現 */
  .js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .js-anim .reveal.in { opacity: 1; transform: none; }

  /* 卡片：滑鼠位置的聚光燈＋邊框亮起 */
  .card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(79,240,255,.16), transparent 60%); }
  .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    padding: 1px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(194,252,255,.9), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  .card:hover::before, .card:hover::after { opacity: 1; }

  /* 主要按鈕：一道光掃過 */
  .btn.solid, .nav-cta { position: relative; overflow: hidden; }
  .btn.solid::after, .nav-cta::after { content: ""; position: absolute; top: -50%; left: -60%; width: 40%; height: 200%; transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shine 4.5s ease-in-out infinite; }
  @keyframes shine { 0%, 62% { left: -60%; } 82%, 100% { left: 130%; } }

  /* 標題重點字：光澤流動 */
  h1 .sm .hi { background: linear-gradient(100deg, var(--cyan) 20%, #ffffff 40%, var(--cyan) 60%); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 5s linear infinite;
    text-shadow: none; filter: drop-shadow(0 0 10px rgba(79,240,255,.55)); }
  @keyframes sheen { from { background-position: 120% 0; } to { background-position: -130% 0; } }

  /* 分隔線上跑過的一道光 */
  .rule { overflow: visible; }
  .rule > i { position: absolute; top: 1px; left: 0; width: 160px; height: 6px; border-radius: 6px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(194,252,255,.95), rgba(79,240,255,.35), transparent); filter: blur(1px);
    animation: run 7s linear infinite; animation-delay: var(--d, 0s); }
  @keyframes run { from { transform: translateX(-200px); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { transform: translateX(100vw); opacity: 0; } }

  /* 流程：訊號沿著進度條跑，步驟依序亮起 */
  .track { overflow: hidden; border-radius: 6px; }
  .track > i { position: absolute; top: 0; left: 0; width: 120px; height: 100%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); mix-blend-mode: screen; animation: signal 3.2s cubic-bezier(.5,0,.5,1) infinite; }
  @keyframes signal { from { transform: translateX(-140px); } to { transform: translateX(1200px); } }
  .step { position: relative; padding-top: 4px; }
  .step::before { content: ""; position: absolute; top: -28px; left: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--bg2); border: 2px solid var(--cyan-dim); transition: background .4s, box-shadow .4s, border-color .4s; transition-delay: var(--d, 0s); }
  .flow.in .step::before { background: var(--cyan); border-color: var(--cyan-hi); box-shadow: 0 0 14px rgba(79,240,255,.9); }

  /* 開場電路板：輕輕浮動＋掃描光 */
  .stage { position: relative; animation: float 6s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
  .stage::after { content: ""; position: absolute; left: 4%; right: 4%; top: 10%; height: 18%; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(79,240,255,.16), transparent); animation: scan 4s linear infinite; mix-blend-mode: screen; }
  @keyframes scan { from { transform: translateY(-20%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(380%); opacity: 0; } }

  /* 像素格輕微閃爍 */
  .pxfield { animation: twinkle 6s ease-in-out infinite; }
  @keyframes twinkle { 50% { filter: brightness(1.5); } }

  /* 洽詢區塊：旋轉的光邊框 */
  @property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  .contact-box { border: 0; }
  .contact-box::after { opacity: 1 !important; padding: 1.5px;
    background: conic-gradient(from var(--ang), transparent 0 60%, rgba(79,240,255,.2) 70%, var(--cyan-hi) 80%, rgba(91,140,255,.6) 88%, transparent 96%);
    animation: spin 6s linear infinite; }
  @keyframes spin { to { --ang: 360deg; } }

  /* 跟著滑鼠的柔光（只在電腦上） */
  .cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(closest-side, rgba(79,240,255,.09), transparent); transition: opacity .4s; opacity: 0; }
  main, header, footer { position: relative; z-index: 1; }
  header { z-index: 10; position: sticky; }

  /* ===== 信賴感：關於、保障、常見問題 ===== */
  .about { margin-top: 30px; }
  .duty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 6px; }
  .duty > div { padding: 16px 18px; border-radius: 14px; background: rgba(18,38,79,.6); border: 1px solid rgba(79,240,255,.18); }
  .duty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
  .duty p { color: var(--muted); font-size: 14px; margin: 0; }
  .about-text .who { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
  .about-text .who b { font-size: 28px; }
  .about-text .who span { color: var(--cyan); font-size: 15px; }
  .about-text p { color: var(--muted); margin: 0 0 14px; font-size: 16px; max-width: 40em; }
  .stack { display: grid; grid-template-columns: repeat(3, auto); gap: 18px 34px; justify-content: start; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(79,240,255,.15); }
  .stack span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .stack li { font-family: var(--mono); font-size: 13px; color: var(--cyan-hi); background: rgba(79,240,255,.08); border: 1px solid rgba(79,240,255,.28); padding: 2px 10px; border-radius: 6px; }

  .why { grid-template-columns: repeat(3, 1fr); gap: 36px 34px; }

  .faq { margin-top: 30px; border-top: 1px solid rgba(79,240,255,.15); }
  .faq details { border-bottom: 1px solid rgba(79,240,255,.15); }
  .faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 17px; font-weight: 700; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--cyan); transition: transform .25s; }
  .faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
  .faq summary:hover { color: var(--cyan-hi); }
  .faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

  .work .pic { position: relative; z-index: 1; }   /* 照片／渲染圖蓋在像素馬賽克上面，保持寫實 */
  .badge { position: absolute; left: 12px; top: 12px; font-size: 12px; color: var(--text); background: rgba(5,11,28,.72); border: 1px solid rgba(79,240,255,.35); padding: 2px 10px; border-radius: 999px; backdrop-filter: blur(4px); }

  /* 沉穩一點：收斂特效 */
  .cursor-glow { display: none; }
  section > .pxfield { opacity: .08; animation: none; }
  .card > .pxfield { opacity: .18; animation: none; }
  .nav-cta::after { display: none; }
  .btn.solid::after { animation-duration: 7s; }
  .rule > i { display: none; }
  header .rule > i { display: block; animation-duration: 10s; }
  .contact-box::after { animation-duration: 14s; }
  h1 .sm .hi { animation-duration: 8s; }

  @media (max-width: 900px) {
    .duty { grid-template-columns: 1fr 1fr; }
    .why { grid-template-columns: 1fr; }
    .stack { grid-template-columns: 1fr; }
  }

  /* 系統設定「減少動態效果」時：只拿掉大幅移動（浮動、往上滑），光效和淡入保留 */
  @media (prefers-reduced-motion: reduce) {
    .js-anim .reveal { transform: none; }
    .stage { animation: none; }
  }

  @media (prefers-reduced-motion: reduce) { .tag i, .contact-box .next { animation: none; } }
  @media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 60px; }
    .skills { grid-template-columns: repeat(2, 1fr); }
    .flow { grid-template-columns: 1fr; gap: 14px; }
  }
  @media (max-width: 560px) {
    nav { gap: 16px; }
    nav a { font-size: 14px; }
    .brand .bn { flex-direction: column; gap: 0; line-height: 1.25; }   /* 手機：英文名放在中文名下面 */
    .brand small { font-size: 11px; }
    h1 { font-size: 25px; }
    /* 手機字小，像素格改小、像素區往右縮，字才看得清楚 */
    h1 .pz, h2 .pz { filter: url(#px2); }
    .dissolve > .sm { -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 92%); mask-image: linear-gradient(90deg, #000 50%, transparent 92%); }
    .dissolve > .pz { -webkit-mask-image: linear-gradient(90deg, transparent 50%, #000 92%); mask-image: linear-gradient(90deg, transparent 50%, #000 92%); }
    h2 { font-size: 26px; }
    section { padding: 62px 0; }
    .skills, .works { grid-template-columns: 1fr; }
    .contact-box { padding: 28px 20px 40px; }
  }

  /* 目前所在頁面的選單 */
  nav a[aria-current="page"] { color: var(--cyan); text-shadow: var(--glow); }

  /* ===== 發案表單（/contact/ #brief） ===== */
  .contact-side .or { font-size: 13.5px; color: var(--muted); margin-bottom: -10px; }
  #brief .sub .req, .brief .req { color: var(--orange); font-weight: 700; }
  .brief { position: relative; overflow: hidden; margin-top: 30px; padding: 34px 36px 30px; border-radius: 16px;
    background: linear-gradient(135deg, var(--panel2), var(--panel) 60%); border: 1px solid rgba(79,240,255,.22); box-shadow: 0 0 50px rgba(79,240,255,.08); }
  .brief > .pxfield { opacity: .12; }
  .brief fieldset { position: relative; z-index: 1; border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
  .brief legend { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; margin-bottom: 16px; padding: 0; }
  .brief legend span { font-family: var(--mono); font-size: 13px; color: var(--cyan); border: 1px solid rgba(79,240,255,.4); border-radius: 6px; padding: 0 8px; text-shadow: var(--glow); }
  .brief .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
  .brief label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
  .brief .row2 label { margin-bottom: 0; }
  .brief label small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 1px; }
  .brief input:not([type=checkbox]):not([type=file]), .brief textarea {
    display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-size: 15.5px; font-weight: 400; line-height: 1.6; color: var(--text);
    background: rgba(5,11,28,.55); border: 1px solid rgba(79,240,255,.22); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
  .brief textarea { resize: vertical; min-height: 90px; }
  .brief input::placeholder, .brief textarea::placeholder { color: #6f86ad; }
  .brief input:focus, .brief textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(79,240,255,.18), 0 0 18px rgba(79,240,255,.2); }
  .brief .bad { border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(255,138,61,.18) !important; }
  .brief .hint { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
  .brief .chips label { margin: 0; font-weight: 400; cursor: pointer; }
  .chips input { position: absolute; opacity: 0; pointer-events: none; }
  .chips span { display: inline-block; font-size: 14.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(79,240,255,.3); background: rgba(79,240,255,.05); color: var(--muted); transition: all .15s; user-select: none; }
  .chips label:hover span { border-color: rgba(79,240,255,.6); color: var(--text); }
  .chips input:checked + span { color: #04202e; font-weight: 700; background: linear-gradient(90deg, var(--cyan), #7fd8ff); border-color: transparent; box-shadow: 0 0 14px rgba(79,240,255,.45); }
  .chips input:focus-visible + span { outline: 2px solid var(--cyan-hi); outline-offset: 2px; }
  .drop { position: relative; border: 1.5px dashed rgba(79,240,255,.4); border-radius: 12px; background: rgba(5,11,28,.35); padding: 22px; margin-bottom: 18px; text-align: center; transition: border-color .15s, background .15s; }
  .drop.over { border-color: var(--cyan); background: rgba(79,240,255,.08); }
  .drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .brief .drop > label { margin: 0; font-weight: 400; color: var(--muted); cursor: pointer; }
  .drop > label b { display: inline-block; color: var(--cyan-hi); border: 1px solid rgba(79,240,255,.5); background: rgba(79,240,255,.08); border-radius: 8px; padding: 6px 16px; margin-right: 10px; }
  .drop input:focus-visible + label b { outline: 2px solid var(--cyan-hi); outline-offset: 2px; }
  .picked { list-style: none; margin: 0; padding: 0; text-align: left; }
  .picked:not(:empty) { margin-top: 16px; border-top: 1px solid rgba(79,240,255,.15); padding-top: 10px; }
  .picked li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; padding: 4px 0; }
  .picked li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .picked li em { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--muted); }
  .picked li button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; }
  .picked li button:hover { color: var(--orange); background: rgba(255,138,61,.1); }
  .picked li.sum { justify-content: flex-end; font-size: 13px; color: var(--muted); }
  .picked li.sum.over { color: var(--orange); }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .brief .send { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(79,240,255,.15); }
  .brief .note { margin: 0; font-size: 13.5px; color: var(--muted); }
  .brief button.btn { border: 0; cursor: pointer; font-family: inherit; }
  .brief button.btn:disabled { opacity: .55; cursor: wait; transform: none; }
  .brief .status { position: relative; z-index: 1; margin: 16px 0 0; font-size: 15px; min-height: 1em; }
  .brief .status:empty { display: none; }
  .brief .status.err { color: #ffb48a; }
  .brief .status.busy { color: var(--cyan-hi); }
  .brief .status.ok { color: var(--text); padding: 14px 18px; border-radius: 10px; background: rgba(79,240,255,.1); border: 1px solid rgba(79,240,255,.45); box-shadow: 0 0 22px rgba(79,240,255,.15); }
  @media (max-width: 700px) {
    .brief { padding: 26px 18px 22px; }
    .brief .row2 { grid-template-columns: 1fr; }
    .brief .send .btn { width: 100%; justify-content: center; }
  }
