@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap');
/*
  檔案功能：style.css
  被引用目的：承接 HTML 頁面的主視覺與版型設計，讓藝術家網站呈現明確的版面節奏、色彩氣質與響應式結構。
  編寫安排：先載入全域設定或模組 CSS，再針對頁首、導覽、內容區、作品卡片、側欄、頁尾與動畫狀態進行細部設定。
  與 HTML 的關係：HTML 透過 class 名稱標記語意與區塊，本檔再用相同 class 選擇器把視覺樣式套用到對應區塊。
*/

/* 匯入 _global.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_global.css);

/* 匯入 _layout.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_layout.css);

/* 匯入 _typography.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_typography.css);

/* 匯入 _nav.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_nav.css);

/* 匯入 _button.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_button.css);

/* 匯入 _form.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_form.css);

/* 匯入 _media.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_media.css);

/* 匯入 _table.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_table.css);

/* 匯入 _grid.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_grid.css);

/* 匯入 _card.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_card.css);

/* 匯入 _helper.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_helper.css);

/* 匯入 _theme.css：把相關樣式拆成模組，方便依功能維護與教學閱讀。 */
@import url(_theme.css);

/* NMA teaching additions */
/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
body {
  /* 設定字體家族，影響網站的氣質。 */
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    sans-serif;
  /* 設定文字顏色。 */
  color: #182022;}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.site-logo {
  /* 設定字距，常用於 Logo 或標題的空氣感。 */
  letter-spacing: 0.08em;}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.site-header-toggle {
  /* 設定滑鼠游標樣式，提示可互動性。 */
  cursor: pointer;}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.site-menu.is-open {
  /* 設定元素顯示模式，例如 block、inline-block、flex。 */
  display: block;}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.js-reveal {
  /* 設定透明度，可用於淡入動畫。 */
  opacity: 0;
  /* 設定位移、縮放或旋轉，可用於動畫與動態感。 */
  transform: translateY(18px);
  /* 設定屬性變化的時間與速度曲線。 */
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.js-reveal.is-visible {
  /* 設定透明度，可用於淡入動畫。 */
  opacity: 1;
  /* 設定位移、縮放或旋轉，可用於動畫與動態感。 */
  transform: translateY(0);}

/* 選擇器開頭，指定接下來的屬性要套用到哪些 HTML 元素。 */
.artist-note {
  /* 設定行高，影響段落閱讀節奏。 */
  line-height: 1.8;
  /* 設定字距，常用於 Logo 或標題的空氣感。 */
  letter-spacing: 0.03em;}



/* ===== VIVIANN classy website override ===== */
:root {
  --bg: #060606;
  --panel: #0e0e0e;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --line: rgba(244, 241, 234, 0.22);
  --line-strong: rgba(244, 241, 234, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.08em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.35;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a,
a:hover {
  color: inherit;
}

.site-header {
  min-height: 72px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6,6,6,0.88) !important;
  backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  display: block;
  clear: both;
}

.site-logo,
.site-header-toggle {
  float: none !important;
  padding: 0;
}

.site-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1;
}

.site-menu {
  float: none !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-menu .nav-link {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.site-menu .nav-link:hover,
.site-menu .nav-link.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.site-header-toggle {
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
}

.site-banner {
  height: 78vh;
  min-height: 520px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.site-banner-bg {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.92)),
    url("../images/1.jpeg") center center / cover no-repeat;
  filter: grayscale(100%) contrast(1.12) brightness(0.7);
}

.site-banner-content {
  width: calc(100% - 68px);
  min-width: auto;
  top: 48%;
  text-align: left;
}

.site-banner-content::before {
  content: "ARTIST PORTFOLIO / VIVIANN";
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.site-banner-content .title {
  min-height: 0.8em;
  margin: 0;
  font-size: clamp(46px, 12vw, 150px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.site-banner-form {
  padding: 20px 34px;
  border-top: 1px solid var(--line);
  background: rgba(6,6,6,0.88);
}

.site-banner-form .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.site-banner-form .row {
  display: flex;
  margin: 0;
  gap: 12px;
}

.site-banner-form [class*="col-"] {
  float: none;
  padding: 0;
}

.site-banner-form .col-xs-8 {
  width: 100%;
}

.site-banner-form .col-xs-4 {
  width: 160px;
  flex: 0 0 160px;
}

.form-element,
.button {
  height: 46px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.form-element {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.form-element::placeholder {
  color: var(--muted);
}

.button,
.button-green {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.button:hover,
.button-green:hover {
  background: transparent;
  color: var(--text);
}

.site-main {
  background: var(--bg);
  padding-top: 54px;
}

.container,
.container-fluid {
  width: min(1180px, calc(100% - 68px));
  padding-left: 0;
  padding-right: 0;
}

.section-header {
  padding: 56px 0 28px;
  text-align: left !important;
  border-top: 1px solid var(--line);
}

.section-header .title {
  margin: 0;
}

.section-title {
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.title-sub {
  display: block;
  width: min(620px, 100%);
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

[class*="col-"] {
  float: none;
  padding: 0 8px;
}

.col-sm-4 { width: 33.333333%; }
.col-sm-6 { width: 50%; }
.col-sm-8 { width: 66.666667%; }

.card {
  min-height: 230px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  overflow: hidden;
}

.card-grid .card {
  max-height: none;
  min-height: 300px;
  margin-bottom: 16px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.74));
  z-index: 1;
}

.card .img-fluid {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08) brightness(0.78);
  transform: scale(1.01);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.card:hover .img-fluid {
  filter: grayscale(20%) contrast(1.08) brightness(0.92);
  transform: scale(1.05);
}

.card-center {
  width: calc(100% - 38px);
  top: auto;
  bottom: 20px;
  left: 20px;
  transform: none;
  z-index: 2;
}

.card .title,
.card-center.title {
  margin: 0;
  color: var(--text);
  font-size: clamp(15px, 2.1vw, 28px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: left;
}

.site-main > .card {
  width: min(1180px, calc(100% - 68px));
  min-height: 420px;
  margin: 64px auto 0;
}

.site-main > .card .section-title {
  font-size: clamp(24px, 4.2vw, 58px);
  letter-spacing: -0.04em;
}

.site-main > .card .title-sub {
  color: rgba(244,241,234,0.78);
}

.site-footer {
  width: min(1180px, calc(100% - 68px));
  margin: 64px auto 0;
  padding: 34px 0 60px;
  border-top: 1px solid var(--line);
  background: transparent !important;
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.site-footer .block-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.site-footer .nav-link {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.site-footer .nav-link:hover {
  color: var(--text);
}

@media (max-width: 992px) {
  .site-header {
    padding: 0 20px;
    min-height: 66px;
  }

  .site-header-toggle {
    display: flex;
  }

  .site-menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: rgba(6,6,6,0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-menu.is-open {
    display: grid;
    gap: 8px;
  }

  .site-menu .nav-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .container,
  .container-fluid,
  .site-main > .card,
  .site-footer,
  .site-banner-content {
    width: calc(100% - 40px);
  }

  .site-banner-form {
    padding: 18px 20px;
  }

  .site-banner-form .row {
    flex-direction: column;
  }

  .site-banner-form .col-xs-4 {
    width: 100%;
    flex-basis: auto;
  }

  .col-sm-4,
  .col-sm-6,
  .col-sm-8,
  .site-footer .col-sm-6,
  .site-footer .col-md-3 {
    width: 100%;
  }

  .site-footer {
    display: block;
  }
}


/* ===== Font Preview B: Noto Serif TC + Cormorant Garamond ===== */
body {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 400;
  letter-spacing: 0.075em;
}

.site-logo,
.site-banner-content::before,
.site-menu .nav-link,
.button,
.button-green,
.form-element,
.site-footer .block-title,
.site-footer .nav-link {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
}

.site-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.site-menu .nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.section-title,
.card .title,
.card-center.title,
.site-main > .card .section-title {
  font-family: "Noto Serif TC", "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.site-banner-content .title {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.title-sub {
  font-weight: 400;
  letter-spacing: 0.12em;
}

.site-main > .card .section-title {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  letter-spacing: 0.02em;
}

/* Preview-only placeholder improvement when original images are not uploaded here */
.card .img-fluid {
  background: #111;
}


/* Footer alignment fix: desktop keeps four equal columns */
.site-footer .col-md-3 {
  width: 25%;
}

.site-footer .col-sm-6 {
  width: 25%;
}

.site-footer .row > div {
  padding-left: 40px;
  padding-right: 40px;
}

.site-footer .row > div:first-child {
  padding-left: 0;
}

.site-footer .row > div:last-child {
  padding-right: 0;
}

@media (max-width: 992px) {
  .site-footer .col-sm-6,
  .site-footer .col-md-3 {
    width: 50%;
  }

  .site-footer .row > div {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 28px;
  }
}

@media (max-width: 544px) {
  .site-footer .col-sm-6,
  .site-footer .col-md-3 {
    width: 100%;
  }
}


/* ===== Layout cleanup: aligned work grids ===== */
.work-type-grid {
  align-items: stretch;
  gap: 16px 0;
}

.work-type-grid .col-sm-4 {
  display: flex;
}

.work-type-grid .card {
  width: 100%;
  height: clamp(230px, 28vw, 360px);
  min-height: 0;
  margin-bottom: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 178px;
  gap: 16px;
  margin-bottom: 16px;
}

.portfolio-grid .portfolio-card {
  height: 100%;
  min-height: 0;
  margin: 0;
}

.portfolio-grid .portfolio-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-grid .portfolio-card:nth-child(2) {
  grid-column: span 4;
  grid-row: span 2;
}

.portfolio-grid .portfolio-card:nth-child(3),
.portfolio-grid .portfolio-card:nth-child(4),
.portfolio-grid .portfolio-card:nth-child(5) {
  grid-column: span 4;
  grid-row: span 1;
}

.portfolio-grid .portfolio-card:nth-child(6) {
  grid-column: span 5;
  grid-row: span 1;
}

.portfolio-grid .portfolio-card:nth-child(7) {
  grid-column: span 7;
  grid-row: span 1;
}

.portfolio-grid .portfolio-card .img-fluid,
.work-type-grid .card .img-fluid {
  min-height: 0;
  height: 100%;
}

.card::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.52)),
    linear-gradient(90deg, rgba(0,0,0,0.26), transparent 58%);
}

.card-center {
  bottom: 22px;
  left: 22px;
}

.portfolio-grid .portfolio-card:nth-child(1) .title,
.portfolio-grid .portfolio-card:nth-child(2) .title {
  font-size: clamp(22px, 3.2vw, 42px);
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-auto-rows: 170px;
  }

  .portfolio-grid .portfolio-card:nth-child(1),
  .portfolio-grid .portfolio-card:nth-child(2),
  .portfolio-grid .portfolio-card:nth-child(3),
  .portfolio-grid .portfolio-card:nth-child(4),
  .portfolio-grid .portfolio-card:nth-child(5),
  .portfolio-grid .portfolio-card:nth-child(6),
  .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: span 6;
    grid-row: span 1;
  }
}

@media (max-width: 544px) {
  .work-type-grid .col-sm-4 {
    width: 100%;
  }

  .work-type-grid .card {
    height: 220px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .portfolio-grid .portfolio-card:nth-child(1),
  .portfolio-grid .portfolio-card:nth-child(2),
  .portfolio-grid .portfolio-card:nth-child(3),
  .portfolio-grid .portfolio-card:nth-child(4),
  .portfolio-grid .portfolio-card:nth-child(5),
  .portfolio-grid .portfolio-card:nth-child(6),
  .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: 1 / -1;
  }
}


/* ===== Clickable final cleanup ===== */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
}

body::after,
.site-header::before,
.site-banner::before {
  content: none !important;
  display: none !important;
}

.site-header {
  margin-top: 0 !important;
  border-top: 0 !important;
}

/* Remove any accidental light strip above the navigation */
body > br,
body > hr {
  display: none !important;
}

.work-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.work-link:focus-visible,
.site-menu .nav-link:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.work-link::after {
  content: "VIEW";
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  color: rgba(244, 241, 234, 0.66);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Equal-height, equal-title portfolio layout */
.work-type-grid .card,
.work-type-grid .work-link,
.portfolio-grid .portfolio-card,
.portfolio-grid .work-link {
  height: 260px !important;
  min-height: 260px !important;
}

.work-type-grid .col-sm-4 {
  display: block;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 16px;
}

.portfolio-grid .portfolio-card:nth-child(1),
.portfolio-grid .portfolio-card:nth-child(2),
.portfolio-grid .portfolio-card:nth-child(3),
.portfolio-grid .portfolio-card:nth-child(4),
.portfolio-grid .portfolio-card:nth-child(5),
.portfolio-grid .portfolio-card:nth-child(6),
.portfolio-grid .portfolio-card:nth-child(7) {
  grid-column: auto !important;
  grid-row: auto !important;
}

.card .title,
.card-center.title,
.portfolio-grid .portfolio-card:nth-child(1) .title,
.portfolio-grid .portfolio-card:nth-child(2) .title {
  font-size: 28px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: 0.055em !important;
}

.card-center {
  bottom: 22px !important;
  left: 22px !important;
  width: calc(100% - 44px) !important;
}

.card::before,
.work-link::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.62)),
    linear-gradient(90deg, rgba(0,0,0,0.28), transparent 58%) !important;
}

.site-main > .card:not(.work-link) {
  min-height: 360px;
}

/* Individual work pages */
.work-page-main {
  width: min(1180px, calc(100% - 68px));
  margin: 0 auto;
  padding: 70px 0 20px;
}

.work-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.work-hero-image {
  min-height: 520px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #111;
}

.work-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.08) brightness(0.8);
}

.work-info {
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
}

.work-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-title {
  margin: 0 0 24px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.035em;
  font-weight: 700;
}

.work-meta {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 18px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.work-desc {
  margin: 0;
  color: rgba(244,241,234,0.82);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.09em;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 34px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.back-link:hover {
  background: var(--text);
  color: var(--bg);
}

@media (max-width: 992px) {
  .work-type-grid .card,
  .work-type-grid .work-link,
  .portfolio-grid .portfolio-card,
  .portfolio-grid .work-link {
    height: 230px !important;
    min-height: 230px !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .card .title,
  .card-center.title,
  .portfolio-grid .portfolio-card:nth-child(1) .title,
  .portfolio-grid .portfolio-card:nth-child(2) .title {
    font-size: 24px !important;
  }

  .work-page-main {
    width: calc(100% - 40px);
    padding-top: 48px;
  }

  .work-hero {
    grid-template-columns: 1fr;
  }

  .work-hero-image,
  .work-info {
    min-height: 360px;
  }
}

@media (max-width: 544px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .work-type-grid .card,
  .work-type-grid .work-link,
  .portfolio-grid .portfolio-card,
  .portfolio-grid .work-link {
    height: 220px !important;
    min-height: 220px !important;
  }

  .card .title,
  .card-center.title,
  .portfolio-grid .portfolio-card:nth-child(1) .title,
  .portfolio-grid .portfolio-card:nth-child(2) .title {
    font-size: 22px !important;
  }
}


/* =========================================================
   VIVIANN FINAL OVERRIDES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Serif+TC:wght@400;500;600;700;900&display=swap');

:root {
  --bg: #050505;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --line: rgba(244, 241, 234, 0.22);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Noto Serif TC", serif !important;
  font-size: 13px !important;
  line-height: 1.8;
  letter-spacing: 0.08em;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    #050505;
  background-size: 56px 56px;
}
a { color: inherit !important; text-decoration: none; }

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 68px)) !important;
  margin: 0 auto !important;
  padding: 18px 0 !important;
  background: rgba(5,5,5,0.92) !important;
  border-bottom: 1px solid var(--line);
  float: none !important;
}
.site-logo,
.site-header-toggle {
  padding: 0 !important;
  float: none !important;
}
.site-logo {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
}
.site-menu {
  float: none !important;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}
.site-menu .nav-link {
  margin: 0 !important;
  padding: 7px 16px !important;
  border: 1px solid var(--line);
  border-radius: 999px !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  background: transparent !important;
}
.site-menu .nav-link:hover,
.site-menu .nav-link.active {
  background: var(--text) !important;
  color: var(--bg) !important;
}
.site-header-toggle { display: none !important; }

.container {
  width: min(1180px, calc(100% - 68px)) !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.site-banner {
  height: 72vh !important;
  min-height: 500px;
  position: relative;
  margin-top: 0 !important;
}
.site-banner-bg {
  background-image: linear-gradient(180deg, rgba(5,5,5,.2), rgba(5,5,5,.85)), url("../images/1.jpeg") !important;
  background-position: center !important;
  background-size: cover !important;
  filter: grayscale(72%) contrast(1.04) brightness(.72);
}
.site-banner-content .title { display: none; }
.site-banner-form {
  background: rgba(5,5,5,.72) !important;
  border-top: 1px solid var(--line);
  padding: 18px 0 !important;
}
.form-element,
.button {
  height: 42px !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
}
.button-green:hover { background: var(--text) !important; color: var(--bg) !important; }

.section-header {
  padding: 72px 0 28px !important;
  text-align: left !important;
}
.section-header .title { margin: 0; }
.section-title {
  display: block;
  margin-bottom: 13px;
  color: var(--text);
  font-size: 31px !important;
  line-height: 1.05;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
}
.title-sub {
  display: block;
  max-width: 680px;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 2 !important;
  letter-spacing: 0.12em !important;
}

.work-type-grid,
.portfolio-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 260px !important;
  gap: 16px !important;
  margin: 0 !important;
}
.work-type-grid { margin-bottom: 4px !important; }
.work-type-grid::after, .portfolio-grid::after { display: none !important; }
.card,
.work-link,
.portfolio-card {
  display: block !important;
  position: relative !important;
  height: 260px !important;
  min-height: 260px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
  background: #080808 !important;
  box-shadow: none !important;
}
.card img,
.work-link img,
.portfolio-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(85%) contrast(1.08) brightness(.72) !important;
  transition: transform .45s ease, filter .45s ease !important;
}
.card:hover img,
.work-link:hover img { transform: scale(1.035); filter: grayscale(55%) contrast(1.08) brightness(.82) !important; }
.card::before,
.work-link::before,
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.72)), linear-gradient(90deg, rgba(0,0,0,.30), transparent 60%) !important;
}
.card-center,
.card .card-center,
.card-center.title {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 22px !important;
  left: 22px !important;
  transform: none !important;
  z-index: 2 !important;
  width: calc(100% - 44px) !important;
  margin: 0 !important;
  text-align: left !important;
}
.card .title,
.card-center.title,
.work-type-grid .title,
.portfolio-grid .title {
  font-size: 28px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  color: var(--text) !important;
}
.statement-card {
  width: min(1180px, calc(100% - 68px));
  margin: 76px auto 0;
  height: 360px !important;
  min-height: 360px !important;
}
.statement-card .section-title { font-size: 28px !important; font-family: "Cormorant Garamond", "Noto Serif TC", serif; }
.statement-card .title-sub { max-width: 620px; }

.site-footer {
  display: block !important;
  margin-top: 76px !important;
  padding: 42px 0 54px !important;
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .95fr .95fr .95fr;
  gap: 56px;
  align-items: start;
}
.footer-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
}
.site-footer .block-title {
  margin: 0 0 18px !important;
  color: var(--text) !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
}
.footer-text,
.site-footer .nav-link {
  display: block !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.9 !important;
  letter-spacing: .1em !important;
}
.site-footer .nav-link:hover { color: var(--text) !important; }
.footer-nav li { margin: 0; }

.work-page-main {
  width: min(1180px, calc(100% - 68px)) !important;
  margin: 0 auto !important;
  padding: 70px 0 20px !important;
}
.work-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) !important;
  gap: 34px !important;
  align-items: stretch !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 34px !important;
}
.work-hero-image,
.work-info {
  min-height: 520px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,.01) !important;
}
.work-hero-image { overflow: hidden !important; }
.work-hero-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(85%) contrast(1.08) brightness(.78) !important;
}
.work-info {
  padding: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}
.work-kicker {
  margin: 0 0 16px !important;
  color: var(--muted) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}
.work-title {
  margin: 0 0 26px !important;
  font-size: clamp(34px, 4.2vw, 56px) !important;
  line-height: 1.05 !important;
  letter-spacing: .16em !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}
.work-meta {
  display: grid !important;
  grid-template-columns: 88px 1fr !important;
  gap: 8px 18px !important;
  margin: 0 0 28px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  letter-spacing: .12em !important;
}
.work-meta dt,
.work-meta dd { margin: 0 !important; }
.work-desc {
  margin: 0 !important;
  color: rgba(244,241,234,.82) !important;
  font-size: 13px !important;
  line-height: 2 !important;
  letter-spacing: .1em !important;
}
.back-link {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 34px !important;
  padding: 9px 16px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
}
.back-link:hover { background: var(--text) !important; color: var(--bg) !important; }

@media (max-width: 992px) {
  .site-header { width: calc(100% - 40px) !important; flex-wrap: wrap; gap: 16px; }
  .site-header-toggle { display: block !important; }
  .site-menu { display: none; width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .site-menu.is-open { display: flex !important; }
  .container, .work-page-main, .statement-card { width: calc(100% - 40px) !important; }
  .work-type-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 230px !important; }
  .card, .work-link, .portfolio-card { height: 230px !important; min-height: 230px !important; }
  .card .title, .card-center.title, .work-type-grid .title, .portfolio-grid .title { font-size: 24px !important; }
  .work-hero { grid-template-columns: 1fr !important; }
  .work-hero-image, .work-info { min-height: 360px !important; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
}
@media (max-width: 544px) {
  .work-type-grid, .portfolio-grid { grid-template-columns: 1fr !important; grid-auto-rows: 220px !important; }
  .card, .work-link, .portfolio-card { height: 220px !important; min-height: 220px !important; }
  .section-title { font-size: 28px !important; }
  .work-title { font-size: 31px !important; letter-spacing: .12em !important; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Final fixes: normal header + full-width last portfolio card ===== */
.site-header {
  position: relative !important;
  top: auto !important;
  z-index: 100 !important;
}

/* 讓最後一張「其他內容」補滿整排，不留下右側空白 */
.portfolio-grid .portfolio-card:nth-child(7) {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

@media (max-width: 992px) {
  .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 544px) {
  .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: auto !important;
  }
}

/* ===== Sticky full header + same-style nav buttons ===== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px max(34px, calc((100vw - 1180px) / 2)) !important;
  box-sizing: border-box !important;
  background: rgba(5, 5, 5, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.16) !important;
}

.site-menu .nav-link,
.site-menu .nav-link.active,
.site-menu .nav-link:visited {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

.site-menu .nav-link:hover,
.site-menu .nav-link.active:hover {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  opacity: 0.72;
}

@media (max-width: 992px) {
  .site-header {
    width: 100% !important;
    padding: 16px 22px !important;
  }
}

/* ===== Hero title spacing adjustment ===== */
.site-banner-content {
  text-align: left !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(1180px, calc(100% - 68px)) !important;
  min-width: 0 !important;
}
.site-banner-content .hero-title {
  display: block !important;
  margin: 0 0 28px 28px !important;
  color: var(--text) !important;
  font-size: clamp(34px, 4.4vw, 66px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 6px 20px rgba(0,0,0,.45) !important;
}
.hero-kicker {
  display: inline-block !important;
  margin-left: 0 !important;
  padding: 11px 20px !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  background: rgba(5,5,5,.18) !important;
}
@media (max-width: 544px) {
  .site-banner-content { width: calc(100% - 40px) !important; }
  .site-banner-content .hero-title {
    margin-left: 14px !important;
    margin-bottom: 22px !important;
    font-size: 31px !important;
    line-height: 1.22 !important;
  }
  .hero-kicker { font-size: 11px !important; letter-spacing: .16em !important; }
}


/* ===== Final hero duplicate fix + left alignment ===== */
.site-banner-content::before {
  content: none !important;
  display: none !important;
}
.site-banner-content {
  text-align: left !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(1180px, calc(100% - 68px)) !important;
  min-width: 0 !important;
}
.site-banner-content .hero-title,
.site-banner-content .title.hero-title {
  display: block !important;
  margin: 0 0 28px 0 !important;
  color: var(--text) !important;
  font-size: clamp(32px, 4.4vw, 66px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 6px 20px rgba(0,0,0,.45) !important;
  text-transform: none !important;
}
.site-banner-content .hero-kicker {
  display: inline-block !important;
  margin-left: 0 !important;
  padding: 11px 20px !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 999px !important;
  color: var(--text) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  background: rgba(5,5,5,.18) !important;
}
@media (max-width: 544px) {
  .site-banner-content { width: calc(100% - 40px) !important; }
  .site-banner-content .hero-title,
  .site-banner-content .title.hero-title {
    margin-bottom: 22px !important;
    font-size: 29px !important;
    line-height: 1.22 !important;
  }
  .site-banner-content .hero-kicker { font-size: 11px !important; letter-spacing: .16em !important; }
}


/* ===== Fixed Instagram chat button ===== */
.ig-chat-button {
  position: fixed !important;
  right: 28px !important;
  bottom: 28px !important;
  z-index: 9999 !important;
  width: 64px !important;
  height: 64px !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  border-radius: 999px !important;
  background: rgba(5,5,5,.78) !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-decoration: none !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.35) !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease !important;
}
.ig-chat-button:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,255,255,.7) !important;
  background: rgba(5,5,5,.92) !important;
}
.ig-chat-icon {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}
.ig-chat-text {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  margin-left: .18em !important;
}
@media (max-width: 544px) {
  .ig-chat-button {
    right: 18px !important;
    bottom: 18px !important;
    width: 56px !important;
    height: 56px !important;
  }
  .ig-chat-icon { font-size: 20px !important; }
  .ig-chat-text { font-size: 9px !important; }
}


/* ===== Canvas interactive background ===== */
.site-banner {
  overflow: hidden !important;
}
.hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.72 !important;
  mix-blend-mode: screen !important;
}
.site-banner-bg {
  z-index: -1 !important;
}
.site-banner-content,
.site-banner-form {
  z-index: 2 !important;
}
.site-banner-content {
  pointer-events: none !important;
}
.site-banner-form,
.site-banner-form * {
  pointer-events: auto !important;
}
@media (max-width: 544px) {
  .hero-canvas { opacity: 0.48 !important; }
}

/* ===== Whole-site cinema atmosphere canvas / 青春末世物語感互動層 ===== */
.site-atmosphere-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 8 !important;
  opacity: 0.38 !important;
  mix-blend-mode: screen !important;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  opacity: 0.12;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.10), transparent 26%),
    radial-gradient(circle at 80% 70%, rgba(120,160,180,0.08), transparent 30%);
  animation: atmosphereDrift 9s ease-in-out infinite alternate;
}
@keyframes atmosphereDrift {
  from { transform: translateY(0); opacity: 0.10; }
  to { transform: translateY(-10px); opacity: 0.16; }
}
.site-header,
.ig-chat-button {
  z-index: 999 !important;
}
@media (max-width: 544px) {
  .site-atmosphere-canvas { opacity: 0.20 !important; }
  body::after { opacity: 0.08; }
}
@media (prefers-reduced-motion: reduce) {
  .site-atmosphere-canvas,
  body::after { display: none !important; }
}

/* ===== Reactive work cards / 點擊放大與訊號特效 ===== */
.work-link,
.portfolio-card {
  cursor: pointer !important;
  overflow: hidden !important;
  transform: translateZ(0) scale(1) !important;
  transition:
    transform 0.34s cubic-bezier(.2,.8,.2,1),
    filter 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease !important;
  will-change: transform, filter !important;
}
.work-link img,
.portfolio-card img {
  transition:
    transform 0.55s cubic-bezier(.2,.8,.2,1),
    filter 0.55s ease,
    opacity 0.55s ease !important;
  will-change: transform, filter !important;
}
.work-link::after,
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,.28), transparent 18%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.10) 45%, transparent 62%);
  transform: translateX(-18%) scale(1.05);
  transition: opacity .35s ease, transform .55s ease;
  mix-blend-mode: screen;
  z-index: 3;
}
.work-link:hover,
.portfolio-card:hover,
.work-link:focus-visible,
.portfolio-card:focus-visible {
  transform: translateY(-6px) scale(1.035) !important;
  filter: saturate(1.04) contrast(1.04) !important;
  border-color: rgba(255,255,255,.46) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.10) inset !important;
}
.work-link:hover img,
.portfolio-card:hover img,
.work-link:focus-visible img,
.portfolio-card:focus-visible img {
  transform: scale(1.085) !important;
  filter: brightness(.78) contrast(1.08) grayscale(.08) !important;
}
.work-link:hover::after,
.portfolio-card:hover::after,
.work-link:focus-visible::after,
.portfolio-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0) scale(1.05);
}
.work-link.is-clicking,
.portfolio-card.is-clicking {
  animation: cardSignalPress .42s cubic-bezier(.2,.8,.2,1) both;
}
.work-link.is-clicking img,
.portfolio-card.is-clicking img {
  filter: brightness(.95) contrast(1.18) saturate(1.08) !important;
}
.work-link.is-clicking .card-center,
.portfolio-card.is-clicking .card-center {
  animation: titleSignalFlicker .42s steps(3, end) both;
}
@keyframes cardSignalPress {
  0% { transform: translateY(-6px) scale(1.035); }
  42% { transform: translateY(-9px) scale(1.075); filter: brightness(1.18); }
  100% { transform: translateY(-3px) scale(1.025); }
}
@keyframes titleSignalFlicker {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%); }
  30% { opacity: .62; transform: translate(calc(-50% + 2px), calc(-50% - 1px)); }
  58% { opacity: 1; transform: translate(calc(-50% - 2px), calc(-50% + 1px)); }
}
.card-pulse {
  position: absolute;
  left: var(--pulse-x, 50%);
  top: var(--pulse-y, 50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  opacity: .8;
  z-index: 4;
  animation: cardPulseRing .58s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes cardPulseRing {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}
.page-click-signal {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 14px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3);
  opacity: .5;
  z-index: 9988;
  mix-blend-mode: screen;
  animation: pageClickSignal .8s ease-out forwards;
}
.page-click-signal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(180,210,220,.22);
}
@keyframes pageClickSignal {
  to { transform: translate(-50%, -50%) scale(5.8); opacity: 0; }
}
body.is-leaving .site-atmosphere-canvas {
  opacity: .42 !important;
  filter: blur(.2px) contrast(1.2);
}
body.is-leaving::after {
  opacity: .20 !important;
}
@media (max-width: 544px) {
  .work-link:hover,
  .portfolio-card:hover,
  .work-link:focus-visible,
  .portfolio-card:focus-visible {
    transform: scale(1.018) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-link,
  .portfolio-card,
  .work-link img,
  .portfolio-card img {
    transition: none !important;
    animation: none !important;
  }
  .card-pulse,
  .page-click-signal { display: none !important; }
}


/* ===== About + Exhibitions sections / 新增公共脈絡區塊 ===== */
.info-section {
  width: min(1180px, calc(100% - 68px));
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: 0.85fr 2.15fr;
  gap: 34px;
  align-items: start;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.info-label {
  color: var(--muted);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.info-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 31px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .14em;
}
.info-lead,
.info-content p {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.05;
  font-weight: 500;
  letter-spacing: .09em;
}
.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.info-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.025);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.exhibition-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.exhibition-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.exhibition-item:last-child { border-bottom: none; }
.exhibition-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.045), transparent 38%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.exhibition-item:hover::after { opacity: 1; }
.exhibition-year {
  color: var(--text);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .12em;
}
.exhibition-item h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .12em;
}
.exhibition-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .08em;
}
@media (max-width: 768px) {
  .info-section {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 58px;
  }
  .info-title { font-size: 26px; }
  .exhibition-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
  .exhibition-year { font-size: 22px; }
}


/* ===== Reordered homepage sections / 作品區塊微調 ===== */
.works-section .info-content,
.context-section .info-content {
  min-width: 0;
}
.works-section .work-type-grid,
.context-section .portfolio-grid {
  margin-top: 28px !important;
}
.works-section .work-type-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 230px !important;
}
.context-section .portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 220px !important;
}
.works-section .card,
.works-section .work-link,
.context-section .card,
.context-section .work-link,
.context-section .portfolio-card {
  height: 100% !important;
  min-height: 0 !important;
}
.works-section .card .title,
.works-section .work-type-grid .title,
.context-section .card .title,
.context-section .portfolio-grid .title {
  font-size: 22px !important;
  letter-spacing: .12em !important;
}
.context-section .portfolio-grid .portfolio-card:nth-child(1),
.context-section .portfolio-grid .portfolio-card:nth-child(2),
.context-section .portfolio-grid .portfolio-card:nth-child(3),
.context-section .portfolio-grid .portfolio-card:nth-child(4),
.context-section .portfolio-grid .portfolio-card:nth-child(5),
.context-section .portfolio-grid .portfolio-card:nth-child(6) {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}
.context-section .portfolio-grid .portfolio-card:nth-child(7) {
  grid-column: 1 / -1 !important;
  grid-row: span 1 !important;
}
.works-section .work-type-grid,
.context-section .portfolio-grid,
.works-section .card,
.context-section .card {
  border-radius: 0 !important;
}
.works-section .info-lead,
.context-section .info-lead {
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .works-section .work-type-grid,
  .context-section .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 220px !important;
  }
  .context-section .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 544px) {
  .works-section .work-type-grid,
  .context-section .portfolio-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 210px !important;
  }
  .context-section .portfolio-grid .portfolio-card:nth-child(7) {
    grid-column: auto !important;
  }
  .works-section .card .title,
  .works-section .work-type-grid .title,
  .context-section .card .title,
  .context-section .portfolio-grid .title {
    font-size: 21px !important;
  }
}

/* ===== Header search + corrected navigation order + anchor offset ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
#about,
#exhibitions,
#works,
#context,
#statement,
#contact {
  scroll-margin-top: 104px;
}
.site-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
}
.site-logo {
  white-space: nowrap !important;
}
.site-menu {
  justify-content: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}
.site-menu .nav-link,
.site-menu .nav-link.active,
.site-menu .nav-link:visited {
  white-space: nowrap !important;
  padding: 7px 13px !important;
  font-size: 12px !important;
  letter-spacing: 0.10em !important;
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}
.header-search {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: min(300px, 24vw) !important;
  min-width: 220px !important;
  margin: 0 !important;
}
.header-search-input {
  width: 100% !important;
  height: 34px !important;
  padding: 0 13px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(5,5,5,.32) !important;
  color: var(--text) !important;
  font-family: "Noto Serif TC", "Cormorant Garamond", serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .10em !important;
  outline: none !important;
}
.header-search-input::placeholder {
  color: rgba(255,255,255,.62) !important;
}
.header-search-input:focus {
  border-color: rgba(255,255,255,.55) !important;
  background: rgba(255,255,255,.035) !important;
}
.header-search-button {
  height: 34px !important;
  padding: 0 13px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: "Noto Serif TC", "Cormorant Garamond", serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  cursor: pointer !important;
}
.header-search-button:hover {
  opacity: .72 !important;
}
.site-banner-form {
  display: none !important;
}
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr !important;
    grid-template-areas:
      "logo toggle"
      "menu menu"
      "search search";
    gap: 14px !important;
  }
  .site-logo { grid-area: logo; }
  .site-header-toggle { grid-area: toggle; justify-self: end; }
  .site-menu { grid-area: menu; justify-content: flex-start !important; flex-wrap: wrap !important; }
  .header-search { grid-area: search; width: min(520px, 100%) !important; min-width: 0 !important; justify-self: stretch; }
}
@media (max-width: 992px) {
  html { scroll-padding-top: 150px; }
  #about,
  #exhibitions,
  #works,
  #context,
  #statement,
  #contact { scroll-margin-top: 150px; }
  .site-menu { display: none; }
  .site-menu.is-open { display: flex !important; }
}
@media (max-width: 544px) {
  .header-search { flex-direction: column !important; align-items: stretch !important; }
  .header-search-input,
  .header-search-button { width: 100% !important; }
}

/* ===== TRUE HEADER CENTER FIX: only header alignment + search horizontal ===== */
@media (min-width: 1181px) {
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    max-width: none !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 max(34px, calc((100vw - 1180px) / 2)) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 20px !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: stretch !important;
    background: rgba(5, 5, 5, 0.96) !important;
    border-bottom: 1px solid rgba(255,255,255,0.16) !important;
    line-height: 1 !important;
  }

  .site-header::before,
  .site-header::after {
    content: none !important;
    display: none !important;
  }

  .site-logo,
  .site-menu,
  .header-search {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .site-logo {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    line-height: 1 !important;
  }

  .site-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    gap: 9px !important;
    min-width: 0 !important;
  }

  .site-menu .nav-link,
  .site-menu .nav-link.active,
  .site-menu .nav-link:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    background: transparent !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
  }

  .header-search {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 34px !important;
    gap: 8px !important;
    width: min(360px, 26vw) !important;
    min-width: 260px !important;
  }

  .header-search-input,
  .header-search-button {
    height: 34px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .header-search-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 66px !important;
    width: auto !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }
}


/* ===== Global cursor aura / 全站滑鼠感測光暈 ===== */
.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  pointer-events: none;
  z-index: 998;
  mix-blend-mode: screen;
  animation: cursorAuraFade .9s ease-out forwards;
}
.cursor-aura::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(170,210,230,.18), rgba(255,255,255,.05) 42%, transparent 70%);
}
@keyframes cursorAuraFade {
  0% { opacity: .85; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3.1); }
}

/* ===== Micro hover / transition polish added 2026-06 ===== */
.site-logo a,
.site-menu .nav-link,
.header-search-input,
.header-search-button,
.back-link,
.ig-chat-button,
.footer-nav .nav-link,
.info-tags span,
.exhibition-item,
.work-info,
.work-hero-image {
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    opacity .28s ease,
    color .28s ease,
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    filter .28s ease !important;
}

.site-logo a {
  display: inline-block !important;
}
.site-logo a:hover {
  transform: translateY(-1px) !important;
  opacity: .78 !important;
  text-shadow: 0 0 18px rgba(244,241,234,.22) !important;
}

.site-menu .nav-link {
  position: relative !important;
  overflow: hidden !important;
}
.site-menu .nav-link::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.10) 48%, transparent 68%) !important;
  opacity: 0 !important;
  transform: translateX(-38%) !important;
  transition: opacity .28s ease, transform .5s ease !important;
}
.site-menu .nav-link:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(255,255,255,.46) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 8px 22px rgba(0,0,0,.22) !important;
}
.site-menu .nav-link:hover::before {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.header-search-input:focus {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 22px rgba(180,210,220,.10) !important;
}
.header-search-button:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(255,255,255,.48) !important;
  opacity: 1 !important;
}

.hero-kicker,
.site-banner-content .hero-kicker {
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease, background-color .45s ease, letter-spacing .45s ease !important;
}
.site-banner:hover .hero-kicker,
.site-banner:hover .site-banner-content .hero-kicker {
  transform: translateY(-2px) !important;
  border-color: rgba(255,255,255,.56) !important;
  background: rgba(255,255,255,.035) !important;
  letter-spacing: .26em !important;
}

/* Cards: add a thin active outline and a small VIEW label without covering the image shimmer. */
.work-link,
.portfolio-card {
  isolation: isolate !important;
}
.work-link::before,
.portfolio-card::before {
  transition: opacity .4s ease, background .4s ease !important;
}
.work-link:hover::before,
.portfolio-card:hover::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.55)),
    linear-gradient(90deg, rgba(0,0,0,.20), transparent 58%) !important;
}
.work-link .card-center,
.portfolio-card .card-center {
  transition: transform .36s cubic-bezier(.2,.8,.2,1), opacity .32s ease, letter-spacing .32s ease !important;
}
.work-link:hover .card-center,
.portfolio-card:hover .card-center,
.work-link:focus-visible .card-center,
.portfolio-card:focus-visible .card-center {
  transform: translateY(-5px) !important;
  letter-spacing: .14em !important;
}
.work-link .card-center::after,
.portfolio-card .card-center::after {
  content: "VIEW";
  display: block;
  width: fit-content;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(244,241,234,.42);
  color: rgba(244,241,234,.72);
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}
.work-link:hover .card-center::after,
.portfolio-card:hover .card-center::after,
.work-link:focus-visible .card-center::after,
.portfolio-card:focus-visible .card-center::after {
  opacity: 1;
  transform: translateY(0);
}

/* Fix click flicker so titles do not jump while card is pressed. */
@keyframes titleSignalFlicker {
  0%, 100% { opacity: 1; transform: translateY(-5px); }
  30% { opacity: .62; transform: translate(2px, -6px); }
  58% { opacity: 1; transform: translate(-2px, -4px); }
}

.info-tags span:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255,255,255,.46) !important;
  background: rgba(255,255,255,.055) !important;
}
.exhibition-item:hover {
  transform: translateX(4px) !important;
  border-color: rgba(255,255,255,.30) !important;
}

.work-hero-image:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,255,255,.40) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.30) !important;
}
.work-hero-image img {
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .65s ease !important;
}
.work-hero-image:hover img {
  transform: scale(1.035) !important;
  filter: grayscale(55%) contrast(1.08) brightness(.86) !important;
}
.work-info:hover {
  border-color: rgba(255,255,255,.34) !important;
  background: rgba(255,255,255,.018) !important;
}

.back-link:hover,
.ig-chat-button:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.32), 0 0 26px rgba(190,220,230,.09) !important;
}
.footer-nav .nav-link:hover {
  transform: translateX(4px) !important;
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-logo a,
  .site-menu .nav-link,
  .header-search-input,
  .header-search-button,
  .hero-kicker,
  .work-link,
  .portfolio-card,
  .work-link img,
  .portfolio-card img,
  .work-link .card-center,
  .portfolio-card .card-center,
  .info-tags span,
  .exhibition-item,
  .work-info,
  .work-hero-image,
  .work-hero-image img,
  .footer-nav .nav-link {
    transition: none !important;
  }
}

/* ===== Work detail page: richer installation page ===== */
.work-detail-page {
  padding-bottom: 86px !important;
}
.work-detail-section,
.work-gallery-section {
  margin-top: 52px !important;
  padding-top: 30px !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
}
.work-section-kicker {
  margin: 0 0 18px !important;
  color: rgba(244,241,234,.52) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .24em !important;
}
.work-detail-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr) !important;
  gap: 36px !important;
  align-items: start !important;
}
.work-detail-grid h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.28 !important;
  letter-spacing: .12em !important;
}
.work-detail-body {
  color: rgba(244,241,234,.82) !important;
  font-size: 13px !important;
  line-height: 2.2 !important;
  letter-spacing: .09em !important;
}
.work-detail-body p {
  margin: 0 0 18px !important;
}
.interaction-flow {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.interaction-flow article {
  min-height: 210px !important;
  padding: 22px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.012) !important;
  transition: transform .36s cubic-bezier(.2,.8,.2,1), border-color .36s ease, background .36s ease !important;
}
.interaction-flow article:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255,255,255,.38) !important;
  background: rgba(255,255,255,.028) !important;
}
.interaction-flow span {
  display: block !important;
  margin-bottom: 44px !important;
  color: rgba(244,241,234,.46) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 14px !important;
  letter-spacing: .2em !important;
}
.interaction-flow h3 {
  margin: 0 0 14px !important;
  color: var(--text) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 18px !important;
  letter-spacing: .2em !important;
}
.interaction-flow p {
  margin: 0 !important;
  color: rgba(244,241,234,.72) !important;
  font-size: 12px !important;
  line-height: 2 !important;
  letter-spacing: .08em !important;
}
.process-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.process-list li {
  display: grid !important;
  grid-template-columns: 132px 1fr !important;
  gap: 18px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}
.process-list strong {
  color: var(--text) !important;
  font-size: 12px !important;
  letter-spacing: .16em !important;
}
.process-list span {
  color: rgba(244,241,234,.74) !important;
}
.work-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.work-gallery-grid figure {
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.015) !important;
}
.work-gallery-grid img {
  display: block !important;
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  filter: grayscale(80%) contrast(1.06) brightness(.78) !important;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease !important;
}
.work-gallery-grid figure:hover img {
  transform: scale(1.04) !important;
  filter: grayscale(45%) contrast(1.08) brightness(.86) !important;
}
.work-gallery-grid figcaption {
  padding: 12px 14px 14px !important;
  color: rgba(244,241,234,.54) !important;
  font-family: "Cormorant Garamond", "Noto Serif TC", serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}
@media (max-width: 992px) {
  .work-detail-grid,
  .interaction-flow,
  .work-gallery-grid {
    grid-template-columns: 1fr !important;
  }
  .interaction-flow article {
    min-height: auto !important;
  }
  .interaction-flow span {
    margin-bottom: 24px !important;
  }
}
@media (max-width: 544px) {
  .work-detail-section,
  .work-gallery-section {
    margin-top: 40px !important;
  }
  .process-list li {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .work-gallery-grid img {
    height: 230px !important;
  }
}
