@font-face {
  /* 源泉圓體 Regular。這是專案內字體檔，不需要使用者電腦有安裝字體。 */
  font-family: "GenSenRoundedLocal";
  src: url("assets/font/GenSenRounded2TC-subset/GenSenRounded2TC-R-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* 源泉圓體 Medium。給 500 / 600 左右的半粗文字使用。 */
  font-family: "GenSenRoundedLocal";
  src: url("assets/font/GenSenRounded2TC-subset/GenSenRounded2TC-M-subset.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* 源泉圓體 Bold。給 700 / 800 的粗體文字使用。 */
  font-family: "GenSenRoundedLocal";
  src: url("assets/font/GenSenRounded2TC-subset/GenSenRounded2TC-B-subset.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  /* 源泉圓體 Heavy。給 900 的最粗文字使用。 */
  font-family: "GenSenRoundedLocal";
  src: url("assets/font/GenSenRounded2TC-subset/GenSenRounded2TC-H-subset.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* `:root` 是 CSS 內建的「整份網頁最上層」選擇器，常用來放全站共用變數。
     `--yellow` 這種前面有兩個減號的名稱是 CSS 自訂變數，名字由作者自取。
     之後用 `var(--yellow)` 就能重複使用同一個顏色；要改全站黃色時，優先改這裡。 */
  --yellow: #f8c842;
  /* `#f8c842` 是十六進位色碼，代表偏橘的黃色；可改成 `#ffd670` 讓它更接近淡黃。 */
  --yellow2: #ffd76a;
  --ink: #191919;

  /* `--ink` 是目前主要黑色；文字框線、邊框常用它。改太淡會讓漫畫粗框不明顯。17150f */
  --paper: #fff8d8;
  --white: #fffef6;
  --dark: #11110d;
  --dark-section: #262621;
  --green: #c4d73a;
  --font-main: "Noto Sans TC", sans-serif;
  /* `"Noto Sans TC"` 是字體名稱；`sans-serif` 是備用字體類型，當雲端字體載不到時使用。 */
  --font-rounded: "GenSenRoundedLocal", "GenSenRounded TW", "GenSenRounded2 TW", "源泉圓體 TW", "源泉圓體", var(--font-main);
  /* 源泉圓體字體堆疊。現在會先使用 assets/font 裡的專案字體；載不到才退回系統字體或 Noto Sans TC。 */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --section-slant: clamp(38px, 4.2vw, 84px);
  /* 每個主要 section 交界的斜線高度。
     數字越大，左下到右上的斜線越明顯；數字越小，斜線越平。 */
}

/* `*` 是萬用選擇器，代表所有元素。
   `box-sizing: border-box` 讓寬高計算包含 padding 和 border，排版比較直覺；通常不要改。 */
* { box-sizing: border-box; }

/* `html` 是整個頁面的根元素。
   `scroll-behavior: smooth` 讓點導覽連到 `#works` 時平滑捲動；若想瞬間跳轉可改成 `auto`。 */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

strong {
  /* 選到所有 <strong> 包起來的文字。 */
  font-weight: 900;
  /* 字重。數字越大越粗。
     Noto Sans TC 常用：
     400 = 一般
     600 = 半粗
     700 = 粗
     900 = 最粗 */
}

body {
  /* `body` 是整個可見網頁內容的最外層。 */
  margin: 0;
  /* `margin: 0` 取消瀏覽器預設外距；如果刪掉，頁面四周會多一圈空白。 */
  color: var(--ink);
  /* `color` 是預設文字顏色，子元素若沒有另外設定會繼承這個顏色。 */
  background: var(--yellow);
  font-family: var(--font-main);
  overflow-x: clip;
  /* `overflow-x: hidden` 隱藏橫向溢出，避免某些旋轉或外框造成水平捲軸。 */
}

img { display: block; max-width: 100%; }
/* `img` 是所有圖片。`display: block` 去掉圖片底部預設空隙；`max-width: 100%` 防止圖片超出容器。 */
a { color: inherit; text-decoration: none; }
/* `a` 是所有連結。`inherit` 代表沿用父層文字顏色；`text-decoration: none` 取消底線。 */

.motion-ready .site-header {
  animation: header-drop 560ms var(--ease-out-expo) both;
}

.motion-ready [data-animate] {
  opacity: 0;
  transition:
    opacity 620ms var(--ease-out-quart),
    transform 620ms var(--ease-out-quart),
    filter 620ms var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 52ms);
  will-change: opacity, transform;
}

.motion-ready [data-animate="rise"] { transform: translateY(24px); }
.motion-ready [data-animate="card"] { transform: translateY(22px) scale(.975); }
.motion-ready [data-animate="pop"] { transform: translateY(16px) scale(.92); }
.motion-ready [data-animate="paper"] { transform: translateY(30px) rotate(-1deg) scale(.985); }
.motion-ready [data-animate="float-in"] { transform: translateY(28px) rotate(-2deg) scale(.96); }
.motion-ready [data-animate="flip-card"] {
  transform: perspective(1000px) rotateY(-70deg) translateY(16px) scale(.96);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: saturate(.86) brightness(.96);
  transition:
    opacity 520ms var(--ease-out-quint),
    transform 760ms var(--ease-out-expo),
    filter 760ms var(--ease-out-quint);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.motion-ready [data-animate="hero-title"] {
  transform: translateX(-28px) rotate(-2deg) scale(.96);
  filter: blur(2px);
}

.motion-ready [data-animate].is-visible {
  opacity: 1;
  filter: none;
  will-change: auto;
}

.motion-ready [data-animate]:not([data-animate="fade"]):not([data-animate="flip-card"]).is-visible {
  transform: translate(0, 0) rotate(0) scale(1);
}

.motion-ready [data-animate="flip-card"].is-visible {
  transform: perspective(1000px) rotateY(0deg) translateY(0) scale(1);
}

@keyframes header-drop {
  from {
    opacity: 0;
    transform: translate(-50%, -18px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .flow-reveal-mask-line {
    stroke-dashoffset: 0 !important;
  }
}

.site-header {
  
  /* `.site-header` 對應 index.html 的 `<header class="site-header">`，負責最上方導覽列。 */
  position: fixed;
  /* `fixed` 讓導覽列浮在畫面上，不佔正常版面高度；Hero 就會從網頁最上方開始。 */
  top: clamp(12px, 1.2vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  /* `z-index` 是堆疊順序，數字越大越上層；只對有 position 的元素生效。 */
  display: grid;
  /* `grid` 是 CSS 內建版面系統，這裡用兩欄：左 logo、右導覽。 */
  grid-template-columns: auto 1fr;
  /* `300px 1fr`：第一欄固定 300px；第二欄吃掉剩餘空間。手機版下面 media query 會改掉。 */
  align-items: center;
  column-gap: clamp(22px, 3vw, 58px);
  height: clamp(58px, 5.2vw, 100px);
  /* `clamp(最小, 理想, 最大)`：高度最小 54px，隨視窗寬度變化，最大 131px。 */
  width: calc(100% - clamp(28px, 5vw, 96px));
  /* `calc(100% - ...)` 讓 header 左右留出一點空間，看起來像長膠囊而不是整條矩形。 */
  margin: 0;
  padding: 0 clamp(10px, 1.45vw, 28px) 0 clamp(10px, 1.35vw, 26px);
  border: clamp(3px, .16vw, 7px) solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  /*box-shadow: 0 clamp(4px, .45vw, 8px) 0 var(--ink);*/
  
}

.site-header::after {
  /* `::after` 是 CSS 產生的假元素，不用在 HTML 多寫一個 div。
     這裡用來做導覽列底部的粗黑陰影線。 */
  content: none;
}

.logo-circle {
  /* Logo 外圈圓形。改 `width/height` 會改圓大小；兩者要相同才會是正圓。 */
  display: grid;
  width: clamp(42px, 4vw, 76px);
  height: clamp(42px, 4vw, 76px);
  place-items: center;
  border: clamp(2px, .26vw, 5px) solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}

.logo-circle img {
  /* 控制圓圈裡面的 logo 圖片大小。100% 代表貼齊黑框內側，圖片本身已經輸出成圓形。 */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  /* 導覽連結容器。`flex` 適合一排水平項目。 */
  display: flex;
  margin-right: 18px;
  justify-content: flex-end;
  gap: clamp(18px, 5.1vw, 98px);
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: clamp(13px, 1.25vw, 24px);
}

.nav-links a,
.logo-circle,
.menu-toggle,
.works-cta a,
.request-form button,
.flow-info,
.select-trigger {
  transition:
    transform 180ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-out-quart),
    background-color 180ms var(--ease-out-quart),
    color 180ms var(--ease-out-quart),
    border-color 180ms var(--ease-out-quart);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translateY(-2px);
}

.logo-link:hover .logo-circle,
.logo-link:focus-visible .logo-circle,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: scale(1.04) rotate(-3deg);
}

.menu-toggle {
  display: none;
}

.hero-section {
  /* Hero 第一屏。這裡用 `position: relative`，讓裡面的絕對定位元素以 Hero 為基準。 */
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 2 / 1.1;
  /* `aspect-ratio: 2 / 1` 代表 Hero 寬高比固定為 2:1；例如寬 1200px 時，高度就是 600px。 */
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: visible;
  /* `overflow: visible` 讓「過往合作對象」白框可以疊在 Hero 與下一個作品區交界處。 */
  clip-path: inset(0 0 -25% 0);
  /* `clip-path` 把左右外溢裁掉，但底部保留 25% 空間給合作對象白框疊到下一區。 */
  background: var(--yellow);
}

.hero-bg {
  /* Hero 背景圖。`inset: 0` 等於 top/right/bottom/left 全部 0，讓圖片鋪滿 Hero。 */
  position: absolute;
  inset: 0;
  width: min(100%, var(--duty-img-box-max, 100%));
  height: 100%;
  object-fit: cover;
}

.hero-title {
  /* Hero 左側大標圖片。`top/left/width` 都是百分比，會跟著 Hero 大小縮放。 */
  position: absolute;
  z-index: 2;
  top: 23.7%;
  left: 11.55%;
  width: 40.78%;
}

.hero-character-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-character {
  /* Hero 右側角色動畫。外層 `.hero-character-wrap` 會裁掉左右外溢，避免整頁被撐出黑邊。
     `right` 越大越往左，負數越大越往右；`width` 越大角色越大。 */
  position: absolute;
  right: -17%;
  bottom: 0;
  width: 90%;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease-out-quart), visibility 0s linear 320ms;
}

.hero-character.is-media-ready {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.motion-ready .hero-character[data-animate]:not(.is-media-ready) {
  opacity: 0;
  visibility: hidden;
}

.trust-title {
  /* 「過往合作對象」文字。它是獨立放在頭貼框上方的文字外框效果。 */
  position: absolute;
  z-index: 4;
  top: 87.9%;
  left: 51.6%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-rounded);
  font-size: clamp(18px, 2.15vw, 42px);
  line-height: 1;
  font-weight: 900;
  -webkit-text-stroke: clamp(2px, .51vw, 10px) #191919;
  /* `-webkit-text-stroke` 是文字描邊。第一個值是粗細，第二個是顏色；改成 `3px red` 會變紅框。 */
  paint-order: stroke fill;
  /* `paint-order: stroke fill` 讓描邊先畫、文字填色後畫，字面比較乾淨。 */
  filter: drop-shadow(0 clamp(2px, .22vw, 4px) 0 #191919);
  /* `drop-shadow(x y blur color)` 是陰影；這裡 x=0、y 有位移、blur=0，做出下方黑色壓影。 */
  white-space: nowrap;
  /* `nowrap` 禁止換行，避免「過往合作對象」被拆成兩行。 */
}

.trust-box {
  /* 四個頭貼的白色大框。`top/left/width/height` 都是相對 Hero 的百分比。 */
  position: absolute;
  z-index: 3;
  top: 91%;
  left: 24%;
  display: flex;
  width: 55.2%;
  height: 19.6%;
  align-items: center;
  justify-content: center;
  gap: 6.3%;
  border: clamp(4px, .52vw, 10px) solid var(--ink);
  border-radius: clamp(18px, 2.4vw, 46px);
  background: var(--white);
  box-shadow: 0 9px 0 var(--ink);
}

.trust-box a {
  /* 頭貼外層連結。把寬度放在 a 上，圖片包進連結後尺寸才不會跑掉。 */
  position: relative;
  display: block;
  width: 12.42%;
  aspect-ratio: 1;
  color: inherit;
  text-decoration: none;
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.trust-box a::after {
  /* 滑鼠移到頭貼上時出現的頻道名字小標籤。 */
  content: attr(data-name);
  position: absolute;
  right: 50%;
  top: calc(100% + clamp(8px, .9vw, 16px));
  z-index: 8;
  width: max-content;
  max-width: 210px;
  padding: .38em .7em;
  color: var(--ink);
  font-size: clamp(12px, 1vw, 17px);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  background: var(--white);
  border: clamp(2px, .2vw, 4px) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 clamp(3px, .32vw, 6px) 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -8px) scale(.94);
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2, .8, .2, 1);
}

.trust-box a:hover,
.trust-box a:focus-visible {
  transform: translateY(-7%);
}

.trust-box a:hover::after,
.trust-box a:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0) scale(1);
}

.trust-box img {
  /* 頭貼圖片。`aspect-ratio: 1` 讓寬高維持 1:1，再用 border-radius 變圓。 */
  width: 100%;
  height: 100%;
  border: clamp(3px, .36vw, 7px) solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
}

.works-section {
  /* 作品區黑色背景。用正常 grid 排版，讓長影片增加時可以自然把短影片往下推。 */
  --shorts-top-space: clamp(78px, 7vw, 150px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "long-title long-title"
    "long-grid long-grid"
    "shorts-row short-title"
    "works-cta works-cta";
  column-gap: clamp(18px, 2.4vw, 46px);
  width: 100%;
  height: auto;
  min-height: clamp(850px, 118vw, 2260px);
  margin: 0;
  padding: clamp(154px, 10.2vw, 230px) 8.6% clamp(86px, 7.5vw, 150px);
  overflow: hidden;
  color: var(--white);
  background: var(--dark-section);
  clip-path: none;
  /* Hero 和作品區之間維持水平交界，不套用 section 斜線。 */
}

.works-section::before,
.price-section::before {
  /* 作品區與價格區共用的 halftone 材質層。
     `::before` 會蓋在背景上，但因為 pointer-events none，不會擋滑鼠點擊。 */
  position: absolute;
  inset: 0;
  background-image: url("assets/texture/halftone-optimized.webp");
  background-position: center top;
  background-size: clamp(320px, 340vw, 6500px);
  /* 材質大小：數字越小，圓點越密；數字越大，圓點越大越稀。 */
  opacity: .18;
  /* `opacity` 是透明度，0 完全透明、1 完全不透明。 */
  content: "";
  pointer-events: none;
}

.work-title {
  /* 長影片與短影片標題的共用外層。`long-title` 和 `short-title` 只負責各自位置。 */
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 32px);
  font-family: var(--font-main);
  font-weight: 900;
}

.work-title span {
  /* 標題裡「長 / 短」的白色方塊。 */
  display: grid;
  place-items: center;
  border: clamp(3px, .42vw, 8px) solid #191919;
  border-radius: clamp(12px, 1.45vw, 28px);
  background: var(--white);
  color: var(--ink);
  font-size: clamp(36px, 5vw, 96px);
  line-height: 1;
  -webkit-text-stroke: clamp(1px, .12vw, 2px) #191919;
  paint-order: stroke fill;
}

.long-title span {
  /* 「長」的方塊固定成 16:9。只要改 width，height 會依照 16:9 自動算出來。 */
  width: clamp(96px, 10.6vw, 204px);
  aspect-ratio: 16 / 9;
}

.short-title span {
  /* 「短」的方塊固定成 9:16。只要改 width，height 會依照 9:16 自動算出來。 */
  width: clamp(54px, 5.9vw, 114px);
  aspect-ratio: 9 / 16;
}

.work-title b {
  /* 標題裡「影片」兩字。`b` 是 HTML 內建粗體標籤，但真正粗細由 CSS 的 font-weight 繼承與字體決定。 */
  font-size: clamp(40px, 5.6vw, 108px);
  line-height: .9;
  -webkit-text-stroke: clamp(2px, .26vw, 5px) #191919;
  paint-order: stroke fill;
}

.long-title {
  /* 長影片標題現在跟著正常排版流走，不再用絕對座標。 */
  grid-area: long-title;
  width: fit-content;
  margin: 0 0 clamp(38px, 3.6vw, 78px);
}

.short-title {
  /* 短影片標題固定跟短影片列同一排，長影片變多時會一起往下。 */
  grid-area: short-title;
  align-self: start;
  justify-self: end;
  margin-top: var(--shorts-top-space);
  flex-direction: column;
  gap: clamp(16px, 2vw, 38px);
}

.short-title b {
  /* `writing-mode: vertical-rl` 讓「影片」直排；若改成 `horizontal-tb` 會回到橫排。 */
  writing-mode: vertical-rl;
  letter-spacing: .12em;
}

.long-grid {
  /* 長影片九宮格。`repeat(3, 1fr)` 表示三欄，每欄等寬。 */
  position: relative;
  z-index: 2;
  grid-area: long-grid;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(38px, 3.1vw, 72px) clamp(40px, 3.75vw, 86px);
  isolation: isolate;
}

.long-grid article {
  /* 單一作品卡。hover 放大時需要超出原本框線，所以這裡不能用 hidden。 */
  position: relative;
  z-index: 0;
  overflow: visible;
}

.long-grid article:hover,
.long-grid article:focus-within {
  /* 讓正在放大的作品蓋在旁邊作品上方，不會被鄰近卡片壓住。 */
  z-index: 6;
}

.long-grid article a {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  transition: filter 180ms var(--ease-out-quart);
}

.long-grid article a:focus-visible {
  outline: 3px solid #ffd670;
  outline-offset: 5px;
}

.long-grid article a:hover > img {
  transform: translateY(-2px);
}

.long-grid article a:hover,
.long-grid article a:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.045);
}

@keyframes work-bounce-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  55% {
    transform: translateY(-6px) scale(1.07);
  }

  78% {
    transform: translateY(-2px) scale(1.025);
  }

  100% {
    transform: translateY(-3px) scale(1.045);
  }
}

@media (hover: hover) and (pointer: fine) {
  .long-grid article a:hover,
  .long-grid article a:focus-visible,
  .shorts-row a:hover,
  .shorts-row a:focus-visible {
    animation: work-bounce-pop 360ms cubic-bezier(.22, 1, .36, 1) both;
    will-change: transform;
  }
}

.long-grid article a > img {
  /* 作品縮圖。`aspect-ratio: 480 / 272` 接近 16:9，會讓所有縮圖高度一致。 */
  width: 100%;
  aspect-ratio: 480 / 272;
  border: 3px solid #eee;
  border-radius: 5px;
  object-fit: cover;
  transition: transform .18s ease;
}

.long-grid .work-meta {
  /* 縮圖下方的頭像與作品名稱列。 */
  display: grid;
  align-items: center;
  grid-template-columns: 13.5% 1fr;
  gap: 3%;
  margin-top: 1.8%;
}

.long-grid .work-meta img {
  /* 每個作品下方的小頭像。 */
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.long-grid p {
  /* 作品標題文字。`line-height` 控制行距；字太擠可改成 1.4。 */
  margin: 0;
  color: #e8e8e8;
  font-family: var(--font-rounded);
  font-size: clamp(9px, 1.05vw, 20px);
  font-weight: 600;
  line-height: 1.25;
}

.work-badges {
  /* 作品類型與標籤列。位置跟設計圖一樣放在標題列下方。 */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(3px, .42vw, 8px);
  margin-top: clamp(4px, .55vw, 10px);
  padding-left: calc(13.5% + 3%);
}

.work-badge {
  /* 類型和標籤共用的小字框設定。 */
  display: inline-flex;
  min-height: clamp(14px, 1.56vw, 30px);
  align-items: center;
  justify-content: center;
  padding: clamp(2px, .24vw, 4px) clamp(7px, .78vw, 110px);
  border: 1px solid rgba(248, 248, 246, .24);
  color: #f8f8f6;
  font-family: var(--font-rounded);
  font-size: clamp(8px, 1.0vw, 18px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .22);
}

.work-type {
  /* 影片類型：倒圓角矩形。 */
  border-radius: clamp(3px, .35vw, 6px);
  background: #56599c;
}

.work-tag {
  /* 影片標籤：膠囊狀。 */
  border-radius: 999px;
  background: #85884d;
}

.shorts-row {
  /* 短影片列表。桌機和平板用五欄，手機在下方 media query 改成三欄。 */
  position: relative;
  grid-area: shorts-row;
  justify-self: stretch;
  display: grid;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: var(--shorts-top-space);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.15vw, 22px);
  align-items: start;
  overflow: visible;
}

.shorts-row a {
  /* 每張短片連結都是一張完整 9:16 卡片，不再互相疊壓。 */
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  margin-left: 0;
  color: inherit;
  text-decoration: none;
  transform-origin: center;
  transition: filter 180ms var(--ease-out-quart);
}

.shorts-row a:focus-visible {
  outline: 3px solid #ffd670;
  outline-offset: 5px;
}

.shorts-row img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 2px solid #eee;
  border-radius: 5px;
  box-shadow: none;
}

.shorts-row a:first-child {
  margin-left: 0;
}

.shorts-row a:nth-child(1) { z-index: 1; }
.shorts-row a:nth-child(2) { z-index: 2; }
.shorts-row a:nth-child(3) { z-index: 3; }
.shorts-row a:nth-child(4) { z-index: 4; }
.shorts-row a:nth-child(5) { z-index: 5; }

.shorts-row a:hover,
.shorts-row a:focus-visible {
  z-index: 12;
  transform: translateY(-1.5%) scale(1.045);
  filter: brightness(1.08);
}

.works-cta {
  /* 作品看完後的快速聯絡入口。跟著作品內容流動，作品變多時會自然往下。 */
  position: relative;
  z-index: 2;
  grid-area: works-cta;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 24px);
  margin-top: clamp(34px, 3.2vw, 70px);
  padding: clamp(10px, 1vw, 20px) clamp(14px, 1.45vw, 28px);
  border: clamp(3px, .24vw, 6px) solid #191919;
  /*margin-top: clamp(12px, 10.2vh, 54px);*/
  border-radius: 999px;
  background: var(--white);
  /*box-shadow: clamp(5px, .62vw, 12px) clamp(5px, .62vw, 12px) 0 #191919;*/
  color: var(--ink);
  font-family: var(--font-rounded);
}

.works-cta p {
  /* CTA 左邊短句。 */
  margin: 0;
  font-size: clamp(14px, 1.28vw, 25px);
  font-weight: 900;
}

.works-cta a {
  /* CTA 右邊按鈕。 */
  display: inline-grid;
  min-height: clamp(36px, 3.1vw, 60px);
  place-items: center;
  padding: 0 clamp(16px, 1.45vw, 28px);
  border: clamp(2px, .14vw, 4px) solid #191919;
  border-radius: 999px;
  background: #ffd670;
  font-size: clamp(14px, 1.2vw, 23px);
  font-weight: 900;
  /*box-shadow: clamp(3px, .35vw, 7px) clamp(3px, .35vw, 7px) 0 #191919;*/
}

.work-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 56px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out-quart), visibility 0s linear 240ms;
}

.work-preview-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.work-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
}

.work-preview-frame {
  position: relative;
  width: min(82vw, 1580px);
  max-height: min(86svh, 850px);
  transform: translateY(16px) scale(.98);
  transition: transform 280ms var(--ease-out-quart);
}

.work-preview-modal.is-open .work-preview-frame {
  transform: translateY(0) scale(1);
}

.work-preview-dialog {
  position: relative;
  display: flex;
  width: 100%;
  max-height: inherit;
  flex-direction: column;
  padding: clamp(24px, 3vw, 54px);
  border: clamp(4px, .42vw, 8px) solid #191919;
  border-radius: clamp(24px, 2.2vw, 42px);
  background: var(--white);
  box-shadow: clamp(8px, .95vw, 18px) clamp(8px, .95vw, 18px) 0 #191919;
  color: var(--ink);
  font-family: var(--font-rounded);
  overflow: hidden;
}

.work-preview-dialog::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("assets/texture/grid.svg") center / clamp(220px, 34vw, 640px) auto repeat;
  content: "";
  opacity: .2;
  pointer-events: none;
}

.work-preview-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.work-preview-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  width: clamp(32px, 2.7vw, 46px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid #191919;
  border-radius: 50%;
  background: var(--white);
  color: #191919;
  cursor: pointer;
  transform: translate(50%, -50%);
  transition: transform 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}

.work-preview-close::before,
.work-preview-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: clamp(3px, .27vw, 5px);
  border-radius: 999px;
  background: #191919;
  content: "";
  transform-origin: center;
}

.work-preview-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.work-preview-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.work-preview-close:hover,
.work-preview-close:focus-visible {
  background: #ffd670;
  transform: translate(50%, -50%) scale(1.06);
}

.work-preview-close:active {
  transform: translate(50%, -50%) scale(.96);
}

.work-preview-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: clamp(8px, .9vw, 16px);
  scrollbar-color: #191919 rgba(25, 25, 25, .12);
  scrollbar-width: thin;
}

.work-preview-scroll::-webkit-scrollbar {
  width: clamp(10px, .85vw, 14px);
}

.work-preview-scroll::-webkit-scrollbar-track {
  border: 2px solid #191919;
  border-radius: 999px;
  background: rgba(255, 214, 112, .42);
}

.work-preview-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #191919;
  border-radius: 999px;
  background: #191919;
}

.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.65vw, 28px);
}

.work-preview-modal[data-preview-type="short"] .work-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: clamp(2px, .18vw, 4px) solid #191919;
  object-fit: cover;
  background: #d9d9d2;
}

.work-preview-modal[data-preview-type="short"] .work-preview-grid img {
  aspect-ratio: 9 / 16;
}

.work-preview-empty {
  display: none;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 60px);
  border: 3px dashed rgba(25, 25, 25, .45);
  border-radius: 18px;
  color: #333;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 900;
  text-align: center;
}

.work-preview-modal.is-empty .work-preview-empty {
  display: block;
}

.work-preview-modal.is-empty .work-preview-grid {
  display: none;
}

.work-preview-cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  width: fit-content;
  min-height: clamp(44px, 4vw, 70px);
  align-items: center;
  justify-content: center;
  gap: clamp(8px, .8vw, 14px);
  margin: clamp(22px, 2.5vw, 42px) auto 0;
  padding: 0 clamp(22px, 2.3vw, 42px);
  border: clamp(2px, .2vw, 4px) solid #191919;
  border-radius: 999px;
  background: #ffd670;
  color: #191919;
  font-family: var(--font-rounded);
  font-size: clamp(20px, 2vw, 36px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform-origin: center;
  transition:
    transform 180ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-out-quart),
    filter 180ms var(--ease-out-quart);
}

.work-preview-cta:hover,
.work-preview-cta:focus-visible {
  transform: scale(1.045);
  filter: brightness(1.03);
  box-shadow: 0 4px 0 #191919;
}

.work-preview-cta:active {
  transform: scale(.985);
  box-shadow: 0 2px 0 #191919;
}

.work-preview-cta i {
  position: relative;
  display: block;
  width: clamp(18px, 1.7vw, 30px);
  aspect-ratio: 1;
  background: #191919;
  clip-path: polygon(24% 12%, 24% 88%, 88% 50%);
}

.work-preview-cta i::after {
  position: absolute;
  inset: 3px 4px 3px 3px;
  background: #fffef6;
  clip-path: inherit;
  content: "";
}

@media (min-width: 721px) and (max-width: 1080px) {
  .work-preview-frame {
    width: min(90vw, 900px);
    max-height: 88svh;
  }

  .work-preview-grid,
  .work-preview-modal[data-preview-type="short"] .work-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.is-preview-open {
  overflow: hidden;
}

.about-section,
.contact-section {
  /* 關於區與聯絡區共用淡黃色底。 */
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #ffd670;
}

.about-section::before,
.contact-section::before {
  /* 淡黃色區塊上方的 grid.svg 材質層。 */
  position: absolute;
  inset: -18%;
  background-image: url("assets/texture/grid.svg");
  background-position: center top;
  background-size: clamp(360px, 150vw, 3000px);
  content: "";
  opacity: .20;
  pointer-events: none;
  transform: rotate(-12deg) scale(1.22);
  /* `rotate(-12deg)` 讓材質斜一點；`scale(1.22)` 放大材質避免邊緣露空。 */
  transform-origin: center;
}

.about-section > *,
.contact-section > * {
  /* `>` 是子代選擇器，只選 about/contact 直接下一層元素。
     這裡把真正內容放到材質層上面。 */
  position: relative;
  z-index: 1;
}

.about-section {
  /* 關於區高度與上方留白。 */
  z-index: 2;
  /* 讓關於區的斜線上緣蓋到作品區上方，否則會被 works-section 的 z-index 壓住。 */
  min-height: 0;
  margin-top: calc(var(--section-slant) * -1);
  padding-top: calc(clamp(80px, 7vw, 134px) + var(--section-slant));
  padding-bottom: clamp(84px, 9vw, 170px);
  clip-path: polygon(0 var(--section-slant), 100% 0, 100% 100%, 0 100%);
}

.about-section h1,
.contact-section h1 {
  /* 兩個淡黃色區塊的大標共用樣式。 */
  margin: 0;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(50px, 5.3vw, 102px);
  line-height: 1;
  color: var(--white);
  text-align: center;
  -webkit-text-stroke: clamp(2px, .2vw, 4px) #191919;
  paint-order: stroke fill;
  filter: none;
}

.about-section h1::after,
.contact-section h1::after {
  /* 大標下面的小橫線，由假元素產生。改 width 可變長短，改 height 可變粗細。 */
  display: block;
  width: clamp(42px, 4.8vw, 92px);
  height: clamp(6px, .68vw, 13px);
  margin: clamp(10px, 1.2vw, 23px) auto 0;
  border: clamp(2px, .18vw, 3px) solid #191919;
  border-radius: 2px;
  background: var(--white);
  box-shadow: none;
  content: "";
}

.about-problem {
  /* 角色圖和困擾清單的外層。`grid` 讓圖片在左、文字在右，整組一起移動。 */
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 94%;
  align-items: center;
  grid-template-columns: clamp(250px, 21vw, 410px) clamp(660px, 50vw, 980px);
  justify-content: center;
  gap: 0%;
  margin: 2.5% auto 0;
}

.about-problem > img {
  /* 左邊角色圖。要移動圖片只改 `transform` 的兩個數字：第一個左右，第二個上下。 */
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: none;
  width: 113%;
  justify-self: end;
  transform: translate(1%, 34px);
}

.intro-text {
  align-items: center;
  width: 52.5%;
  margin: 5.5% auto 0%;
}

.intro-text p {
  /* 自我介紹段落。`width: 84%` 讓文字不要太長。 */
  text-align: center;
  width: 100%;
  margin: 0 0 2.1%;
  font-size: clamp(11px, 1.12vw, 21px);
  font-weight: 400;
  line-height: 1.65;
}
.problem-list {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-left: -8%;
  /* 再把右邊文字整組往左拉。 */
}
.problem-list h2 {
  /* 「不知道你是否有以下困擾?」副標。 */
  margin: 0 0 1.5%;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(28px, 3.65vw, 70px);
  text-align: center;
  transform: translate(-20%, 0px);
}

.problem-list ul {
  /* 困擾清單容器。`list-style: none` 拿掉瀏覽器預設圓點，因為我們自己放 icon。 */
  display: grid;
  gap: clamp(6px, .65vw, 13px);
  width: 80%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  /* 單一困擾項目。`grid-template-columns: 7% 1fr` 左邊放 icon，右邊放文字。 */
  display: grid;
  min-height: clamp(34px, 4vw, 77px);
  align-items: center;
  grid-template-columns: 7% 1fr;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 0 3%;
  font-size: clamp(10px, 1.04vw, 20px);
  font-weight: 900;
}

.problem-list li img {
  /* 困擾項目前方 icon 大小。 */
  width: 64%;
}

@media (min-width: 1081px) {
  .about-problem {
    transform: translateX(clamp(88px, 8.25vw, 158px));
  }
}

.mission-note {
  /* 虛線框使命說明。三欄分別是左圖、中間文字、右圖。 */
  position: relative;
  isolation: isolate;
  display: grid;
  width: 83%;
  min-height: clamp(150px, 16.2vw, 312px);
  align-items: center;
  margin: 4.4% auto 0;
  border: 0;
  padding: 2.6% 9%;
  font-size: clamp(14px, 1.65vw, 32px);
  font-weight: 500;
  line-height: 1.38;
  text-align: center;
}

.mission-note::before {
  position: absolute;
  z-index: 0;
  inset: 0 1% 2%;
  background: center / 100% 100% no-repeat url("assets/虛線.png");
  content: "";
  pointer-events: none;
}

.mission-note::after {
  content: none;
}

.mission-note img {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(44px, 5.2vw, 100px);
  height: clamp(44px, 5.2vw, 100px);
  object-fit: contain;
  filter:
    brightness(0)
    invert(1)
    drop-shadow(2px 0 0 #191919)
    drop-shadow(-2px 0 0 #191919)
    drop-shadow(0 2px 0 #191919)
    drop-shadow(0 -2px 0 #191919)
    drop-shadow(2px 2px 0 #191919);
}

.mission-note img:first-of-type {
  top: 3%;
  left: 9%;
  width: clamp(58px, 6.4vw, 103px);
  height: auto;
  opacity: 1;
  transform: rotate(-8deg);
}

.mission-note img:last-of-type {
  right: 8%;
  bottom: 6%;
  transform: rotate(-24deg);
}

.mission-note p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #f8f8f6;
  font-family: var(--font-rounded);
  -webkit-text-stroke: clamp(2px, .22vw, 4px) #191919;
  paint-order: stroke fill;
  filter: drop-shadow(clamp(2px, .14vw, 4px) clamp(2px, .14vw, 4px) 0 #191919);
}

.mission-note p span {
  font-weight: 900;
}

.duty-section {
  /* 我們的職責區塊。放在 mission-note 和 dashboard-paper 中間。 */
  width: min(76vw, 1340px);
  margin: clamp(62px, 7vw, 132px) auto 0;
  text-align: center;
}

.duty-section > h2 {
  /* 標題沿用「合作流程」白框語言，但尺寸約為合作流程標題的 70%。 */
  width: fit-content;
  margin: 0 auto clamp(44px, 5vw, 88px);
  padding: clamp(8px, .84vw, 16px) clamp(34px, 4.4vw, 78px);
  border: clamp(4px, .4vw, 7px) solid var(--ink);
  border-radius: clamp(14px, 1.08vw, 20px);
  background: var(--white);
  box-shadow: clamp(5px, .42vw, 8px) clamp(5px, .42vw, 8px) 0 var(--ink);
  font-family: var(--font-main);
  font-size: clamp(27px, 2.9vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.duty-grid {
  /* 四張職責卡片。桌機四欄，窄螢幕會在下面 media query 改成兩欄或一欄。 */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 26px);
  align-items: stretch;
  perspective: 1200px;
  perspective-origin: center center;
}

.duty-card {
  /* 單張卡片。底色用 --paper，外框用虛線對應設計稿。 */
  position: relative;
  display: grid;
  --duty-illustration-row: clamp(188px, 10vw, 248px);
  grid-template-rows: auto var(--duty-illustration-row) 1fr;
  align-content: start;
  justify-items: center;
  min-height: clamp(330px, 28vw, 540px);
  padding: clamp(20px, 1.75vw, 34px) clamp(18px, 1.5vw, 30px) clamp(22px, 2vw, 38px);
  border: clamp(2px, .2vw, 2px) dashed var(--ink);
  border-radius: clamp(18px, 1.45vw, 28px);
  background: var(--paper);
}

.duty-card h3 {
  /* 卡片內標題。 */
  margin: 0;
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: clamp(30px, 2.75vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
}

.duty-card img {
  /* 卡片插圖。共用基礎設定；每張圖的實際大小在下面四個 class 分開調。 */
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  margin: 0 auto;

  /* 先讓圖片盒子維持 100%，這樣 grid 比較好置中。 */
  width: 100%;

  /* 解除全域 max-width 限制，避免放大被壓住。 */
  max-width: none;

  /* 用 transform 視覺放大，不改變圖片盒子的排版寬度。 */
  transform: scale(var(--duty-img-scale, 1));

  /* 從圖片中心放大。 */
  transform-origin: center center;
  object-fit: contain;
}

.duty-preview img {
  /* 「預覽」插圖大小。數字越大，圖越大。 */
  --duty-img-scale: 1.4;
}

.duty-communication img {
  /* 「溝通」插圖大小。數字越大，圖越大。 */
  --duty-img-scale: 1.1;
}

.duty-control img {
  /* 「掌握」插圖大小。數字越大，圖越大。 */
  --duty-img-scale: 1.5;
}

.duty-fix img {
  /* 「修正」插圖大小。數字越大，圖越大。 */
  --duty-img-scale: 1.4;
}

.duty-card p {
  /* 卡片內文。大小約為標題的 36%，顏色照需求使用 #333333。 */
  max-width: 17.5em;
  margin: 0 auto;
  color: #333333;
  font-family: var(--font-rounded);
  font-size: clamp(12px, .98vw, 19px);
  font-weight: 600;
  line-height: 1.66;
  letter-spacing: 0;
  text-align: center;
  text-wrap: pretty;
  z-index: 2;
}

.duty-preview p {
  margin-top: 0;
}

.duty-communication p {
  margin-top: 0;
}

.duty-control p {
  margin-top: 0;
}

.duty-fix p {
  margin-top: 0;
}

.dashboard-paper {
  /* 實時專案儀表板紙張。`clip-path` 是多邊形剪裁，讓方形元素變成不規則紙張。 */
  position: relative;
  z-index: 0;
  scroll-margin-top: clamp(80px, 8vw, 150px);
  width: min(64%, 1123px);
  aspect-ratio: 1123 / 1214;
  margin: 5.3% auto 0;
  padding: 8.8% 11.2% 7.4%;
  background: #f8f8f8;
  clip-path: polygon(22% 4%, 48% 0%, 87% 9%, 95% 28%, 95% 45%, 90% 55%, 96% 73%, 86% 88%, 49% 100%, 16% 94%, 3% 75%, 8% 58%, 7% 42%, 11% 21%);
  /* `polygon()` 裡每組是 `x y` 座標百分比；改它可改紙張形狀，但容易變形，建議小幅調整。 */
  text-align: center;
}

.dashboard-paper::before {
  /* 紙張粗黑外框。做法是放一層黑色同形狀在背後。 */
  position: absolute;
  inset: 0;
  background: var(--ink);
  clip-path: inherit;
  content: "";
  pointer-events: none;
  z-index: -2;
}

.dashboard-paper::after {
  /* 紙張白色內層。`inset: 1.4%` 讓它比黑框小一點，黑色外框才會露出。 */
  position: absolute;
  inset: 1.4%;
  background: #f8f8f8;
  clip-path: inherit;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.dashboard-paper h2 {
  /* 紙張內的標題框。 */
  display: inline-block;
  margin: 0 0 4.2%;
  padding: 1.7% 5.6%;
  border: clamp(3px, .42vw, 8px) solid var(--ink);
  
  background: #f8f8f8;
  box-shadow: 0 clamp(3px, .32vw, 6px) 0 var(--ink);
  font-family: var(--font-rounded);
  font-weight: 900;
  font-size: clamp(24px, 3.15vw, 60px);
  line-height: 1.05;
  letter-spacing: .01em;
}

.dashboard-paper p {
  /* 紙張內一般段落共用設定；特定段落再用 `.paper-question` 等 class 微調。 */
  margin: 0 auto;
  font-size: clamp(11px, 1.16vw, 22px);
  font-weight: 900;
  line-height: 1.5;
  text-wrap: pretty;
}

.paper-question {
  /* 第一段問題文字的下方距離。`!important` 用來蓋過 `.dashboard-paper p` 的共用規則。 */
  margin-bottom: 4% !important;
  max-width: 68%;
}

.paper-lead {
  /* Deadline 說明文字，比一般段落稍大。 */
  max-width: 65%;
  margin-bottom: 3.1% !important;
  font-size: clamp(14px, 1.34vw, 26px) !important;
  line-height: 1.42 !important;
}

.project-system {
  width: 150%;
  max-width: none;
  margin: 0 0 0.5% 60%;
  transform: translateX(-50%);
}

.dashboard-details {
  /* 手機版才會顯示的儀表板文字資料；桌機版保持 PSD 圖片為主，所以預設隱藏。 */
  display: none;
  font-family: var(--font-rounded);
}

.paper-bottom {
  /* 紙張底部說明文字。 */
  max-width: 88%;
  margin-top: 2.4% !important;
  font-size: clamp(13px, 1.33vw, 26px) !important;
  line-height: 1.48 !important;
  
  font-weight: 600 !important; 
}

.process-block {
  /* 合作流程整區。 */
  position: relative;
  width: min(58vw, 1020px);
  margin: 6% auto 0;
}

.process-block > h2 {
  /* 合作流程大白框標題。 */
  width: fit-content;
  margin: 0 auto 7.4%;
  padding: clamp(10px, 1.2vw, 22px) clamp(46px, 6.3vw, 112px);
  border: clamp(5px, .55vw, 9px) solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  font-family: var(--font-main);
  font-weight: 900;
  font-size: clamp(38px, 4.15vw, 80px);
  box-shadow: clamp(6px, .6vw, 11px) clamp(6px, .6vw, 11px) 0 var(--ink);
}

.process-map {
  /* 流程卡片與虛線路徑的定位容器。 */
  position: relative;
  min-height: clamp(720px, 76vw, 900px);
}

.flow-path {
  /* SVG 虛線路徑的位置。 */
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-path-mobile {
  display: none;
}

.flow-path .flow-line {
  /* SVG 內真正的線。`stroke-dasharray: 10 14` 代表 10 單位線段、14 單位空白，形成虛線。 */
  fill: none;
  stroke: #191919;
  stroke-width: clamp(3px, .34vw, 6px);
  stroke-dasharray: 8 13;
  stroke-linecap: round;
  marker-end: url(#flow-arrow);
}

.flow-reveal-mask-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.motion-ready .process-map.is-flow-visible .flow-reveal-mask-line {
  animation: flow-line-grow 1800ms var(--ease-out-quint) 180ms both;
}

@keyframes flow-line-grow {
  to {
    stroke-dashoffset: 0;
  }
}

.flow-path marker path {
  fill: none;
  stroke: #191919;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-card {
  /* 所有流程圖片節點共用樣式。每張圖再用 `.issue/.notion/...` 設定各自位置。 */
  position: absolute;
  z-index: 1;
}

.flow-card img {
  display: block;
  width: 100%;
  height: auto;
}

.flow-card b {
  position: absolute;
  
  display: block;
  width: max-content;
  color: #191919;
  font-family: var(--font-main);
  font-size: clamp(25px, 2.92vw, 56px);
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: clamp(5px, .52vw, 10px) #f8f8f6;
  paint-order: stroke fill;
  filter:
    drop-shadow(1px 0 0 #191919)
    drop-shadow(-1px 0 0 #191919)
    drop-shadow(0 1px 0 #191919)
    drop-shadow(0 -1px 0 #191919)
    drop-shadow(clamp(2px, .22vw, 4px) clamp(2px, .22vw, 4px) 0 #191919);
  white-space: nowrap;
}

.issue { top: 4%; left: 2%; width: 31%; transform: rotate(-4deg); }
/* 以下 `.issue` 到 `.done` 是每個流程節點的位置。改 top/left/right 會移動，改 transform rotate 會旋轉。 */
.notion { top: 3%; right: 4%; width: 25%; transform: rotate(7deg); }
.window { top: 31%; left: 34%; width: 31%; }
.version { top: 57%; left: 4%; width: 22%; transform: rotate(-7deg); }
.fix { top: 67%; right: 7%; width: 22%; transform: rotate(8deg); }
.done { top: 85%; left: 36%; width: 29%; }
.issue b { left: 28%; top: 73%; font-size: clamp(16px, 1.65vw, 30px); }
.notion b { right: -10%; top: 80%; font-size: clamp(16px, 1.7vw, 31px); }
.window b { left: 35%; top: 78%; font-size: clamp(17px, 2.85vw, 63px); }
.version b { left: 7%; top: 76%; font-size: clamp(16px, 1.7vw, 31px); }
.fix b { left: 10%; top: 72%; font-size: clamp(16px, 1.75vw, 32px); }
.done b { left: 50%;transform: translateX(-50%); top: 78%; text-align: center; font-size: clamp(15px, 1.62vw, 30px); }

.flow-info {
  /* 流程節點旁的 i 圖示。hover 或鍵盤 focus 時會顯示說明。 */
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(22px, 2.35vw, 44px);
  aspect-ratio: 1;
  border: clamp(2px, .2vw, 4px) solid #191919;
  border-radius: 50%;
  background: #f8f8f6;
  color: #191919;
  box-shadow: clamp(2px, .2vw, 4px) clamp(2px, .2vw, 4px) 0 #191919;
  cursor: help;
  font-family: var(--font-rounded);
  font-size: clamp(13px, 1.2vw, 23px);
  font-weight: 900;
  line-height: 1;
}

.flow-info::after {
  /* 說明泡泡。文字來源是 HTML 裡的 data-info。 */
  content: attr(data-info);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  width: min(310px, 42vw);
  padding: 12px 14px;
  border: 3px solid #191919;
  border-radius: 10px;
  background: #f8f8f6;
  color: #191919;
  box-shadow: 4px 4px 0 #191919;
  font-size: clamp(12px, .98vw, 16px);
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: normal;
}

.flow-info::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  z-index: 6;
  width: 12px;
  height: 12px;
  border-right: 3px solid #191919;
  border-bottom: 3px solid #191919;
  background: #f8f8f6;
  opacity: 0;
  transform: translate(-50%, 8px) rotate(45deg);
  transition: opacity .18s ease, transform .18s ease;
}

.flow-info:hover::after,
.flow-info:focus-visible::after,
.flow-info:hover::before,
.flow-info:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flow-info:hover,
.flow-info:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.flow-info:focus-visible {
  outline: 3px solid #f4cc54;
  outline-offset: 3px;
}

.issue .flow-info { left: 0%; top: 68%;transform: rotate(4deg); }
.version .flow-info { left: 0%; top: 44%; transform: rotate(7deg); }
.fix .flow-info { left: 56%; top: 70%; transform: rotate(-8deg);}

.version .flow-info::after {
  left: 0;
  transform: translate(-8%, 8px);
}

.version .flow-info:hover::after,
.version .flow-info:focus-visible::after {
  transform: translate(-8%, 0);
}

.fix .flow-info::after {
  right: 0;
  left: auto;
  transform: translate(8%, 8px);
}

.fix .flow-info:hover::after,
.fix .flow-info:focus-visible::after {
  transform: translate(8%, 0);
}

.price-section {
  /* 價格黑色區塊。 */
  position: relative;
  z-index: 3;
  /* 價格區需要蓋在關於區上面，才看得到兩區之間的斜線。 */
  width: 100%;
  min-height: 0;
  margin: calc(var(--section-slant) * -1) 0 0;
  padding: calc(clamp(70px, 7.5vw, 132px) + var(--section-slant)) 0 clamp(78px, 7.6vw, 132px);
  overflow: hidden;
  color: var(--white);
  background: var(--dark-section);
  text-align: center;
  clip-path: polygon(0 var(--section-slant), 100% 0, 100% 100%, 0 100%);
}

.price-section h1 {
  /* 價格標題。依照需求，這裡特別取消文字外框，所以 `-webkit-text-stroke: 0`。 */
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-family: var(--font-main);
  font-size: clamp(50px, 5.3vw, 102px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  -webkit-text-stroke: 0;
  paint-order: normal;
  filter: none;
}

.price-section img {
  /* 價格區鈔票 icon。`filter: invert(1)` 把深色 SVG 反成白色。 */
  width: clamp(32px, 3.1vw, 58px);
  margin: clamp(16px, 1.8vw, 26px) auto clamp(20px, 2vw, 34px);
  filter: invert(1);
}

.price-table {
  position: relative;
  z-index: 1;
  width: min(54vw, 650px);
  margin: 0 auto clamp(42px, 4vw, 70px);
  font-family: var(--font-rounded);
  font-weight: 900;
}

.price-table h2 {
  margin: 0 0 clamp(18px, 1.8vw, 34px);
  font-size: clamp(24px, 2.25vw, 43px);
  line-height: 1;
}

.price-row {
  display: grid;
  grid-template-columns: clamp(92px, 8.8vw, 126px) 1fr clamp(116px, 11vw, 160px);
  align-items: center;
  min-height: clamp(58px, 5vw, 82px);
  border-top: 2px solid rgba(248, 248, 246, .7);
  background: transparent;
  color: #f8f8f6;
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.25;
  text-align: center;
}

.price-row:last-child {
  border-bottom: 2px solid rgba(248, 248, 246, .7);
}

.price-row > * {
  padding: clamp(8px, .72vw, 12px) clamp(8px, .82vw, 13px);
}

.price-row b {
  display: grid;
  min-height: clamp(42px, 4vw, 58px);
  place-items: center;
  border-radius: clamp(4px, .45vw, 7px);
  background: #f8f8f6;
  color: #191919;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.1;
  white-space: nowrap;
}

.price-head {
  min-height: 0;
  border-top: 0;
  font-size: clamp(17px, 1.55vw, 25px);
}

.price-head span {
  padding-top: 0;
  padding-bottom: clamp(10px, .9vw, 14px);
}

.price-head span:nth-child(2),
.price-head span:nth-child(3) {
  border-bottom: 0;
}

.price-head + .price-row {
  border-top-width: 4px;
}

.price-section p {
  /* 價格說明文字。 */
  position: relative;
  z-index: 1;
  max-width: 50rem;
  margin: 0 auto;
  font-size: clamp(18px, 1.75vw, 34px);
  font-weight: 500;
  line-height: 1.42;
  color: #f8f8f6;
}

.contact-section {
  /* 聯絡表單區高度與上方留白。 */
  z-index: 4;
  /* 聯絡區再蓋到價格區上面，保持每個 section 交界都有斜線。 */
  min-height: clamp(1070px, 103.39vw, 1985px);
  margin-top: calc(var(--section-slant) * -1);
  padding-top: calc(clamp(90px, 10.2vw, 196px) + var(--section-slant));
  clip-path: polygon(0 var(--section-slant), 100% 0, 100% 100%, 0 100%);
}

.contact-list {
  /* 直接聯繫區。做成一張獨立聯絡條，避免和下面表單紙張互相壓住。 */
  position: relative;
  display: grid;
  width: fit-content;
  max-width: calc(100% - clamp(64px, 8vw, 140px));
  margin: clamp(26px, 2.8vw, 54px) auto 0;
  padding: clamp(12px, 1.15vw, 22px);
  grid-template-columns: auto max-content;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.45vw, 28px);
  border: clamp(3px, .32vw, 6px) solid #191919;
  border-radius: clamp(18px, 1.8vw, 34px);
  background: rgba(255, 254, 246, .95);
  box-shadow: clamp(5px, .55vw, 10px) clamp(5px, .55vw, 10px) 0 #191919;
  color: #191919;
  font-family: var(--font-rounded);
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 900;
  transform: rotate(-.35deg);
}

.contact-label {
  /* 「直接聯繫 ▸」這一組。 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, .8vw, 16px);
  align-self: stretch;
  min-height: clamp(44px, 4.2vw, 80px);
  padding: 0 clamp(14px, 1.25vw, 24px);
  border: clamp(2px, .22vw, 4px) solid #191919;
  border-radius: 999px;
  background: #191919;
  color: #f8f8f6;
  box-shadow: clamp(3px, .32vw, 6px) clamp(3px, .32vw, 6px) 0 rgba(25, 25, 25, .28);
  white-space: nowrap;
}

.contact-label span {
  display: grid;
  width: clamp(24px, 2.1vw, 42px);
  aspect-ratio: 1;
  place-items: center;
  border: clamp(2px, .18vw, 3px) solid #191919;
  border-radius: 50%;
  background: #ffd670;
  color: #191919;
  line-height: 1;
}

.contact-items {
  /* 三個聯絡方式。桌機版橫排，平板/手機會改成單欄。 */
  display: grid;
  width: max-content;
  max-width: 100%;
  grid-template-columns: max-content max-content max-content;
  gap: clamp(8px, .8vw, 15px);
  justify-self: center;
  min-width: 0;
}

.contact-list p {
  /* 單一聯絡方式，例如 email 那一行。 */
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(8px, .75vw, 14px);
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: clamp(8px, .72vw, 14px) clamp(44px, 3.2vw, 58px) clamp(8px, .72vw, 14px) clamp(10px, .95vw, 18px);
  border: clamp(2px, .18vw, 3px) solid #191919;
  border-radius: 999px;
  background: #ffd670;
  box-shadow: clamp(2px, .24vw, 4px) clamp(2px, .24vw, 4px) 0 rgba(25, 25, 25, .34);
  line-height: 1.12;
  white-space: nowrap;
  overflow-wrap: normal;
}

.contact-value {
  min-width: 0;
}

.copy-contact {
  position: absolute;
  right: clamp(-9px, -.48vw, -5px);
  bottom: clamp(-14px, -.72vw, -8px);
  display: grid;
  width: clamp(34px, 2.05vw, 40px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #191919;
  color: #f8f8f6;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s ease;
}

.copy-contact:hover,
.copy-contact:focus-visible {
  background: #191919;
  transform: translateY(-2px) scale(1.08);
}

.copy-contact.is-copied {
  background: #191919;
  transform: scale(.9);
}

.copy-contact::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 8;
  width: max-content;
  padding: 4px 8px;
  border: 2px solid #191919;
  border-radius: 999px;
  background: #fffef6;
  box-shadow: 2px 2px 0 #191919;
  color: #191919;
  content: "複製成功";
  font-family: var(--font-rounded);
  font-size: clamp(10px, .72vw, 13px);
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px) scale(.94);
  transition:
    opacity 180ms var(--ease-out-quart),
    transform 180ms var(--ease-out-quart);
  white-space: nowrap;
}

.copy-contact.is-copied::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.copy-contact .copy-contact-icon {
  width: 54%;
  height: 54%;
  object-fit: contain;
  filter: invert(1);
  pointer-events: none;
}

@media (min-width: 1025px) {
  .copy-contact .copy-contact-icon {
    width: 38%;
    height: 38%;
  }
}

.contact-list img {
  /* 聯絡方式 icon。 */
  flex: 0 0 auto;
  width: clamp(22px, 1.85vw, 36px);
  height: clamp(22px, 1.85vw, 36px);
  object-fit: contain;
}


.request-form {
  /* 需求表單白紙區。`display: grid` 讓欄位可以兩欄排列。 */
  position: relative;
  display: grid;
  container-type: inline-size;
  --hole-size: clamp(8px, 2.25cqw, 18px);
  width: 52.8%;
  margin: clamp(42px, 4.8vw, 92px) auto 0;
  padding: 8.9% 6% 5%;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 38px) 7.5%;
  border: clamp(2px, .16vw, 3px) solid #191919;
  border-radius: clamp(8px, .75vw, 14px);
  background:
    #f2f2eb;
   
  /* `background` 這裡有兩層：第一層是 note.svg 材質，第二層是純色 #f2f2eb。順序不能顛倒，否則材質會被蓋住。 */
  box-shadow: 8px 8px 0 var(--ink);
}

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.request-form::before {
  /* ::before 是一個「假的子元素」，不用在 HTML 寫東西。
     我們把 note.svg 放到這一層。 */

  content: "";
  /* ::before 一定要有 content 才會出現。
     空字串代表它只是裝飾，不顯示文字。 */

  position: absolute;
  /* 讓這層可以鋪滿整個表單。 */

  
  inset: 0;
  /* 等於：
     top: 0;
     right: 0;
     bottom: 0;
     left: 0;
     代表貼齊表單四邊。 */

  background: url("assets/texture/note.svg") left top / clamp(190px, 50vw, 4200px) auto repeat;
  /* 這裡只放 note.svg 材質。
     clamp(...) 是材質大小，想改圖案大小就改這裡。 */

  border-radius: inherit;
  /* 繼承表單紙張的圓角，避免材質層在角落露出方形。 */

  opacity: .15;
  /* 只控制 note.svg 的透明度。
     1 = 完全不透明
     .5 = 半透明
     .2 = 很淡 */
  z-index: 0;
  pointer-events: none;
  /* 讓這層不會擋到滑鼠點擊輸入框。 */
}

.holes {
  /* 表單上方黑色裝訂孔。 */
  position: absolute;
  
  top: 2.4%;
  right: 6%;
  left: 6%;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4.9%;
  
}

.holes::before {
  /* 這個假元素目前只保留結構，不負責畫面；真正圓孔在下面 `.holes` 的 background。 */
  display: contents;
  content: "";
}

.holes {
  /* 用 radial-gradient 重複產生一排黑色圓孔。 */
  background: radial-gradient(circle, var(--ink) 0 var(--hole-size), transparent calc(var(--hole-size) + 1px)) left top / 9.09% calc(var(--hole-size) * 2.8) repeat-x;
  height: calc(var(--hole-size) * 2.8);
}

.request-form label {
  /* 表單欄位標題與輸入框的包裝。 */
  position: relative;
  display: grid;
  z-index: 1;
  gap: 8px;
  font-family: var(--font-rounded);
  font-size: clamp(11px, 1.08vw, 21px);
  font-weight: 900;
}

.type-field {
  /* 需求類型欄位有展開選單，所以層級要比其他輸入框高，避免選單被下面欄位蓋住。 */
  z-index: 20;
}

.type-field:has(.custom-select.is-open) {
  /* 選單打開時，再把整個欄位拉到最上層。 */
  z-index: 80;
}

.request-form label:not(.name-field):not(.type-field) {
  /* `:not()` 是 CSS 條件：除了姓名與需求類型以外，其餘欄位都跨滿兩欄。 */
  grid-column: 1 / -1;
}

.request-form input,
.request-form textarea,
.request-form select {
  /* 所有輸入框、文字區域、下拉選單的共用外觀。 */
  width: 100%;
  border: 3px solid #191919;
  border-radius: clamp(6px, .62vw, 12px);
  /* 倒圓角。數字越大越圓；改成 0 會變直角。 */
  background: #f8f8f6;
  
  z-index: 1;
  min-height: clamp(32px, 3.38vw, 65px);
  padding: 10px 12px;
  font: inherit;
  transition:
    transform 180ms var(--ease-out-quart),
    border-color 180ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-out-quart),
    background-color 180ms var(--ease-out-quart);
}

.request-form input:focus,
.request-form textarea:focus,
.select-trigger:focus-visible {
  border-color: #11110d;
  outline: none;
  background: #fffef6;
  box-shadow: 4px 4px 0 #191919;
  transform: translateY(-2px);
}

.works-cta a:hover,
.works-cta a:focus-visible,
.request-form button:hover,
.request-form button:focus-visible,
.select-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #191919;
}

.works-cta a:active,
.request-form button:active,
.select-trigger:active,
.menu-toggle:active,
.logo-link:active .logo-circle {
  transform: translateY(1px) scale(.98);
  box-shadow: 2px 2px 0 #191919;
}

.request-form textarea {
  /* 多行輸入框高度。 */
  min-height: clamp(140px, 14.6vw, 280px);
  resize: vertical;
}

.native-select {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  z-index: 2;
  width: 100%;
}

.select-trigger {
  width: 100%;
  min-height: clamp(32px, 3.38vw, 65px);
  border: 3px solid #191919;
  border-radius: clamp(6px, .62vw, 12px);
  background: #f8f8f6;
  padding: 10px 38px 10px 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding-left: 12px;
  cursor: pointer;
}

.select-trigger::after {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-45%);
  content: "▾";
}

.select-menu {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 90;
  top: calc(100% + 7px);
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 7px;
  border: 3px solid #191919;
  border-radius: clamp(8px, .72vw, 14px);
  background: #f8f8f6;
  box-shadow: 4px 4px 0 #191919;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scaleY(.88);
  transform-origin: top;
  transition: opacity .18s ease, transform .18s ease;
}

.custom-select.is-open .select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
}

.select-menu li {
  border-radius: clamp(5px, .45vw, 9px);
  padding: 8px 10px;
  cursor: pointer;
}

.select-menu li:hover,
.select-menu li[aria-selected="true"] {
  background: #ffd670;
}

.request-form > button {
  /* 送出按鈕。`grid-column: 1 / -1` 讓它跨整列，`justify-self: center` 讓它置中。 */
  grid-column: 1 / -1;
  justify-self: center;
  width: 29%;
  min-width: 98px;
  min-height: clamp(42px, 4.7vw, 90px);
  border: 3px solid var(--ink);
  border-radius: clamp(4px, 1.85vw, 100px);
  background: var(--white);
  z-index: 1;
  font: 900 clamp(18px, 2.3vw, 43px) var(--font-rounded);
  cursor: pointer;
}

.form-note {
  /* 表單底下提示文字。 */
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  font-family: var(--font-rounded);
  font-size: clamp(11px, 1vw, 18px);
  font-weight: 900;
}

footer {
  /* 頁尾。左右分別放版權與 email。 */
  display: flex;
  width: 100%;
  min-height: clamp(80px, 14.47vw, 278px);
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 clamp(28px, 3.65vw, 70px);
  color: #25231e;
  background: var(--dark);
  font-size: clamp(10px, .94vw, 18px);
  font-weight: 900;
}

footer a {
  /* 頁尾 email 連結顏色。 */
  color: var(--white);
}

@media (max-width: 1080px) {
  :root {
    --section-slant: clamp(28px, 4.8vw, 54px);
  }

  .duty-section {
    width: min(88vw, 780px);
  }

  .duty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3.2vw, 32px);
  }

  .duty-card {
    --duty-illustration-row: clamp(230px, 36vw, 330px);
    min-height: clamp(360px, 48vw, 520px);
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .duty-section {
    /* 平板版整組職責卡片縮小，約為原本平板排版的 70%。 */
    width: min(82vw, 560px);
  }

  .duty-section > h2 {
    margin-bottom: clamp(30px, 4vw, 46px);
    padding: clamp(7px, .85vw, 10px) clamp(28px, 3.4vw, 44px);
    border-width: clamp(4px, .52vw, 5px);
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--ink);
    font-size: clamp(27px, 4.6vw, 38px);
  }

  .duty-grid {
    gap: clamp(14px, 2vw, 20px);
  }

  .duty-card {
    --duty-illustration-row: clamp(150px, 22vw, 215px);
    min-height: clamp(300px, 42vw, 390px);
    padding: clamp(15px, 1.9vw, 20px) clamp(14px, 1.8vw, 18px) clamp(17px, 2.1vw, 22px);
    border-radius: clamp(16px, 2.2vw, 22px);
  }

  .duty-card h3 {
    margin-top: 0;
    font-size: clamp(27px, 4.4vw, 38px);
  }

  .duty-card img {
    /* iPad / 平板插圖最大盒子寬度。要讓平板圖更大或更小，主要改這個數字。 */
    --duty-img-box-max: 184px;
    width: min(100%, var(--duty-img-box-max));
  }

  .duty-card p {
    max-width: 15.5em;
    font-size: clamp(11px, 1.65vw, 14px);
    line-height: 1.56;
    z-index: 2;
  }
}

@media (min-width: 1025px) and (min-aspect-ratio: 2/1) {
  /* 21:9 時表單底部曾經被 footer 壓到。
     改成讓 section 跟著內容長高，再補一段穩定底部留白。 */
  .contact-section {
    min-height: auto;
    padding-bottom: clamp(110px, 7vw, 190px);
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  /* 平板與窄桌機：保留桌機視覺，但取消大桌機用的偏移，避免物件在縮窄視窗時跑掉。 */
  .works-section {
    --shorts-top-space: clamp(58px, 7vw, 84px);
    column-gap: clamp(16px, 2.5vw, 26px);
  }

  .shorts-row {
    gap: clamp(8px, 1.45vw, 14px);
  }
  .intro-text {
    /* 自我介紹整段文字的外層容器。 */

    width: min(72%, 720px);
    /* 文字欄位寬度。
       72% = 吃畫面寬度的 72%
       720px = 但最多不要超過 720px
       想讓文字行更長：72% 改 76%
       想讓文字行更短：72% 改 68% */
  }

  .intro-text p {
    /* 自我介紹實際段落文字。 */

    font-size: clamp(15px, 1.9vw, 19px);
    /* 平板文字大小。
       15px = 最小字級
       1.9vw = 跟著螢幕寬度變動
       19px = 最大字級
       想再大一點：改成 clamp(16px, 2vw, 20px) */

    line-height: 1.75;
    /* 行距。字變大後要稍微拉開，才不會擠。 */
  }
  .about-problem {
    width: fit-content;
    max-width: 92%;
    grid-template-columns: clamp(185px, 31vw, 260px) clamp(420px, 55vw, 620px);
    justify-content: center;
    gap: 0;
    margin: 3.2% auto 0;
    transform: translateX(clamp(31px, 3.9vw, 40px));
  }

  .about-problem > img {
    width: 118%;
    justify-self: end;
    transform: translate(calc(13% - 20px), 8px);
  }

  .problem-list {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: -9%;
  }

  .problem-list h2 {
    margin-bottom: clamp(10px, 1.4vw, 16px);
    font-size: clamp(32px, 4.4vw, 45px);
    text-align: left;
    transform: none;
  }

  .problem-list ul {
    width: 100%;
  }

  .problem-list li {
    min-height: clamp(38px, 4.8vw, 50px);
    grid-template-columns: 8% 1fr;
    font-size: clamp(11px, 1.55vw, 15px);
    padding: 11px 10px;
  }

  .mission-note {
    width: min(88%, 880px);
    min-height: clamp(176px, 24vw, 238px);
    margin-top: clamp(34px, 5vw, 58px);
    padding: clamp(38px, 5.2vw, 54px) clamp(92px, 12vw, 122px);
    font-size: clamp(18px, 2.58vw, 25px);
    line-height: 1.45;
  }

  .mission-note::before {
    inset: clamp(2px, 0.1vw, 10px) clamp(28px, 4.9vw, 50px) clamp(5px, .8vw, 9px);
    background-size: 100% 100%;
  }

  .mission-note img:first-of-type {
    top: clamp(20px, 3.2vw, 34px);
    left: clamp(60px, 8.5vw, 88px);
    width: clamp(54px, 7.2vw, 76px);
    transform: rotate(-11deg);
  }

  .mission-note img:last-of-type {
    right: clamp(66px, 9vw, 96px);
    bottom: clamp(24px, 3.8vw, 42px);
    width: clamp(42px, 5.7vw, 62px);
    height: clamp(42px, 5.7vw, 62px);
    transform: rotate(-22deg);
  }

  .dashboard-paper {
    width: min(83.2%, 1123px);
  }

  .dashboard-paper h2 {
    font-size: clamp(31px, 4.1vw, 60px);
  }

  .dashboard-paper p {
    font-size: clamp(14px, 1.51vw, 22px);
  }

  .paper-lead {
    font-size: clamp(18px, 1.74vw, 26px) !important;
  }

  .paper-bottom {
    font-size: clamp(17px, 1.73vw, 26px) !important;
  }

  .contact-section {
    min-height: auto;
    padding-bottom: clamp(72px, 9vw, 120px);
  }

  .contact-list {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: clamp(22px, 3.2vw, 38px) auto 0;
    grid-template-columns: 1fr;
    gap: clamp(12px, 1.8vw, 18px);
    padding: clamp(12px, 1.8vw, 20px);
    transform: none;
  }

  .contact-label {
    justify-self: center;
    min-height: 48px;
    padding: 0 22px;
  }

  .contact-items {
    width: max-content;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    justify-self: center;
  }

  .contact-list p {
    justify-content: flex-start;
    width: 100%;
    min-width: min(100%, 28ch);
    max-width: 100%;
    padding: 10px clamp(48px, 6vw, 58px) 10px 14px;
    white-space: nowrap;
  }

  .request-form {
    width: min(68%, 620px);
    margin-top: clamp(34px, 5vw, 54px);
  }

  .process-block {
    width: min(70vw, 560px);
  }

  .process-map {
    min-height: clamp(660px, 86vw, 820px);
  }

  .flow-path {
    inset: 0;
  }

  .flow-card b {
    -webkit-text-stroke: clamp(4px, .6vw, 7px) #f8f8f6;
  }

  .issue b,
  .notion b,
  .done b {
    font-size: clamp(16px, 2.35vw, 26px);
  }

  .flow-info::after {
    width: min(280px, 52vw);
  }

  .issue .flow-info {
    left: 2%;
    top: 72%;
  }

  .issue .flow-info::after {
    left: 0;
    transform: translate(0, 8px);
  }

  .issue .flow-info:hover::after,
  .issue .flow-info:focus-visible::after {
    transform: translate(0, 0);
  }

  .issue .flow-info::before {
    left: 14px;
    transform: translate(0, 8px) rotate(45deg);
  }

  .issue .flow-info:hover::before,
  .issue .flow-info:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
  }
}

@media (max-width: 720px) {
  /* `@media` 是媒體查詢。這段只在螢幕寬度 720px 以下生效，通常是手機版。 */
  :root {
    --section-slant: clamp(20px, 7vw, 38px);
  }

  .site-header {
    /* 手機版導覽改成 logo 54px + 右側剩餘空間。 */
    grid-template-columns: 42px 1fr 44px;
    width: calc(100% - 16px);
    height: 56px;
    padding-inline: 7px 1px;
  }

  .logo-circle {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    /* 手機版導覽改成漢堡選單展開後才出現。 */
    position: absolute;
    top: calc(100% + 8px);
    right: 2px;
    display: grid;
    justify-content: stretch;
    justify-items: stretch;
    width: max-content;
    min-width: 166px;
    max-width: calc(100vw - 28px);
    gap: 0;
    border: 4px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 5px 5px 0 var(--ink);
    font-size: 14px;
    line-height: 1.1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease;
  }

  .site-header.is-menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 20px;
    border-bottom: 2px solid rgba(23, 21, 15, .16);
    text-align: center;
    white-space: nowrap;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    justify-self: end;
    margin-right: -60px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 3px;
    margin: 2px 0;
    border-radius: 999px;
    background: var(--ink);
  }

  .hero-section {
    /* 手機版改成直式 Hero：標題在左上，人物在中間，接近手機海報比例。 */
    height: min(100svh, 980px);
    min-height: 560px;
    aspect-ratio: auto;
    overflow: visible;
    clip-path: inset(0 0 -95px 0);
  }

  .hero-title {
    /* 手機版 Hero 標題固定在左上。 */
    top: 12%;
    left: 5%;
    width: 72%;
  }

  .hero-character-wrap {
    inset: 0;
  }

  .hero-character {
    /* 手機版角色置中放大，像參考圖一樣變成主要視覺。 */
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 264%;
    max-width: none;
    transform: translateX(-50%);
  }

  .trust-title {
    font-family: var(--font-rounded);
    top: auto;
    bottom: 22px;
    left: 50%;
    font-size: clamp(20px, 6vw, 30px);
    -webkit-text-stroke: clamp(4px, 1.05vw, 6px) #191919;
    filter: drop-shadow(0 3px 0 #191919);
  }

  .trust-box {
    /* 手機版合作對象框和桌機版一樣，壓在 Hero 與作品區交界。 */
    top: auto;
    bottom: -58px;
    left: 7%;
    width: 86%;
    height: 76px;
    gap: 7%;
    border-width: 4px;
    border-radius: 20px;
    box-shadow: 0 7px 0 var(--ink);
  }

  .trust-box a {
    width: 13.5%;
  }

  .trust-box a::after {
    top: calc(100% + 10px);
    max-width: 180px;
    font-size: 12px;
  }

  .trust-box img {
    width: 100%;
    border-width: 3px;
  }

  .works-section {
    /* 手機版作品區改成正常垂直排列，不用桌機版絕對定位大畫布。 */
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    padding: 132px 7% 84px;
    overflow: hidden;
  }

  .work-title,
  .long-grid,
  .shorts-row {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .long-title {
    order: 1;
    margin-bottom: 22px;
  }

  .long-grid {
    /* 手機版長影片改成一橫排兩個。 */
    order: 2;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .long-grid .work-meta {
    grid-template-columns: 26px 1fr;
    gap: 7px;
    margin-top: 7px;
  }

  .long-grid p {
    font-size: clamp(9px, 2.55vw, 11px);
    line-height: 1.25;
  }

  .work-badges {
    gap: 4px;
    margin-top: 6px;
    padding-left: 33px;
  }

  .work-badge {
    min-height: 17px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .short-title {
    order: 3;
    flex-direction: row;
    margin: 40px 0 12px;
    gap: clamp(14px, 4vw, 22px);
  }

  .short-title b {
    writing-mode: horizontal-tb;
    letter-spacing: 0;
  }

  .shorts-row {
    /* 手機版短影片改成一橫排三個，不再卡片堆疊。 */
    order: 4;
    display: grid;
    width: 100%;
    height: auto;
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .shorts-row a {
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .shorts-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border: 2px solid #eee;
    border-radius: 5px;
    box-shadow: none;
  }
  /* 手機版 CTA 跟著作品內容正常往下排，讓看完作品的人不用一路滑到最底才知道可以聯絡。 */
  
  .works-cta {
    
    position: relative;
    right: auto;
    bottom: auto;
    order: 5;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding: 16px 18px;
    /*border-width: 4px;*/
    border-radius: 18px;
    text-align: center;
    /*box-shadow: 6px 6px 0 #191919;*/
  }
  
  .works-cta p {
    font-size: 18px;
    line-height: 1.25;
  }

  .works-cta a {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
    /*box-shadow: 4px 4px 0 #191919;*/
  }

  .work-preview-modal {
    padding: 14px;
  }

  .work-preview-frame {
    width: min(94vw, 520px);
    max-height: 88svh;
  }

  .work-preview-dialog {
    padding: 28px 18px 24px;
    border-width: 4px;
    border-radius: 22px;
    box-shadow: 6px 6px 0 #191919;
  }

  .work-preview-close {
    width: 40px;
    transform: translate(28%, -34%);
  }

  .work-preview-close:hover,
  .work-preview-close:focus-visible {
    transform: translate(28%, -34%) scale(1.06);
  }

  .work-preview-close:active {
    transform: translate(28%, -34%) scale(.96);
  }

  .work-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-preview-modal[data-preview-type="short"] .work-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .work-preview-modal[data-preview-type="short"] .work-preview-grid img {
    aspect-ratio: 9 / 16;
  }

  .work-preview-cta {
    min-height: 48px;
    margin-top: 20px;
    padding-inline: 24px;
    font-size: 22px;
  }

  .about-section {
    min-height: 0;
    padding-bottom: 80px;
  }

  .about-section h1,
  .contact-section h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .about-problem,
  .intro-text {
    /* 手機版關於區和表單寬度變成 90%，左右留一點邊距。 */
    width: 90%;
  }

  .request-form {
    width: 90%;
  }

  .about-problem {
    /* 手機版改成：困擾標題在左，角色圖在右，四個項目在下一列。 */
    display: grid;
    grid-template-columns: 1fr 34%;
    gap: 16px 12px;
    margin-top: 8%;
  }

  .about-problem > img {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    align-self: end;
    margin: 0;
    transform: none;
  }

  .intro-text {
    /* 手機版自我介紹改成適合閱讀的文字欄。 */
    width: min(86%, 38rem);
    margin: clamp(58px, 13vw, 92px) auto 0;
  }

  .intro-text p {
    width: 100%;
    margin: 0;
    font-size: clamp(16px, 4.05vw, 18px);
    font-weight: 500;
    line-height: 1.78;
    text-align: left;
    text-wrap: pretty;
  }

  .problem-list h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    transform: none;
    max-width: none;
    margin: 0;
    font-size: clamp(25px, 8.4vw, 36px);
    line-height: 1.08;
    text-align: left;
    text-wrap: balance;
  }

  .problem-list ul {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-top: 0;
  }

  .problem-list {
    display: contents;
    margin-left: 0;
  }

  .problem-list li {
    min-height: 44px;
    grid-template-columns: 11% 1fr;
    padding: 8px 4%;
    font-size: clamp(10px, 3.05vw, 12px);
    line-height: 1.35;
  }

  .mission-note {
    width: 94%;
    min-height: 0;
    margin-top: 44px;
    padding: 42px 24px;
    font-size: clamp(12px, 3.55vw, 14px);
    line-height: 1.45;
  }

  .mission-note img:first-of-type {
    top: 0;
    left: 7%;
    width: 48px;
  }

  .mission-note img:last-of-type {
    right: 7%;
    bottom: -4px;
    width: 42px;
    height: 42px;
  }

  .duty-section {
    width: 90%;
    margin-top: 58px;
  }

  .duty-section > h2 {
    margin-bottom: 34px;
    padding: 9px 34px;
    border-width: 5px;
    border-radius: 18px;
    box-shadow: 6px 6px 0 var(--ink);
    font-size: clamp(30px, 10vw, 44px);
  }

  .duty-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .duty-card {
    --duty-illustration-row: clamp(200px, 40vw, 292px);
    min-height: 0;
    padding: 20px 22px 26px;
    border-width: 3px;
    border-radius: 22px;
  }

  .duty-card h3 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .duty-card img {
    margin: 0 auto;
  }

  .duty-preview img {
    --duty-img-scale: 1.2;
  }

  .duty-communication img {
    --duty-img-scale: .88;
  }

  .duty-control img {
    --duty-img-scale: 1.24;
  }

  .duty-fix img {
    --duty-img-scale: 1.18;
  }

  .duty-card p {
    max-width: 24em;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.66;
    text-align: center;
    z-index: 2;
  }

  .duty-preview p {
    margin-top: 0;
  }

  .duty-communication p {
    margin-top: 0;
  }

  .duty-control p {
    margin-top: 0;
  }

  .duty-fix p {
    margin-top: 0;
  }

  .dashboard-paper {
    /* 手機版改成可讀的直式資訊卡，不再硬縮桌機那張不規則紙。 */
    width: 90%;
    aspect-ratio: auto;
    margin-top: 54px;
    padding: 34px 22px 38px;
    border: 6px solid #191919;
    border-radius: 20px;
    background: #f8f8f8;
    clip-path: none;
  }

  .dashboard-paper::before,
  .dashboard-paper::after {
    content: none;
  }

  .dashboard-paper h2 {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 8px 14px;
    border-width: 4px;
    box-shadow: 0 4px 0 #191919;
    font-size: clamp(26px, 7.2vw, 34px);
    text-wrap: balance;
  }

  .dashboard-paper p {
    font-size: 14px;
    line-height: 1.55;
  }

  .paper-question {
    margin-bottom: 18px !important;
  }

  .paper-lead {
    max-width: 95%;
    margin-bottom: 18px !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  .project-system {
    /* 手機版把專案系統圖片放大到可以閱讀 Deadline、進度、案主等細節。 */
    width: 150%;
    margin: 0 0 16px 65%;
    transform: translateX(-50%);
  }


  .dashboard-details div {
    display: grid;
    grid-template-columns: 5.8em 1fr;
    align-items: start;
    gap: 8px;
    padding-bottom: 7px;
    border-bottom: 1px dashed rgba(248, 248, 246, .42);
  }

  .dashboard-details div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .dashboard-details dt,
  .dashboard-details dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .dashboard-details dt {
    font-weight: 900;
    color: #ffd670;
  }

  .dashboard-details dd {
    font-weight: 700;
  }

  .paper-bottom {
    max-width: 100%;
    font-size: 15px !important;
    line-height: 1.55 !important;
    text-wrap: pretty;
  }

  .process-block {
    width: 92%;
    margin-top: 74px;
  }

  .process-block > h2 {
    margin-bottom: 68px;
    padding: 10px 38px;
    border-width: 5px;
    border-radius: 20px;
    box-shadow: 6px 6px 0 #191919;
    font-size: clamp(35px, 10.5vw, 48px);
    /* 讓標題可以使用 z-index。 */
    position: relative;

    /* 數字越大，越上層。 */
    z-index: 2;
  }

  .process-map {
    margin-top: -10vh;
    min-height: clamp(1120px, 300vw, 1260px);
  }

  .flow-path {
    inset: -18px 0 0;
    height: 100%;
  }

  .flow-path-desktop {
    display: none;
  }

  .flow-path-mobile {
    display: block;
  }

  .flow-path-mobile .flow-line {
    marker-end: url(#flow-arrow-mobile);
    stroke-width: 2.6px;
    stroke-dasharray: 6 11;
  }

  .flow-card b {
    font-size: clamp(21px, 6.5vw, 31px);
    -webkit-text-stroke: 4px #f8f8f6;
    filter:
      drop-shadow(1px 0 0 #191919)
      drop-shadow(-1px 0 0 #191919)
      drop-shadow(0 1px 0 #191919)
      drop-shadow(0 -1px 0 #191919)
      drop-shadow(2px 2px 0 #191919);
  }

  .issue { top: 5%; left: 0; width: 50%; }
  .notion { top: 15%; right: 0; width: 40%; }
  .window { top: 32%; left: 22%; width: 56%; }
  .version { top: 56%; left: 5%; width: 34%; }
  .fix { top: 72%; right: 10%; width: 34%; }
  .done { top: 89%; left: 24%; width: 52%; }
  .issue b { left: 30%; top: 72%; font-size: clamp(20px, 6vw, 29px); }
  .notion b { right: -7%; top: 80%; font-size: clamp(18px, 5.4vw, 27px); }
  .window b { left: 34%; top: 77%; font-size: clamp(24px, 9.2vw, 44px); }
  .version b { left: 6%; top: 76%; }
  .fix b { left: 0%; top: 72%; }
  .done b { left: 50%;transform: translateX(-50%); top: 78%; font-size: clamp(18px, 5.4vw, 27px); }

  .flow-info {
    width: 28px;
    border-width: 3px;
    box-shadow: 3px 3px 0 #191919;
    font-size: 16px;
  }

  .flow-info::after {
    width: min(260px, calc(100vw - 32px));
    padding: 10px 12px;
    border-width: 3px;
    font-size: 12px;
  }

  .issue .flow-info { left: 0%; top: 70%; }
  .version .flow-info { left: -10%; top: 35%; }
  .fix .flow-info { left: 76%; top: 71%; }

  .issue .flow-info::after,
  .version .flow-info::after {
    left: 0;
    right: auto;
    transform: translate(0, 8px);
  }

  .issue .flow-info:hover::after,
  .issue .flow-info:focus-visible::after,
  .version .flow-info:hover::after,
  .version .flow-info:focus-visible::after {
    transform: translate(0, 0);
  }

  .issue .flow-info::before,
  .version .flow-info::before {
    left: 14px;
    transform: translate(0, 8px) rotate(45deg);
  }

  .issue .flow-info:hover::before,
  .issue .flow-info:focus-visible::before,
  .version .flow-info:hover::before,
  .version .flow-info:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
  }

  .fix .flow-info::after {
    right: 0;
    left: auto;
    transform: translate(0, 8px);
  }

  .fix .flow-info:hover::after,
  .fix .flow-info:focus-visible::after {
    transform: translate(0, 0);
  }

  .fix .flow-info::before {
    right: 14px;
    left: auto;
    transform: translate(0, 8px) rotate(45deg);
  }

  .fix .flow-info:hover::before,
  .fix .flow-info:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
  }

  .request-form {
    /* 手機版表單改成單欄，避免兩欄太窄。 */
    margin-top: 30px;
    padding-top: clamp(86px, 20vw, 118px);
    grid-template-columns: 1fr;
  }

  .request-form .holes {
    /* 手機版固定洞洞離紙張頂部的距離，避免洞洞因表單高度變化而壓到第一個欄位。 */
    top: clamp(16px, 4.2vw, 24px);
  }

  .contact-section {
    min-height: 0;
    padding-bottom: 72px;
  }

  .price-section {
    min-height: 0;
    padding: calc(72px + var(--section-slant)) max(18px, 5vw) 78px;
  }

  .price-table {
    display: grid;
    width: min(100%, 372px);
    max-width: 100%;
    gap: 10px;
    justify-items: stretch;
    margin: 0 auto 34px;
  }

  .price-table h2 {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 0 10px 6px;
    border-bottom: 2px solid rgba(248, 248, 246, .72);
    font-size: clamp(24px, 7.2vw, 30px);
    line-height: 1;
  }

  .price-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    border: 2px solid rgba(248, 248, 246, .58);
    border-radius: 10px;
    background: rgba(248, 248, 246, .045);
    overflow: hidden;
    font-size: clamp(13px, 3.75vw, 15px);
    text-align: left;
  }

  .price-row:last-child {
    border-bottom: 2px solid rgba(248, 248, 246, .58);
  }

  .price-head {
    display: none;
  }

  .price-row > * {
    padding: 0;
  }

  .price-row > span {
    display: grid;
    grid-template-columns: 5.4em 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-top: 1px dashed rgba(248, 248, 246, .34);
    color: #f8f8f6;
    line-height: 1.34;
  }

  .price-row > span:last-child {
    grid-column: auto;
    background: rgba(201, 228, 248, .08);
    color: #fffef6;
    font-weight: 900;
    opacity: 1;
  }

  .price-row > span:empty {
    display: none;
  }

  .price-row > span::before {
    content: attr(data-label);
    color: rgba(248, 248, 246, .68);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .price-row b {
    justify-self: start;
    min-height: 0;
    margin: 12px 12px 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.16;
    text-align: center;
    white-space: normal;
  }

  .price-section p {
    max-width: 22rem;
    font-size: 18px;
    line-height: 1.5;
  }

  .contact-list {
    position: relative;
    top: auto;
    left: auto;
    width: min(90%, 390px);
    margin: 22px auto 0;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    border-width: 4px;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #191919;
    font-size: clamp(15px, 4.2vw, 18px);
    transform: none;
  }

  .contact-label {
    min-height: 46px;
    padding: 0 16px;
    justify-self: stretch;
    gap: 10px;
  }

  .contact-label span {
    width: 28px;
  }

  .contact-items {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 9px;
    justify-self: stretch;
  }

  .contact-list p {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 52px 9px 12px;
    border-width: 3px;
    box-shadow: 3px 3px 0 rgba(25, 25, 25, .34);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .copy-contact {
    right: -6px;
    bottom: -9px;
    width: 38px;
  }

  .contact-list img {
    width: 27px;
    height: 27px;
  }

  .request-form {
    margin-top: 34px;
  }
}

@media (min-width: 481px) and (max-width: 720px) and (orientation: portrait) {
  .hero-section {
    height: min(92svh, 820px);
    min-height: 620px;
  }

  .hero-title {
    top: 13%;
    left: 5%;
    width: min(62%, 420px);
  }

  .hero-character {
    width: 162%;
    left: 70%;
    bottom: 0;
  }
}
