.nav-link {
  transition:
    color var(--home-hover-color-duration, 0.2s) ease,
    transform var(--home-hover-duration, 0.22s) var(--home-hover-ease, cubic-bezier(0.16, 1, 0.3, 1)) !important;
}
.nav-link:hover,
.nav-link:focus,
.nav-link:active {
  color: var(--home-highlight, #fff) !important;
}

.label-symbols {
  letter-spacing: -1px;
  font-family: var(--font-primary);
}
.label-container-symbols {
  justify-self: end;
  text-align: right;
}

/* 確保 section heading 的 year 文字對齊網格右緣 */
.section-heading-grid .align-r {
  text-align: right !important;
  justify-self: end !important;
  display: block !important;
}

.gradient-canvas {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
          /* GPU 加速：獨立合成層，減少 repaint */
          will-change: transform;
          contain: strict;
        }
        .hero-logo-container {
          position: relative;
          min-height: 400px; /* Ensure there's space if content is small */
        }
        .divider.hero-divider {
          display: none !important;
        }
        /* 統一：section 頂部的 divider 全部隱藏，與 Projects 一致 */
        #projects .container > .divider,
        #about .container > .divider,
        #photography .container > .divider {
          display: none !important;
        }
        /* About 區塊：數字使用主題色 */
        #about .text-blocks-container .label.bullet-number {
          color: #37D2F5 !important;
        }
        #about .text-blocks-container .heading-3 {
          font-weight: 500;
        }
        /* 行動裝置：點陣波浪當背景，logo 與 nav 疊在上面 */
        .hero-top-wrapper {
          position: relative;
        }
        .hero-mobile-wave-bg {
          display: none;
          position: absolute;
          inset: 0;
          z-index: 0;
          overflow: hidden;
          /* 確保在 IG 內置瀏覽器中繪圖層更穩定 */
          -webkit-transform: translateZ(0);
          transform: translateZ(0);
          backface-visibility: hidden;
        }
        @media screen and (max-width: 767px) {
          .hero-logo-container {
            display: none !important;
          }
          .hero-mobile-wave-bg {
            display: block;
          }
          .hero-top-wrapper .hero-section {
            background-color: transparent;
          }
          .hero-top-wrapper .navbar {
            background-color: transparent !important;
            -webkit-backdrop-filter: none !important;
            backdrop-filter: none !important;
            margin-top: 0 !important;
            padding-top: 24px !important;
          }
          .hero-top-wrapper .navbar .nav-container {
            margin-top: 0 !important;
          }
          .hero-top-wrapper .navbar .nav-menu {
            display: none !important;
          }
          .hero-top-wrapper {
            min-height: 45vh;
          }
          .hero-top-wrapper .hero-section {
            min-height: 30vh;
          }
          .hero-top-wrapper .navbar .brand .image {
            width: 32% !important;
          }
        }

        /* 行動裝置：統一各 section 內 title、desc 的 padding 與間距 */
        @media screen and (max-width: 767px) {
          #projects,
          #about,
          #photography,
          .footer {
            padding-top: 24px !important;
            padding-bottom: 0 !important;
          }
          #projects,
          #about,
          #photography {
            padding-top: 32px !important;
            padding-bottom: 32px !important;
          }
          #about {
            background-color: #000000 !important;
          }
          .footer {
            margin-top: 0 !important;
          }
          #projects .container,
          #about .container,
          #photography .container,
          .footer .container {
            padding-left: 24px !important;
            padding-right: 24px !important;
          }
          #projects .container,
          #about .container,
          #photography .container {
            margin-top: 0 !important;
          }
          .section-heading-grid {
            margin-bottom: 1rem !important;
          }
          .section-heading-container {
            grid-row-gap: 1rem !important;
            margin-top: 0 !important;
          }
          .subheading {
            margin-top: 1rem !important;
          }
          .heading-outer-wrapper {
            margin-bottom: 0 !important;
          }
          ._12-column-grid.row-gap-large {
            margin-top: 0 !important;
          }
          .section-heading-grid .align-r {
            display: none !important;
          }
          .section-heading-grid {
            grid-template-columns: auto 1fr !important;
          }
          .section-heading-grid > *:nth-child(2) {
            grid-column: 2 !important;
            text-align: right !important;
            justify-self: stretch !important;
          }
          .section-heading-grid .align-r {
            display: none !important;
          }
        }

/* Make the projects section full width (100vw) */
      #projects {
          overflow-x: clip; /* Prevent horizontal scroll from 100vw */
          margin-top: 0;
          padding-top: 24px;
      }
      #projects > .container {
          margin-top: 0;
      }
      #projects .cases-wrapper {
          margin-top: 2rem;
          width: 100vw;
          margin-left: calc(50% - 50vw);
          position: relative;
      }

      /* List item rows */
      #projects .case-list-wrapper {
          display: flex;
          flex-direction: column;
      }

      #projects .collection-item {
          border-bottom: 1px solid rgba(255, 255, 255, 0.15);
          display: block;
          transition: border-color 0.3s ease;
      }
      
      #projects .collection-item:first-child {
          border-top: none;
      }

      #projects .collection-item:hover {
          border-bottom-color: rgba(255, 255, 255, 0.15);
      }

      #projects .collection-item.is-expanded {
          border-bottom-color: rgba(255, 255, 255, 0.15);
      }

      #projects .project-wrapper {
          display: flex !important;
          flex-direction: row !important;
          align-items: center !important;
          min-height: 100px !important;
          padding: 0 3rem !important;
          padding-top: 0 !important;
          padding-bottom: 0 !important;
          background: transparent !important;
          color: inherit;
          text-decoration: none;
          position: relative;
          cursor: pointer;
          overflow: hidden;
          width: 100%;
      }

      #projects .project-wrapper:focus-visible {
          outline: 1px solid #37D2F5;
          outline-offset: -10px;
      }

      /* Grid: Arrow | Title | Category | Year - 明確欄位避免擠壓 */
      #projects .project-content-container {
          display: grid !important;
          grid-template-columns: 32px minmax(200px, 1fr) 200px 80px !important;
          grid-template-rows: auto !important;
          align-items: center !important;
          gap: 2rem 2.5rem !important;
          width: 100% !important;
          margin-top: 0 !important;
      }

      #projects .case-content-wrapper,
      #projects .project-title-container {
          display: contents !important;
      }

      #projects .case-arrow-wrapper {
          grid-column: 1 !important;
          grid-row: 1 !important;
          width: 32px !important;
          height: 32px !important;
          display: flex !important;
          align-items: center !important;
          justify-content: center !important;
          position: relative !important;
          z-index: 10 !important; /* 確保在最上層 */
      }

      #projects .terminal-spinner {
          font-family: var(--font-primary) !important;
          font-size: 28px !important; /* 增加到 28px */
          color: rgba(255, 255, 255, 0.3) !important; /* 預設灰色 */
          position: relative !important;
          display: block !important;
          width: 1.2em !important;
          height: 1.5em !important;
          text-align: center !important;
          line-height: 1.5em !important;
          z-index: 10 !important;
          overflow: hidden !important;
          transition: color var(--home-hover-color-duration) ease !important;
      }

      /* 使用偽元素顯示所有字元，並透過位移來切換 */
      #projects .terminal-spinner::before {
          content: "｜\A／\A－\A＼" !important; /* 換成全形符號 */
          display: block !important;
          white-space: pre !important;
          position: absolute !important;
          top: 0 !important;
          left: 0 !important;
          width: 100% !important;
          transition: none !important;
          transform: translateY(-3em); /* 預設顯示第三個字元 "－" */
      }

      @keyframes terminal-step-spin {
          0% { transform: translateY(0); }
          25% { transform: translateY(-1.5em); }
          50% { transform: translateY(-3em); }
          75% { transform: translateY(-4.5em); }
          100% { transform: translateY(0); }
      }

      /* Hover 狀態：啟動位移型動畫並變色 */
      #projects .project-wrapper:hover .terminal-spinner {
          color: var(--home-highlight) !important;
      }

      #projects .project-wrapper:hover .terminal-spinner::before {
          animation: terminal-step-spin 0.8s steps(1) infinite !important;
      }

      #projects .collection-item.is-expanded .terminal-spinner {
          color: var(--home-highlight) !important;
      }

      #projects .collection-item.is-expanded .terminal-spinner::before {
          animation: none !important;
          transform: translateY(-3em);
      }

      #projects .case-title {
          grid-column: 2 !important;
          grid-row: 1 !important;
          font-size: clamp(1.25rem, 2.5vw, 2rem) !important;
          line-height: 1.2 !important;
          font-weight: 300;
          margin: 0 !important;
          min-width: 0 !important;
          word-break: break-word;
          transition:
              color var(--home-hover-color-duration) ease,
              transform var(--home-hover-duration) var(--home-hover-ease);
      }

      #projects .case-title-with-badge {
          display: inline-flex !important;
          align-items: center;
          flex-wrap: wrap;
          column-gap: 12px;
          row-gap: 0.25rem;
          width: fit-content;
          max-width: 100%;
      }

      #projects .project-title-badge {
          display: inline-block;
          flex: 0 0 auto;
          width: clamp(44px, 3.45vw, 61px);
          height: auto;
          box-sizing: content-box;
          padding-block: 2px;
          transform: translateY(0.03em);
      }

      #projects .project-title-container .label {
          grid-column: 3 !important;
          grid-row: 1 !important;
          font-size: 1.1rem !important;
          font-weight: 500 !important;
          color: inherit !important;
          margin: 0 !important;
          text-align: left !important;
          white-space: nowrap;
          align-self: center !important;
      }

      #projects .case-year {
          grid-column: 4 !important;
          grid-row: 1 !important;
          text-align: right !important;
          margin: 0 !important;
          font-size: 1.1rem !important;
          font-weight: 300 !important; /* 與 heading year 的 grey-text 權重一致 */
          opacity: 0.6;
          white-space: nowrap;
          align-self: center !important;
          justify-self: end !important;
      }

      /* Hide original elements */
      #projects .project-image-wrapper { display: none !important; }
      #projects .divider-wrapper { display: none !important; }

      /* Hover effects */
      #projects .project-wrapper:hover .case-title {
          transform: translateX(20px);
          color: var(--home-highlight); /* Highlight color on hover */
      }

      #projects .project-wrapper:hover .case-arrow {
          transform: translateX(10px) rotate(-45deg) !important;
          opacity: 1;
      }
      
      #projects .project-wrapper:hover {
          background: transparent !important; /* Wave bg shows instead */
      }

      /* Hover Rectangle */
      @media screen and (min-width: 1025px) {
          #projects .project-wrapper::after {
              content: none;
          }
      }

      #projects .project-expand-panel {
          display: grid;
          grid-template-rows: 0fr;
          opacity: 0;
          transition:
              grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
      }

      #projects .collection-item.is-expanded .project-expand-panel {
          grid-template-rows: 1fr;
          opacity: 1;
      }

      #projects .project-expand-clip {
          min-height: 0;
          overflow: hidden;
      }

      #projects .project-expand-inner {
          padding: 12px 3rem 3.25rem calc(3rem + 32px + 2.5rem);
          display: grid;
          grid-template-columns: minmax(0, 1fr);
          gap: 1.8rem;
      }

      #projects .project-expand-copy {
          display: block;
          width: min(900px, calc(100vw - (var(--home-edge, 3rem) * 2) - 68px));
          min-height: 120px;
          height: auto;
          overflow: visible;
          column-count: auto;
          column-width: auto;
          column-gap: normal;
          column-fill: balance;
          max-width: none;
      }

      #projects .project-expand-copy:empty {
          display: none;
      }

#projects .project-expand-copy p {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1.6;
  letter-spacing: 0;
  break-inside: auto;
  width: 100%;
  min-width: 0;
  max-width: 900px;
}

      #projects .project-expand-actions {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          gap: 0.75rem;
          min-height: 48px;
      }

      #projects .project-open-link {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          height: 48px;
          min-height: 48px;
          padding: 0 32px;
          color: var(--black);
          background: var(--white);
          border: 1px solid var(--white);
          border-radius: 999px;
          font-size: 18px;
          font-weight: 500;
          letter-spacing: 0;
          line-height: 1;
          text-transform: none;
          text-decoration: none;
          white-space: nowrap;
          transition:
              background-color var(--home-hover-color-duration) ease,
              border-color var(--home-hover-color-duration) ease,
              color var(--home-hover-color-duration) ease,
              transform var(--home-hover-duration) var(--home-hover-ease);
      }

      #projects .project-open-link:hover,
      #projects .project-open-link:focus-visible {
          color: var(--black);
          background: var(--home-highlight);
          border-color: var(--home-highlight);
          text-decoration: none;
          transform: translateY(var(--home-hover-lift));
      }

      #projects .project-open-link:focus-visible {
          outline: 1px solid #37D2F5;
          outline-offset: 4px;
      }

      #projects .project-app-store-badge {
          display: block;
          box-sizing: border-box;
          width: 140px;
          height: 48px;
          aspect-ratio: 35 / 12;
          flex: 0 0 auto;
          background-image: url("https://assets.vcx.design/assets/badges/app-store.svg");
          background-position: center;
          background-repeat: no-repeat;
          background-size: contain;
          border-radius: 0;
          text-decoration: none;
          transition:
              opacity var(--home-hover-color-duration) ease,
              transform var(--home-hover-duration) var(--home-hover-ease);
      }

      #projects .project-app-store-badge[hidden] {
          display: none !important;
      }

      #projects .project-app-store-badge:hover,
      #projects .project-app-store-badge:focus-visible {
          opacity: 0.84;
          transform: translateY(var(--home-hover-lift));
      }

      #projects .project-app-store-badge:focus-visible {
          outline: 1px solid #37D2F5;
          outline-offset: 4px;
      }

      #projects .project-expand-count {
          display: none;
          color: rgba(255, 255, 255, 0.46);
          font-size: 0.8rem;
          letter-spacing: 0.08em;
          line-height: 1.2;
          text-transform: uppercase;
      }

      #projects .project-expand-gallery {
          display: flex;
          gap: 15px;
          overflow-x: auto;
          overflow-y: hidden;
          margin: -8px;
          padding: 8px;
          scroll-padding-left: 8px;
          scroll-snap-type: x proximity;
          overscroll-behavior-x: contain;
          -webkit-overflow-scrolling: touch;
          scrollbar-width: none;
          -ms-overflow-style: none;
      }

      #projects .project-expand-gallery::-webkit-scrollbar {
          display: none;
          width: 0;
          height: 0;
      }

      @keyframes project-media-card-fade-in {
          from {
              opacity: 0;
          }
          to {
              opacity: 1;
          }
      }

      @keyframes project-media-image-rise {
          from {
              transform: translate3d(0, 28px, 0);
          }
          to {
              transform: translate3d(0, 0, 0);
          }
      }

      #projects .project-expand-media-card {
          position: relative;
          flex: 0 0 320px;
          aspect-ratio: 1 / 1;
          border: 1px solid #3f3f3f;
          border-radius: 12px;
          overflow: hidden;
          background: #050505;
          display: block;
          padding: 0;
          appearance: none;
          cursor: zoom-in;
          scroll-snap-align: start;
          scroll-snap-stop: always;
          transform: translateZ(0) scale(1);
          transform-origin: center;
          transition: transform var(--home-hover-duration) var(--home-hover-ease);
      }

      #projects .project-expand-gallery.is-revealing .project-expand-media-card {
          animation: project-media-card-fade-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation-delay: var(--project-media-delay, 0ms);
      }

      #projects .project-expand-media-card:hover {
          transform: translateZ(0) scale(var(--home-hover-media-scale));
      }

      #projects .project-expand-media-card:focus-visible {
          outline: 1px solid #37D2F5;
          outline-offset: 4px;
      }

      #projects .project-expand-media-card img,
      #projects .project-expand-media-card video {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
      }

      #projects .project-expand-media-card.is-video::before {
          content: "";
          position: absolute;
          right: 14px;
          bottom: 14px;
          width: 42px;
          height: 42px;
          border: 1px solid rgba(255, 255, 255, 0.5);
          border-radius: 50%;
          background: rgba(0, 0, 0, 0.46);
          backdrop-filter: blur(8px);
          -webkit-backdrop-filter: blur(8px);
          opacity: 1;
          transition: opacity 0.22s ease, transform 0.22s ease;
          pointer-events: none;
          z-index: 2;
      }

      #projects .project-expand-media-card.is-video::after {
          content: "";
          position: absolute;
          right: 29px;
          bottom: 27px;
          width: 0;
          height: 0;
          border-top: 8px solid transparent;
          border-bottom: 8px solid transparent;
          border-left: 12px solid rgba(255, 255, 255, 0.9);
          opacity: 1;
          transition: opacity 0.22s ease, transform 0.22s ease;
          pointer-events: none;
          z-index: 3;
      }

      #projects .project-expand-media-card.is-video.is-playing::before,
      #projects .project-expand-media-card.is-video.is-playing::after {
          opacity: 0;
          transform: scale(0.92);
      }

      #projects .project-expand-gallery.is-revealing .project-expand-media-card img,
      #projects .project-expand-gallery.is-revealing .project-expand-media-card video {
          animation: project-media-image-rise 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
          animation-delay: var(--project-media-delay, 0ms);
      }

      #projects .project-expand-status {
          min-height: 320px;
          display: flex;
          align-items: center;
          color: rgba(255, 255, 255, 0.52);
          font-size: 0.9rem;
          letter-spacing: 0;
      }

      #projects .project-expand-status.is-error {
          color: rgba(255, 255, 255, 0.72);
      }

      @media (prefers-reduced-motion: reduce) {
          #projects .project-expand-gallery.is-revealing .project-expand-media-card,
          #projects .project-expand-gallery.is-revealing .project-expand-media-card img,
          #projects .project-expand-gallery.is-revealing .project-expand-media-card video {
              animation: none;
          }
      }

      body.project-lightbox-open {
          overflow: hidden;
      }

      .project-lightbox {
          --project-lightbox-edge: 3rem;
          --project-lightbox-stage-edge: 3rem;
          --project-lightbox-stage-edge-x: var(--project-lightbox-stage-edge);
          --project-lightbox-stage-edge-y: clamp(4rem, 7vh, 6rem);
          --project-lightbox-close-size: 62px;
          --project-lightbox-close-clearance: 1rem;
          --project-lightbox-stage-max-width: calc(
              100vw - (
                  var(--project-lightbox-stage-edge-x) +
                  var(--project-lightbox-stage-edge-x) +
                  var(--project-lightbox-close-size) +
                  var(--project-lightbox-close-size) +
                  var(--project-lightbox-close-clearance) +
                  var(--project-lightbox-close-clearance)
              )
          );
          --project-lightbox-stage-max-height: calc(
              100dvh - (var(--project-lightbox-stage-edge-y) + var(--project-lightbox-stage-edge-y))
          );

          box-sizing: border-box;
          position: fixed;
          inset: 0;
          z-index: 99998;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: var(--project-lightbox-stage-edge-y) var(--project-lightbox-stage-edge-x);
          min-height: 100vh;
          min-height: 100dvh;
          opacity: 0;
          visibility: hidden;
          pointer-events: none;
          transition: opacity 0.32s ease, visibility 0.32s ease;
      }

      .project-lightbox.is-open,
      .project-lightbox.is-closing {
          visibility: visible;
          pointer-events: auto;
      }

      .project-lightbox.is-open {
          opacity: 1;
      }

      .project-lightbox-backdrop {
          position: absolute;
          inset: 0;
          border: 0;
          background: rgba(0, 0, 0, 0.84);
          cursor: zoom-out;
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
      }

      .project-lightbox-stage {
          position: relative;
          z-index: 1;
          width: min(1760px, var(--project-lightbox-stage-max-width));
          height: min(1040px, var(--project-lightbox-stage-max-height));
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          transform: translateY(12px) scale(0.985);
          transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .project-lightbox.is-open .project-lightbox-stage {
          opacity: 1;
          transform: translateY(0) scale(1);
      }

      .project-lightbox-close {
          appearance: none;
          position: fixed;
          z-index: 2;
          top: var(--project-lightbox-edge);
          right: var(--project-lightbox-edge);
          width: 62px;
          height: 62px;
          min-width: 62px;
          min-height: 62px;
          padding: 0;
          border: 0;
          border-radius: 50%;
          background: #b2b2b2;
          color: #000;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          transition:
              background-color var(--home-hover-color-duration) ease,
              color var(--home-hover-color-duration) ease,
              transform var(--home-hover-duration) var(--home-hover-ease);
      }

      .project-lightbox-close:hover,
      .project-lightbox-close:focus-visible {
          background: #fff;
          color: #000;
      }

      .project-lightbox-close:hover,
      .project-lightbox-close:focus-visible {
          transform: translateY(var(--home-hover-lift));
      }

      .project-lightbox-close:focus-visible {
          outline: 2px solid #37d2f5;
          outline-offset: 4px;
      }

      .project-lightbox-close img {
          display: block;
          width: 20px;
          height: 20px;
          pointer-events: none;
      }

      .project-lightbox-figure {
          position: relative;
          min-width: 0;
          min-height: 0;
          margin: 0;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .project-lightbox-image,
      .project-lightbox-video {
          max-width: 100%;
          max-height: 100%;
          width: auto;
          height: auto;
          object-fit: contain;
          border-radius: 8px;
          opacity: 1;
          transform: scale(1);
          box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
          transition: opacity 0.24s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .project-lightbox.is-loading .project-lightbox-image {
          opacity: 0.36;
          transform: scale(0.992);
      }

      .project-lightbox-video {
          width: min(100%, 1760px);
          height: min(100%, 960px);
          background: #000;
      }

      .project-lightbox.is-loading .project-lightbox-video {
          opacity: 0.5;
          transform: scale(0.992);
      }

      /* Pixel wave background on hover - 填滿整個 list item */
      #projects .project-wave-bg {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
          overflow: hidden;
          pointer-events: none;
          opacity: 0;
          transition: opacity 0.35s ease;
      }
      #projects .project-wrapper:hover .project-wave-bg {
          opacity: 0.5;
      }
      #projects .project-wave-bg canvas {
          position: absolute;
          inset: 0;
          width: 100% !important;
          height: 100% !important;
      }

      /* Floating cursor image - 圖片的左下角位於游標右上方 */
      #cursor-image {
          position: fixed;
          top: 0;
          left: 0;
          width: 18vw;
          min-width: 280px;
          height: auto;
          aspect-ratio: 1/1;
          pointer-events: none;
          z-index: 99990; /* 略低於 page-wipe (99999) 讓轉場時會被遮住 */
          opacity: 0;
          transform: translate3d(0, 0, 0) scale(0.96);
          transition: none;
          border-radius: 8px;
          overflow: hidden;
          will-change: transform, opacity;
          contain: layout paint style;
          box-shadow: 0 20px 40px rgba(0,0,0,0.4);
      }

      #cursor-image.active {
          opacity: 1;
      }

      #cursor-image img {
          width: 100%;
          height: 100%;
          object-fit: contain;
          display: block;
          transform: translateZ(0);
      }

      /* RWD: 991px 以下 - 與 container padding 一致，讓 year 對齊 section heading */
      @media screen and (max-width: 991px) {
          #projects .project-wrapper {
              padding: 2rem 1.5rem !important;
              align-items: flex-start !important;
          }
          #projects .project-content-container {
              grid-template-columns: 28px minmax(100px, 1fr) auto !important;
              grid-template-rows: auto auto !important;
              align-items: start !important;
              gap: 0.375rem 1.5rem !important;
          }
          #projects .case-arrow-wrapper {
              width: 24px !important;
              height: 24px !important;
              grid-row: 1 / -1 !important;
              align-self: center !important;
              display: flex !important;
              align-items: center !important;
              justify-content: center !important;
          }
          #projects .terminal-spinner {
              font-size: 16px !important;
              position: relative !important;
          }
          #projects .case-title {
              grid-column: 2 !important;
              grid-row: 1 !important;
              font-size: clamp(1.125rem, 2.5vw, 1.5rem) !important;
              line-height: 1.3 !important;
          }
          #projects .project-title-container .label {
              grid-column: 2 !important;
              grid-row: 2 !important;
              font-size: 0.9rem !important;
              line-height: 1.4 !important;
              white-space: normal !important;
          }
          #projects .case-year {
              grid-column: 3 !important;
              grid-row: 1 / -1 !important;
              align-self: center !important;
              font-size: 0.95rem !important;
          }
          #cursor-image {
              display: none !important;
          }
          #projects .project-wrapper:hover .case-title {
              transform: none;
          }
          #projects .project-expand-inner {
              padding: 2rem 1.5rem 2.3rem calc(1.5rem + 28px + 1.5rem);
          }
          #projects .project-expand-copy {
              width: 100%;
              height: auto;
              min-height: 0;
              overflow: visible;
              column-count: auto;
              column-width: auto;
              column-gap: normal;
              max-width: none;
          }
          #projects .project-expand-gallery {
              gap: 12px;
              scroll-padding-left: 8px;
              scroll-snap-type: x mandatory;
          }
          #projects .project-expand-media-card {
              flex-basis: min(72vw, 320px);
          }
      }

      /* RWD: 767px 以下 - 與 container 24px 一致，year 對齊 section heading */
      @media screen and (max-width: 767px) {
          .project-lightbox {
              --project-lightbox-stage-edge: 1.5rem;
              --project-lightbox-stage-edge-x: var(--project-lightbox-stage-edge);
              --project-lightbox-stage-edge-y: 2.25rem;
              --project-lightbox-stage-max-width: calc(
                  100vw - (var(--project-lightbox-stage-edge-x) + var(--project-lightbox-stage-edge-x))
              );
              --project-lightbox-stage-max-height: calc(
                  100dvh - (var(--project-lightbox-stage-edge-y) + var(--project-lightbox-stage-edge-y))
              );
          }
          #projects .project-wrapper {
              padding: 2rem 24px !important;
              align-items: flex-start !important;
          }
          #projects .project-expand-inner {
              padding: 2rem 24px 2.3rem 24px;
          }
      }

      /* RWD: 小螢幕 - 同上，縮小垂直間距 */
      @media screen and (max-width: 480px) {
          #projects .project-wrapper {
              padding: 1.5rem 24px !important;
              align-items: flex-start !important;
          }
          #projects .project-content-container {
              grid-template-columns: 24px minmax(80px, 1fr) auto !important;
              gap: 0.25rem 1rem !important;
          }
          #projects .case-arrow-wrapper {
              width: 20px !important;
              height: 20px !important;
              display: flex !important;
              align-items: center !important;
              justify-content: center !important;
          }
          #projects .terminal-spinner {
              font-size: 14px !important;
              position: relative !important;
          }
          #projects .case-title {
              font-size: 1.125rem !important;
              line-height: 1.35 !important;
          }
          #projects .project-title-container .label,
          #projects .case-year {
              font-size: 0.85rem !important;
          }
          #projects .project-expand-actions {
              align-items: flex-start;
              flex-direction: row;
              gap: 0.75rem;
          }
          #projects .project-open-link {
              height: 48px;
              min-height: 48px;
              padding-left: 32px;
              padding-right: 32px;
              font-size: 18px;
          }
          #projects .project-app-store-badge {
              width: 140px;
              height: 48px;
          }
          #projects .project-expand-status {
              font-size: 0.88rem;
          }
          #projects .project-expand-copy {
              column-count: auto;
              column-width: auto;
              height: auto;
              max-height: none;
              overflow: visible;
          }
          .project-lightbox-close {
              width: 62px;
              height: 62px;
              min-width: 62px;
              min-height: 62px;
          }
      }


/* Photography Scroll-into-view Progress Bar Animation */
.lightbox-link-2 {
    position: relative !important;
    display: block !important;
    overflow: hidden;
    background-color: #000; /* 預設黑色背景 */
    width: 100%;
    aspect-ratio: 1 / 1; /* 強制容器 1:1 */
    min-height: 200px; /* 針對不支援 aspect-ratio 的手機提供基本高度 */
}

.light-box-image {
    border-radius: 0 !important;
    opacity: 1;
    transition: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    background-color: #000; /* 預設底色 */
    transform: translate3d(0, 0, 0);
}

.light-box-image.is-visible {
    opacity: 1 !important;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .wipe-item {
    transform: scaleX(0) !important;
  }

  #cursor-image {
    display: none !important;
  }

  .light-box-image {
    opacity: 1 !important;
    transition: none !important;
    pointer-events: auto;
  }

  .project-lightbox,
  .project-lightbox-stage,
  .project-lightbox-image,
  .project-lightbox-close,
  .about-experience-expand-panel,
  .about-experience-expand-inner {
    transition: none !important;
  }

  .project-lightbox-stage,
  .project-lightbox-image,
  .about-experience-expand-inner {
    transform: none !important;
  }
}

/* Hero Banner Full Width Overrides */
@media screen and (min-width: 992px) {
  .hero-logo-container {
    border-radius: 0 !important;
    width: calc(100% + 6rem) !important;
    margin-left: -3rem !important;
    margin-right: -3rem !important;
    max-width: none !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-logo-container {
    border-radius: 0 !important;
    width: calc(100% + 4rem) !important;
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    max-width: none !important;
  }
}

/* Homepage 2026 editorial header */
:root {
  --white: #b2b2b2;
  --relume-library-lite--rl-white: #b2b2b2;
  --radiant-ui-components-library-marketplace--color--white: #b2b2b2;
  --home-bg: #000000;
  --home-ink: #b2b2b2;
  --home-highlight: #fff;
  --home-muted: rgba(178, 178, 178, 0.68);
  --home-soft: rgba(178, 178, 178, 0.46);
  --home-line: rgba(178, 178, 178, 0.14);
  --home-success: #00ff84;
  --home-hover-lift: -2px;
  --home-hover-duration: 0.22s;
  --home-hover-color-duration: 0.2s;
  --home-hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --home-hover-media-scale: 1.02;
  --home-hover-arrow-shift: 3px;
  --home-edge: clamp(24px, 5.208vw, 100px);
  --home-editorial-title-size: clamp(3rem, 3.125vw, 3.75rem);
  --home-editorial-title-size-mobile: 3rem;
  --home-editorial-copy-size: clamp(1.65rem, 1.875vw, 2.25rem);
  --home-editorial-copy-size-mobile: 1.5rem;
  --home-editorial-copy-line-height: 1.4;
  --home-status-size: clamp(1.25rem, 1.458vw, 1.75rem);
  --home-action-size: clamp(96px, 7.901vw, 210px);
  --home-action-radius: clamp(24px, 2.03vw, 54px);
  --about-column-grid: repeat(4, minmax(0, 1fr));
  --about-column-gap: clamp(32px, 3.229vw, 62px);
  --about-service-intro-offset: 32px;
}

/* Interaction normalization: neutralize legacy global link fade without touching lightbox reveal links. */
a:hover:not(.lightbox-link-2):not([data-lightbox-item]),
a:focus-visible:not(.lightbox-link-2):not([data-lightbox-item]) {
  opacity: 1 !important;
}

.social-badge {
  transition:
    opacity var(--home-hover-color-duration) ease,
    transform var(--home-hover-duration) var(--home-hover-ease) !important;
}

.social-badge:hover,
.social-badge:focus-visible {
  opacity: 1 !important;
  transform: translateY(var(--home-hover-lift));
}

html {
  scroll-behavior: smooth;
}

.js-enabled .is-reveal-pending:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .is-reveal-pending.divider:not(.is-visible),
.js-enabled .is-reveal-pending.hero-divider:not(.is-visible) {
  transform: scaleX(0);
  transform-origin: left center;
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .is-reveal-pending:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

.hero-top-wrapper {
  background: var(--home-bg);
  color: var(--home-ink);
  min-height: 0 !important;
}

.section.hero-section.home-hero-section {
  background: var(--home-bg);
  display: block;
  height: auto !important;
  min-height: clamp(292px, 19.011vw, 365px);
  padding: 0 !important;
}

.home-intro {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 4.5vw, 86px);
  align-items: start;
  height: auto !important;
  min-height: inherit;
  padding: clamp(44px, 3.333vw, 64px) var(--home-edge) clamp(40px, 4.167vw, 80px);
  background: var(--home-bg);
}

.home-intro-copy {
  max-width: min(62vw, 984px);
  min-width: 0;
}

.home-intro-title {
  margin: 0;
  max-width: 984px;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: clamp(2rem, 1.85vw, 2.35rem);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1.14;
  text-transform: none;
}

.home-intro-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 32px;
  margin-top: clamp(28px, 1.78vw, 34px);
  color: var(--home-muted);
}

.home-intro-meta p {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.25;
  white-space: nowrap;
}

.home-intro-logo-link {
  display: inline-flex;
  align-items: center;
  width: clamp(86px, 6.2vw, 118px);
  flex: 0 0 auto;
  text-decoration: none;
}

.home-intro-logo {
  display: block;
  width: 100%;
  height: auto;
}

.home-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: clamp(16px, 1.25vw, 24px);
  padding-top: 0;
}

.home-action-button {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--home-action-size);
  height: var(--home-action-size);
  min-width: var(--home-action-size);
  min-height: var(--home-action-size);
  padding: 0;
  color: var(--home-bg);
  background: var(--home-ink);
  border: 1px solid rgba(178, 178, 178, 0.92);
  border-radius: var(--home-action-radius);
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--home-hover-color-duration) ease,
    border-color var(--home-hover-color-duration) ease,
    transform var(--home-hover-duration) var(--home-hover-ease);
}

.home-action-button:hover,
.home-action-button:focus-visible {
  background: var(--home-highlight);
  border-color: var(--home-highlight);
  transform: translateY(var(--home-hover-lift));
}

.home-action-button:focus-visible {
  outline: 2px solid #37d2f5;
  outline-offset: 4px;
}

.home-action-button:active {
  transform: translateY(-1px);
}

.home-action-button-message {
  border-radius: 50%;
}

.home-action-svg {
  display: block;
  pointer-events: none;
  user-select: none;
}

.home-action-svg-message {
  width: 58%;
  height: auto;
}

.home-action-svg-mode {
  width: 52%;
  height: 52%;
}

.home-action-lang {
  display: block;
  color: currentColor;
  font-family: var(--font-primary);
  font-size: clamp(3.375rem, 3.762vw, 6.25rem);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1;
}

html:lang(zh-Hant) .home-intro-title,
html:lang(zh-Hant) .about-strength-card h3,
html:lang(zh-Hant) .about-service-card h3,
html:lang(zh-Hant) .photography-title,
html:lang(zh-Hant) .huge-heading {
  font-family: var(--font-primary);
  letter-spacing: 0;
}

#projects {
  background: var(--home-bg);
  margin-top: 0 !important;
  padding-top: 0 !important;
  overflow-x: clip;
}

#projects > .container {
  gap: 0 !important;
  grid-row-gap: 0 !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.selected-projects-heading {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 108px;
  padding: 0 var(--home-edge);
  border-bottom: 1px solid var(--home-line);
  color: #ffffff;
}

.selected-projects-heading h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.selected-projects-heading span {
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

#projects .cases-wrapper {
  margin-top: 0 !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#projects .case-list-wrapper {
  gap: 0 !important;
}

#projects .collection-item {
  border-bottom: 1px solid var(--home-line);
  transition: border-color 0.3s ease;
}

#projects .case-list-wrapper:has(.collection-item.is-expanded) .collection-item:not(.is-expanded) > .project-wrapper > .project-content-container {
  opacity: 0.15;
}

#projects .case-list-wrapper:has(.collection-item.is-expanded) .collection-item:not(.is-expanded):is(:hover, :focus-within) > .project-wrapper > .project-content-container {
  opacity: 1;
}

#projects .project-wrapper {
  min-height: 135px !important;
  padding: 0 var(--home-edge) !important;
  background: transparent !important;
  border-color: #d9d9d9;
}

#projects .project-content-container {
  grid-template-columns: 32px minmax(220px, 1fr) minmax(260px, 451px) !important;
  grid-template-rows: auto !important;
  column-gap: 36px !important;
  row-gap: 0 !important;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#projects .case-arrow-wrapper {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

#projects .terminal-spinner {
  color: var(--home-soft) !important;
  font-size: clamp(1.75rem, 1.6vw, 2rem) !important;
  font-weight: 300 !important;
}

#projects .project-wrapper:hover .terminal-spinner,
#projects .collection-item.is-expanded .terminal-spinner {
  color: var(--home-highlight) !important;
}

#projects .case-title {
  color: rgba(178, 178, 178, 0.82);
  font-size: clamp(1.7rem, 1.58vw, 2rem) !important;
  font-weight: 200;
  line-height: 1.2 !important;
}

#projects .project-wrapper:hover .case-title {
  color: var(--home-highlight);
  transform: translateX(12px);
}

#projects .collection-item.is-expanded .case-title {
  color: var(--home-highlight);
}

#projects .project-title-container .label {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  color: var(--home-muted) !important;
  font-size: clamp(1.125rem, 0.95vw, 1.5rem) !important;
  font-weight: 200 !important;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

#projects .case-year {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  color: var(--home-soft) !important;
  font-size: clamp(1.35rem, 1.45vw, 1.75rem) !important;
  font-weight: 300 !important;
  line-height: 1.2 !important;
  opacity: 1;
}

#projects .project-expand-inner {
  padding: 12px var(--home-edge) 3.25rem calc(var(--home-edge) + 68px);
}

#projects .project-wave-bg {
  display: none !important;
}

#about.about-editorial {
  background: #000000;
  color: var(--home-ink);
  margin-top: 0 !important;
  padding: 0 !important;
  overflow: clip;
}

.about-shell {
  width: 100%;
  background: #000000;
}

.about-heading-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  padding: 0 var(--home-edge);
  color: #ffffff;
}

.about-heading-row h2,
.about-heading-row span {
  margin: 0;
  color: currentColor;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.about-heading-row span {
  font-weight: 200;
  white-space: nowrap;
}

.about-strengths {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(56px, 5.2vw, 100px);
  padding: 120px var(--home-edge) 0;
}

.about-strength-card {
  min-width: 0;
}

.about-strength-icon {
  display: block;
  width: 100px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 32px;
}

.about-strength-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.about-strength-card p {
  margin: 0;
  color: #6b6b6b;
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.4;
}

.about-profile-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(320px, 506px) minmax(0, 1fr);
  gap: clamp(64px, 5.2vw, 99px);
  align-items: center;
  padding: 120px var(--home-edge) 0;
}

.about-profile-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.about-profile-avatar {
  display: block;
  width: 212px;
  height: 212px;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
}

.about-profile-slash {
  display: block;
  width: 146px;
  height: 1px;
  background: var(--home-ink);
  transform: rotate(-45deg);
  transform-origin: center;
}

.about-profile-copy {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1.6;
}

.about-service {
  padding-top: 120px;
}

.about-service-hero {
  width: 100%;
  aspect-ratio: 1920 / 1482;
  background: #050505;
  overflow: hidden;
}

.about-service-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-service-intro {
  box-sizing: border-box;
  width: min(100%, calc(952px + (var(--home-edge) * 2)));
  margin: var(--about-service-intro-offset) auto 0;
  padding: 0 var(--home-edge);
  color: #ffffff;
  text-align: center;
}

.about-service-intro h2,
.about-service-status,
.about-service-lede {
  margin: 0;
  font-family: var(--font-primary);
  letter-spacing: 0;
  text-transform: none;
}

.about-service-intro h2 {
  font-size: var(--home-editorial-title-size);
  font-weight: 100;
  letter-spacing: -0.2rem;
  line-height: 1.2;
  text-wrap: balance;
}

.about-service-status {
  margin-top: 24px;
  border-color: currentColor;
  color: var(--home-success);
  font-size: var(--home-status-size);
  font-weight: 100;
  line-height: 1.4;
  text-wrap: balance;
}

.about-service-lede {
  margin-top: 24px;
  color: var(--home-ink);
  font-size: var(--home-editorial-copy-size);
  font-weight: 100;
  line-height: var(--home-editorial-copy-line-height);
  text-wrap: pretty;
}

.about-service-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--about-column-grid);
  column-gap: var(--about-column-gap);
  row-gap: 72px;
  padding: 100px var(--home-edge) 0;
}

.about-service-card {
  min-width: 0;
}

.about-service-media {
  box-sizing: border-box;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0.125rem solid #b2b2b2;
  background: #000;
  overflow: hidden;
}

.about-service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-service-card h3 {
  margin: clamp(24px, 1.591vw, 31px) 0 0;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: none;
}

.about-service-card p {
  margin: 20px 0 0;
  color: #6b6b6b;
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.4;
}

.about-experience {
  padding-top: 120px;
}

.about-experience-heading {
  border-bottom: 1px solid var(--home-line);
}

.about-experience-list {
  border-bottom: 1px solid var(--home-line);
}

.about-experience-item {
  border-bottom: 1px solid var(--home-line);
}

.about-experience-item:last-child {
  border-bottom: 0;
}

#about:not(.about-reveal-ready) .about-experience-list:has(.about-experience-item.is-expanded) .about-experience-item:not(.is-expanded) > .about-experience-summary,
#about.about-reveal-ready .about-experience-list:has(.about-experience-item.is-expanded) .about-experience-item.about-reveal-item.is-visible:not(.is-expanded) > .about-experience-summary {
  opacity: 0.15;
}

#about:not(.about-reveal-ready) .about-experience-list:has(.about-experience-item.is-expanded) .about-experience-item:not(.is-expanded):is(:hover, :focus-within) > .about-experience-summary,
#about.about-reveal-ready .about-experience-list:has(.about-experience-item.is-expanded) .about-experience-item.about-reveal-item.is-visible:not(.is-expanded):is(:hover, :focus-within) > .about-experience-summary {
  opacity: 1;
}

.about-experience-summary {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--about-column-grid);
  column-gap: var(--about-column-gap);
  align-items: center;
  min-height: 135px;
  padding: 0 var(--home-edge);
  color: rgba(178, 178, 178, 0.66);
  cursor: pointer;
  list-style: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-experience-item.has-description .about-experience-summary {
  cursor: pointer;
}

.about-experience-summary:focus-visible {
  outline: 2px solid #37d2f5;
  outline-offset: -6px;
}

.about-experience-item.has-description.is-expanded .about-experience-summary {
  min-height: 135px;
  padding-top: 0;
  padding-bottom: 0;
}

.about-experience-kind,
.about-experience-company,
.about-experience-role,
.about-experience-date {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.2;
}

.about-experience-meta {
  grid-column: 2 / 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--about-column-gap);
  min-width: 0;
}

.about-experience-kind,
.about-experience-company,
.about-experience-date {
  color: var(--home-ink);
}

.about-experience-kind,
.about-experience-date {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-experience-company {
  grid-column: 1;
  grid-row: 1;
}

.about-experience-role {
  grid-column: 1;
  grid-row: 1;
}

.about-experience-kind {
  grid-column: 2;
  grid-row: 1;
}

.about-experience-date {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}

.about-experience-company,
.about-experience-role {
  align-self: center;
  justify-self: start;
}

.about-experience-kind {
  align-self: center;
  justify-self: start;
  text-align: left;
}

.about-experience-date {
  align-self: center;
}

.about-experience-expand-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.about-experience-item.is-expanded .about-experience-expand-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.about-experience-expand-clip {
  min-height: 0;
  overflow: hidden;
}

.about-experience-expand-inner {
  box-sizing: border-box;
  padding: 0 var(--home-edge) clamp(52px, 4.6vw, 88px);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.34s ease,
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-experience-item.is-expanded .about-experience-expand-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.about-experience-description {
  box-sizing: border-box;
  max-width: 1265px;
  margin: 0;
  padding: 0;
  color: #6b6b6b;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.2;
}

.about-experience-detail-list {
  display: grid;
  gap: clamp(64px, 4.2vw, 80px);
}

.about-experience-detail-section {
  display: grid;
  grid-template-columns: var(--about-column-grid);
  column-gap: var(--about-column-gap);
  align-items: start;
}

.about-experience-detail-label,
.about-experience-detail-copy,
.about-experience-project-list,
.about-experience-project-title,
.about-experience-project-index {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.2;
}

.about-experience-detail-label {
  grid-column: 1;
  grid-row: 1;
  color: var(--home-ink);
  letter-spacing: 0.04em;
  text-transform: none;
}

.about-experience-detail-rule {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  position: relative;
  display: block;
  width: min(100%, 260px);
  height: 29px;
}

.about-experience-detail-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--home-ink);
  transform: translateY(-50%);
  transform-origin: center;
}

.about-experience-detail-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  display: block;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--home-ink);
  border-right: 1px solid var(--home-ink);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

.about-experience-detail-copy {
  box-sizing: border-box;
  grid-column: 2 / span 2;
  grid-row: 1;
  max-width: 857px;
  margin: 0;
  color: #6b6b6b;
}

.about-experience-project-list {
  display: grid;
  grid-column: 2 / span 2;
  grid-row: 1;
  gap: 14px;
  max-width: 857px;
  margin: 0;
  padding: 0;
  color: #6b6b6b;
  list-style: none;
}

.about-experience-project-list li {
  display: flex;
  align-items: flex-end;
  gap: 19px;
  min-width: 0;
}

.about-experience-project-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--home-ink);
  color: #000;
  text-align: center;
}

.about-experience-project-title {
  min-width: 0;
  color: #6b6b6b;
  overflow-wrap: anywhere;
}

#about.about-reveal-ready .about-reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--about-reveal-delay, 0ms);
  will-change: opacity, transform;
}

#about.about-reveal-ready .about-reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  #about.about-reveal-ready .about-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

@media screen and (max-width: 1420px) {
  .about-strengths {
    gap: 56px;
  }

  .about-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-strength-card h3,
  .about-strength-card p {
    font-size: 1.35rem;
  }

  .about-profile-copy {
    font-size: 1.55rem;
  }

  .about-experience-summary {
    grid-template-columns: var(--about-column-grid);
    column-gap: var(--about-column-gap);
  }

  .about-experience-detail-section {
    grid-template-columns: var(--about-column-grid);
    column-gap: var(--about-column-gap);
  }

  .about-experience-detail-rule {
    width: min(100%, 220px);
  }
}

@media screen and (max-width: 1180px) {
  .home-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 40px;
  }

  .home-intro-copy {
    max-width: 100%;
  }

  .home-actions {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media screen and (max-width: 991px) {
  :root {
    --home-edge: 24px;
    --home-action-size: 72px;
    --home-action-radius: 20px;
  }

  .section.hero-section.home-hero-section {
    min-height: 0;
  }

  .home-intro {
    padding-top: 40px;
  }

  .home-intro-title {
    max-width: 720px;
    font-size: clamp(1.9rem, 5.4vw, 2.65rem);
  }

  .home-intro-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 24px;
  }

  .home-intro-meta p {
    font-size: clamp(1rem, 3.6vw, 1.25rem);
    white-space: normal;
  }

  .home-intro-logo-link {
    width: 86px;
  }

  .home-action-lang {
    font-size: 2rem;
  }

  .selected-projects-heading {
    min-height: 84px;
  }

  .selected-projects-heading h2 {
    font-size: clamp(1.45rem, 5.2vw, 2rem);
  }

  .selected-projects-heading span {
    font-size: clamp(1.15rem, 4vw, 1.45rem);
  }

  #projects .project-wrapper {
    min-height: 112px !important;
    padding: 1.8rem var(--home-edge) !important;
  }

  #projects .project-content-container {
    grid-template-columns: 24px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 18px !important;
    row-gap: 0.3rem !important;
  }

  #projects .case-arrow-wrapper {
    grid-row: 1 / -1 !important;
    align-self: center !important;
  }

  #projects .terminal-spinner {
    font-size: 1rem !important;
  }

  #projects .case-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: clamp(1.2rem, 4.4vw, 1.55rem) !important;
  }

  #projects .project-title-container .label {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em;
    white-space: normal !important;
  }

  #projects .case-year {
    grid-column: 3 !important;
    grid-row: 1 / -1 !important;
    align-self: center !important;
    font-size: 1rem !important;
  }

  #projects .project-wrapper:hover .case-title {
    transform: none;
  }

  #projects .project-expand-inner {
    padding: 1.75rem var(--home-edge) 2.3rem var(--home-edge);
  }

  .about-heading-row {
    min-height: 84px;
  }

  .about-heading-row h2,
  .about-heading-row span {
    font-size: clamp(1.45rem, 5.2vw, 2rem);
  }

  .about-heading-row h2 {
    flex: 0 0 auto;
  }

  .about-heading-row span {
    min-width: 0;
    text-align: right;
    white-space: normal;
  }

  .about-strengths {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 72px;
  }

  .about-strength-icon {
    margin-bottom: 24px;
  }

  .about-strength-card h3,
  .about-strength-card p {
    max-width: 760px;
    font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  }

  .about-profile-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 72px;
  }

  .about-profile-visual {
    justify-content: flex-start;
    gap: clamp(56px, 14vw, 120px);
    width: auto;
  }

  .about-profile-avatar {
    width: 156px;
    height: 156px;
  }

  .about-profile-slash {
    width: 104px;
  }

  .about-profile-copy {
    max-width: 820px;
    font-size: clamp(1.2rem, 3.8vw, 1.5rem);
  }

  .about-service {
    padding-top: 72px;
  }

  .about-service-hero {
    aspect-ratio: 4 / 3;
  }

  .about-service-intro h2 {
    line-height: 1.25;
  }

  .about-service-status {
    margin-top: 14px;
    font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  }

  .about-service-lede {
    margin-top: 28px;
    font-size: clamp(1.2rem, 3.8vw, 1.5rem);
    line-height: 1.4;
  }

  .about-service-grid {
    padding-top: 56px;
    row-gap: 56px;
  }

  .about-service-card h3 {
    font-size: clamp(1.45rem, 5vw, 1.75rem);
  }

  .about-service-card p {
    max-width: 680px;
    font-size: clamp(1.15rem, 3.8vw, 1.5rem);
  }

  .about-experience {
    padding-top: 72px;
  }

  .about-experience-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "company date"
      "role date"
      "kind date";
    gap: 8px 20px;
    justify-content: stretch;
    min-height: auto;
    padding: 24px var(--home-edge);
  }

  .about-experience-item.has-description.is-expanded .about-experience-summary {
    min-height: auto;
    padding-top: 24px;
  }

  .about-experience-kind {
    grid-area: kind;
    justify-self: start;
    text-align: left;
  }

  .about-experience-company {
    grid-area: company;
    color: var(--home-ink);
  }

  .about-experience-role {
    grid-area: role;
  }

  .about-experience-date {
    grid-area: date;
    justify-self: end;
    align-self: start;
    text-align: right;
  }

  .about-experience-expand-inner {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .about-experience-detail-list {
    gap: 32px;
  }

  .about-experience-detail-section {
    grid-template-columns: minmax(56px, 72px) minmax(64px, 96px) minmax(0, 1fr);
    column-gap: 20px;
  }

  .about-experience-detail-label {
    grid-column: 1;
  }

  .about-experience-detail-rule {
    grid-column: 2;
    justify-self: start;
  }

  .about-experience-detail-copy,
  .about-experience-project-list {
    grid-column: 3;
  }

  .about-experience-detail-rule {
    width: 96px;
    height: 20px;
  }

  .about-experience-kind,
  .about-experience-company,
  .about-experience-role,
  .about-experience-date {
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  }

  .about-experience-description {
    max-width: none;
    font-size: clamp(1rem, 3.6vw, 1.15rem);
  }

  .about-experience-detail-label,
  .about-experience-detail-copy,
  .about-experience-project-list,
  .about-experience-project-title,
  .about-experience-project-index {
    font-size: clamp(1rem, 3.6vw, 1.15rem);
  }

  .about-experience-project-list li {
    align-items: flex-start;
    gap: 12px;
  }

  .about-experience-project-index {
    width: 24px;
    height: 24px;
  }
}

/* 手機主要斷點。 */
@media screen and (max-width: 767px) {
  :root {
    /* 手機共用外距：跨 section 使用，所以保留在全域 token。 */
    --home-edge: 1.25rem;
  }

  /* .home-hero-section：手機首頁 hero 高度，包含固定 nav 的空間。 */
  .section.hero-section.home-hero-section {
    min-height: calc(var(--site-nav-height) + 9.5rem);
  }

  /* .home-intro：固定 nav 下方的首頁 hero 內容容器。 */
  .home-intro {
    display: block;
    min-height: inherit;
    padding: calc(var(--site-nav-height) + 1rem) var(--home-edge) 1rem;
  }

  .home-intro-copy {
    max-width: 100%;
  }

  /* .home-intro-title：首頁 slogan 文字。 */
  .home-intro-title {
    max-width: 22.75rem;
    font-size: 1.75rem;
    line-height: 1.1;
  }

  /* .home-intro-meta：hero 裡 logo / hashtag 的外層容器。 */
  .home-intro-meta {
    gap: 0;
    margin-top: 1rem;
  }

  /* .home-intro-logo-link / .home-actions：手機版隱藏，因為固定 nav 已負責這些操作。 */
  .home-intro-logo-link,
  .home-actions {
    display: none;
  }

  /* .home-intro-meta p：slogan 下方的 hashtag 文字。 */
  .home-intro-meta p {
    max-width: 22.75rem;
    font-size: 1rem;
    line-height: 1;
  }

  /* #projects .case-title：作品列標題文字，例如「CDXPAL macOS app」。 */
  #projects .case-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  /* #projects .project-title-container .label：作品列分類文字，例如「DEVELOPMENT」。 */
  #projects .project-title-container .label {
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  /* #projects .project-wrapper：單一可點擊的作品列。 */
  #projects .project-wrapper {
    min-height: 5.5rem !important;
    padding: 1rem var(--home-edge) !important;
    align-items: flex-start !important;
  }

  /* #projects .project-list-item:first-child .project-wrapper：手機版第一個作品列貼齊列表頂端。 */
  #projects .project-list-item:first-child .project-wrapper {
    padding-top: 0 !important;
  }

  /* #projects .project-content-container：手機版作品列 grid，控制標題、分類、年份。 */
  #projects .project-content-container {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: 1rem !important;
    row-gap: 0 !important;
  }

  /* #projects .case-arrow-wrapper：手機版隱藏左側橫線動畫，讓作品列和 Experience 對齊。 */
  #projects .case-arrow-wrapper {
    display: none !important;
  }

  /* #projects .terminal-spinner：左側欄位裡的旋轉 dash 符號。 */
  #projects .terminal-spinner {
    display: none !important;
  }

  /* #projects .case-title：作品標題在 grid 裡的位置。 */
  #projects .case-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 2.25rem;
  }

  /* #projects .case-title-with-badge：作品標題加上 new badge 的外層。 */
  #projects .case-title-with-badge {
    column-gap: 0.75rem;
  }

  /* #projects .project-title-badge：作品標題旁邊的 new badge 圖片。 */
  #projects .project-title-badge {
    width: 2.5rem;
    padding-block: 0;
  }

  /* #projects .project-expand-copy p：作品展開後的描述文字。 */
  #projects .project-expand-copy p {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  /* #projects .project-title-container .label：分類文字在第二列的位置。 */
  #projects .project-title-container .label {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    letter-spacing: 0.025rem;
    white-space: nowrap !important;
  }

  /* #projects .case-year：作品年份，放在右上角，和 Experience 對齊。 */
  #projects .case-year {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    justify-self: end !important;
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    text-align: right !important;
  }

  /* .about-experience-summary：Experience 手機列，第一列公司 / 年份，第二列職稱與工作性質。 */
  .about-experience-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1.425rem 1.25rem;
    grid-template-areas:
      "company date"
      "meta meta";
    align-items: start;
    align-content: start;
    column-gap: 0;
    row-gap: 0;
    min-height: 5rem;
    padding: 1rem;
  }

  .about-experience-item.has-description.is-expanded .about-experience-summary {
    min-height: 5.5rem;
    padding: 1rem;
  }

  .about-experience-company,
  .about-experience-date {
    font-size: 1rem;
    line-height: 1.2;
  }

  .about-experience-role,
  .about-experience-kind {
    color: #636363;
    font-size: 1rem;
    line-height: 1.2;
  }

  .about-experience-company,
  .about-experience-role,
  .about-experience-kind,
  .about-experience-date {
    align-self: start;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .about-experience-company {
    grid-area: company;
    justify-self: start;
  }

  .about-experience-meta {
    grid-area: meta;
    display: flex;
    align-items: baseline;
    gap: 0;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .about-experience-date {
    grid-area: date;
    justify-self: end;
    text-align: right;
  }

  .about-experience-role {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .about-experience-kind {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    margin-left: 0;
    justify-self: start;
    text-align: left;
  }

  /* .about-experience-kind::before：手機版職稱與工作性質中間的全形分隔號。 */
  .about-experience-kind::before {
    content: "・";
    flex: 0 0 auto;
    margin-inline: 0.45rem;
    line-height: inherit;
  }

  .about-experience-expand-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* 窄手機覆寫：520px 以下的額外微調。 */
@media screen and (max-width: 520px) {
  /* .home-intro：窄手機 slogan 位置與字級。 */
  .home-intro {
    padding-top: calc(var(--site-nav-height) + 1rem);
    padding-bottom: 1rem;
  }

  /* .home-intro-title：窄手機的 slogan 字級與行高。 */
  .home-intro-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .home-actions {
    gap: 0.5rem;
  }

  .home-action-lang {
    font-size: 1.875rem;
  }

  /* .selected-projects-heading：Projects section header 的窄手機高度與左右欄距。 */
  .selected-projects-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    align-content: center;
    min-height: 4rem;
  }

  /* #projects .project-wrapper：維持每個手機作品列的 Figma 高度。 */
  #projects .project-wrapper {
    min-height: 5.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* .about-heading-row：section header 橫列，例如 ABOUT / VINCENT FAN。 */
  .about-heading-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
  }

  /* .about-strengths / .about-profile-row / .about-service：About 區塊之間的垂直間距。 */
  .about-strengths,
  .about-profile-row,
  .about-service {
    padding-top: 3rem;
  }

  .about-service-hero {
    aspect-ratio: 4 / 5;
  }

  .about-service-status {
    margin-top: 0.875rem;
    font-size: 1.125rem;
  }

  .about-service-lede {
    margin-top: 1.75rem;
  }

  .about-strength-icon {
    width: 4.25rem;
    height: 4rem;
    margin-bottom: 1.5rem;
  }

  /* .about-strength-card h3：About 優勢卡片標題。 */
  .about-strength-card h3 {
    font-size: 1.5rem;
    line-height: 1;
  }

  /* .about-strength-card p：About 優勢卡片內文。 */
  .about-strength-card p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  /* .about-profile-copy：頭像旁或下方的個人介紹段落。 */
  .about-profile-copy {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .about-service-grid {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    row-gap: 3rem;
  }

  .about-service-card h3,
  .about-service-card p {
    max-width: none;
  }

  /* .about-service-card h3：Service 卡片標題，例如「interface design」。 */
  .about-service-card h3 {
    font-size: 1.5rem;
    line-height: 1;
  }

  /* .about-service-card p：Service 卡片描述文字。 */
  .about-service-card p {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .about-profile-visual {
    gap: 2.25rem;
  }

  .about-profile-avatar {
    width: 7rem;
    height: 7rem;
  }

  .about-profile-slash {
    width: 5rem;
    display: none;
  }

  .about-experience {
    padding-top: 3rem;
  }

  .about-experience-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0;
  }

  .about-experience-detail-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.75rem;
  }

  .about-experience-detail-label,
  .about-experience-detail-copy,
  .about-experience-project-list {
    grid-column: 1;
    grid-row: auto;
  }

  .about-experience-detail-rule {
    display: none;
  }

  /* .about-experience-detail-copy：手機版 Experience 展開後的描述內文。 */
  .about-experience-detail-copy {
    font-size: 1.15rem;
    line-height: 1.6rem;
  }
}

/* Photography 2026 editorial section */
#photography.photography-editorial {
  background: var(--home-bg);
  color: var(--home-ink);
  margin-top: 0 !important;
  padding: clamp(88px, 6.25vw, 120px) 0 clamp(96px, 7.813vw, 150px) !important;
  overflow: clip;
}

#photography.photography-editorial .container {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

#photography.photography-editorial .section-heading-grid,
#photography.photography-editorial .section-heading-container > ._12-column-grid,
#photography.photography-editorial .social-explain-wrapper {
  display: none !important;
}

.photography-editorial-intro {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 3.178vw, 61px);
  width: 100%;
  margin: 0 0 clamp(72px, 4.271vw, 82px);
  padding: 0 var(--home-edge);
}

.photography-title-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(995px, 100%);
  min-height: clamp(560px, 42.47vw, 815px);
}

.photography-title {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  color: #b2b2b2;
  font-family: var(--font-primary);
  font-size: clamp(5.4rem, 7.087vw, 8.5rem);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.photography-rabbit {
  position: absolute;
  z-index: 2;
  top: 14.8%;
  left: 50%;
  display: block;
  width: clamp(280px, 24.305vw, 466px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.photography-copy-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 4.01vw, 77px);
  width: 100%;
}

.photography-vcxa-logo {
  display: block;
  width: clamp(210px, 14.695vw, 282px);
  height: auto;
}

.photography-copy {
  max-width: 1149px;
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: var(--home-editorial-copy-size);
  font-weight: 100;
  letter-spacing: 0;
  line-height: var(--home-editorial-copy-line-height);
  text-align: center;
  text-wrap: pretty;
}

.photography-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 69px;
  padding: 20px 24px;
  border: 1px solid var(--home-ink);
  border-radius: 999px;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--home-hover-color-duration) ease,
    color var(--home-hover-color-duration) ease,
    transform var(--home-hover-duration) var(--home-hover-ease);
}

.photography-instagram-link:hover,
.photography-instagram-link:focus-visible {
  background: var(--home-highlight);
  color: #050504;
  transform: translateY(var(--home-hover-lift));
}

.contact-editorial {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 0 clamp(88px, 5.208vw, 100px) !important;
  background: var(--home-bg);
  color: var(--home-ink);
  overflow: clip;
}

.contact-editorial-inner {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 5.208vw, 100px);
  width: 100%;
  padding: 0 var(--home-edge);
}

.contact-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 5.208vw, 100px);
  width: 100%;
}

.contact-wire-figure {
  position: relative;
  width: min(592px, 72vw);
  margin: 0;
  overflow: hidden;
}

.contact-wire-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 36%);
  pointer-events: none;
}

.contact-wire-image {
  display: block;
  width: 100%;
  height: auto;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 1.198vw, 23px);
  width: 100%;
  text-align: center;
}

.contact-title {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: var(--home-editorial-title-size);
  font-weight: 100;
  letter-spacing: -0.2rem;
  line-height: 1;
  text-transform: none;
  text-wrap: balance;
}

.contact-body {
  width: min(1180px, 100%);
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: var(--home-editorial-copy-size);
  font-weight: 100;
  letter-spacing: 0;
  line-height: var(--home-editorial-copy-line-height);
  text-wrap: pretty;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  border: 1px solid var(--home-ink);
}

.contact-social-card {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(132px, 9.115vw, 175px);
  padding: clamp(20px, 1.25vw, 24px) clamp(22px, 1.667vw, 32px);
  color: var(--home-ink);
  text-decoration: none;
  transition:
    background-color var(--home-hover-color-duration) ease,
    color var(--home-hover-color-duration) ease;
}

.contact-social-card:not(:first-child) {
  border-left: 1px solid var(--home-ink);
}

.contact-social-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(clamp(132px, 9.115vw, 175px) - (clamp(20px, 1.25vw, 24px) * 2));
  min-width: 0;
}

.contact-social-name,
.contact-social-handle {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 1.458vw, 1.75rem);
  font-weight: 200;
  letter-spacing: 0.034em;
  line-height: 1.03;
  text-transform: none;
}

.contact-social-name {
  color: #fff;
}

.contact-social-handle {
  color: var(--home-ink);
  letter-spacing: 0;
  line-height: 1.5;
}

.contact-social-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(52px, 3.825vw, 73px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--home-ink);
  color: #000;
  font-family: var(--font-primary);
  font-size: clamp(2rem, 2.292vw, 2.75rem);
  font-weight: 200;
  line-height: 1;
  transition:
    background-color var(--home-hover-color-duration) ease,
    transform var(--home-hover-duration) var(--home-hover-ease);
}

.contact-social-arrow img {
  display: block;
  width: 44%;
  height: 44%;
}

.contact-social-card:hover,
.contact-social-card:focus-visible {
  background: rgba(178, 178, 178, 0.08);
}

.contact-social-card:hover .contact-social-arrow,
.contact-social-card:focus-visible .contact-social-arrow {
  background: #fff;
  transform: translate(var(--home-hover-arrow-shift), calc(var(--home-hover-arrow-shift) * -1));
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 3.333vw, 64px);
  width: 100%;
}

.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 2.5vw, 48px);
  width: 100%;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 1.667vw, 32px);
  min-width: 0;
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: clamp(1.45rem, 1.667vw, 2rem);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1.4;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-field span {
  display: block;
}

.contact-field input,
.contact-field textarea {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(178, 178, 178, 0.68);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 1.458vw, 1.75rem);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.3;
  outline: none;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field input:-webkit-autofill,
.contact-field input:-webkit-autofill:hover,
.contact-field input:-webkit-autofill:focus,
.contact-field textarea:-webkit-autofill,
.contact-field textarea:-webkit-autofill:hover,
.contact-field textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px var(--home-bg) inset;
  box-shadow: 0 0 0 1000px var(--home-bg) inset;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: #fff;
}

.contact-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(56px, 4.01vw, 77px);
  padding: clamp(17px, 1.667vw, 32px) clamp(30px, 3.333vw, 64px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 1.667vw, 2rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  transition:
    background-color var(--home-hover-color-duration) ease,
    transform var(--home-hover-duration) var(--home-hover-ease);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--home-highlight);
  transform: translateY(var(--home-hover-lift));
}

.contact-submit:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.contact-form-status {
  min-height: 1.4em;
  margin: calc(clamp(48px, 3.333vw, 64px) * -0.55) 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.042vw, 1.25rem);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
}

.contact-form-status.is-error {
  color: #ff8f8f;
}

.contact-social-card:focus-visible,
.contact-submit:focus-visible,
.photography-instagram-link:focus-visible {
  outline: 2px solid var(--home-highlight);
  outline-offset: 4px;
}

.copyright-footer.footer-editorial {
  box-sizing: border-box;
  min-height: clamp(88px, 5.625vw, 108px);
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid rgba(178, 178, 178, 0.08);
  background: #000 !important;
  color: var(--home-ink);
}

.copyright-footer .footer-editorial-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 76px);
  min-height: clamp(88px, 5.625vw, 108px);
  padding: 0 var(--home-edge);
}

.footer-editorial-copy,
.footer-editorial-made {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 1.667vw, 2rem);
  font-weight: 100;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
}

.footer-editorial-made {
  text-align: right;
}

#photography.photography-editorial .section-heading-container {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 var(--home-edge);
}

#photography.photography-editorial .light-box-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px 17px;
  width: 100%;
  margin: 0 !important;
}

#photography.photography-editorial .lightbox-link-2 {
  min-height: 0;
  border: 1px solid #333;
  background: #000;
}

#photography.photography-editorial .light-box-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

#photography.photography-editorial.photography-reveal-ready .lightbox-link-2 {
  opacity: 0;
}

#photography.photography-editorial.photography-reveal-ready .light-box-image {
  transform: translate3d(0, 28px, 0);
}

#photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible {
  animation: project-media-card-fade-in 0.52s var(--home-hover-ease) both;
  animation-delay: var(--photography-media-delay, 0ms);
}

#photography.photography-editorial:not(.photography-reveal-ready) .lightbox-link-2:hover,
#photography.photography-editorial:not(.photography-reveal-ready) .lightbox-link-2:focus-visible,
#photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible:hover,
#photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible:focus-visible {
  opacity: 1 !important;
}

#photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible .light-box-image {
  animation: project-media-image-rise 0.62s var(--home-hover-ease) both;
  animation-delay: var(--photography-media-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  #photography.photography-editorial.photography-reveal-ready .lightbox-link-2,
  #photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible {
    opacity: 1 !important;
    animation: none !important;
  }

  #photography.photography-editorial.photography-reveal-ready .light-box-image,
  #photography.photography-editorial.photography-reveal-ready .lightbox-link-2.is-visible .light-box-image {
    transform: none !important;
    animation: none !important;
  }
}

@media screen and (max-width: 991px) {
  #photography.photography-editorial {
    padding-top: 88px !important;
    padding-bottom: 96px !important;
  }

  .photography-title-stage {
    width: min(760px, 100%);
    min-height: clamp(440px, 68vw, 620px);
  }

  .photography-title {
    font-size: clamp(4.4rem, 11.5vw, 6.6rem);
  }

  .photography-rabbit {
    width: clamp(240px, 45vw, 380px);
  }

  .photography-copy {
    max-width: 760px;
    font-size: clamp(1.4rem, 3.3vw, 1.85rem);
  }

  #photography.photography-editorial .light-box-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 手機 Photography / Contact / Footer 控制區。 */
@media screen and (max-width: 767px) {
  #photography.photography-editorial {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  .photography-editorial-intro,
  #photography.photography-editorial .section-heading-container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .photography-editorial-intro {
    gap: 3rem;
    margin-bottom: 3.5rem;
    max-width: 100%;
    overflow: clip;
  }

  .photography-title-stage {
    width: min(100%, calc(100svw - 3rem));
    max-width: calc(100svw - 3rem);
    min-height: auto;
    padding-block: 0;
    overflow: clip;
  }

  /* .photography-title：Photography 區塊的大型置中標題。 */
  .photography-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 1;
    max-width: 100%;
  }

  /* .photography-rabbit：疊在 Photography 標題上的兔子圖。 */
  .photography-rabbit {
    top: 50%;
    width: clamp(11rem, 58vw, 18rem);
    max-width: calc(100svw - 4rem);
    transform: translate(-52%, -50%);
  }

  .photography-copy-stage {
    gap: 2.25rem;
  }

  .photography-vcxa-logo {
    width: clamp(11rem, 48vw, 14rem);
  }

  /* .photography-copy：Photography logo 下方段落文字。 */
  .photography-copy {
    font-size: clamp(1.25rem, 5.75vw, 1.5rem);
  }

  /* .photography-instagram-link：Photography CTA 按鈕文字。 */
  .photography-instagram-link {
    min-height: 3.5rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .contact-editorial {
    padding-bottom: 4.5rem !important;
  }

  .contact-editorial-inner {
    gap: 2.5rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .contact-wire-figure {
    width: min(22.5rem, 88vw);
  }

  /* .contact-title：Contact 區塊標題，例如「let's connect」。 */
  .about-service-intro h2,
  .contact-title {
    font-size: var(--home-editorial-title-size-mobile);
    letter-spacing: 0;
    line-height: 1;
  }

  /* Editorial body copy：Services intro and Contact intro use the same mobile scale. */
  .about-service-lede,
  .contact-body {
    font-size: var(--home-editorial-copy-size-mobile);
    letter-spacing: 0;
    line-height: var(--home-editorial-copy-line-height);
  }

  .contact-social-grid,
  .contact-field-grid {
    grid-template-columns: 1fr;
  }

  .contact-social-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 8.25rem;
    padding: 1.25rem;
  }

  .contact-social-card:not(:first-child) {
    border-top: 1px solid var(--home-ink);
    border-left: 0;
  }

  .contact-social-copy {
    width: 100%;
    min-height: 5.5rem;
  }

  .contact-social-handle {
    overflow-wrap: anywhere;
  }

  .contact-social-arrow {
    width: clamp(3rem, 13vw, 3.5rem);
  }

  .contact-field-grid {
    gap: 2.5rem;
  }

  /* .contact-field：Contact 表單 label 文字。 */
  .contact-field {
    gap: 1.75rem;
    font-size: clamp(1.25rem, 5.75vw, 1.5rem);
  }

  /* .contact-field input / textarea：Contact 表單輸入文字。 */
  .contact-field input,
  .contact-field textarea {
    min-height: 2.5rem;
    font-size: clamp(1.125rem, 5.25vw, 1.375rem);
  }

  /* .contact-submit：Contact 表單送出按鈕文字。 */
  .contact-submit {
    min-height: 3.625rem;
    padding: 1rem 1.875rem;
    font-size: 1.25rem;
  }

  .copyright-footer.footer-editorial,
  .copyright-footer .footer-editorial-inner {
    min-height: auto;
  }

  .copyright-footer .footer-editorial-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }

  /* .footer-editorial-copy / .footer-editorial-made：footer 左右兩側文字。 */
  .footer-editorial-copy,
  .footer-editorial-made {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .footer-editorial-made {
    text-align: right;
    white-space: nowrap;
  }

  #photography.photography-editorial .light-box-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

@media screen and (max-width: 430px) {
  /* 極窄手機 footer：縮小文字與邊距，讓左右兩側維持同一列。 */
  .copyright-footer .footer-editorial-inner {
    gap: 0.75rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .footer-editorial-copy,
  .footer-editorial-made {
    font-size: 1rem;
  }
}

@media screen and (max-width: 360px) {
  /* 360px 以下 footer：再縮一階，避免文字溢出。 */
  .copyright-footer .footer-editorial-inner {
    gap: 0.625rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .footer-editorial-copy,
  .footer-editorial-made {
    font-size: 0.875rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .nav-link:hover:not(:focus-visible) {
    color: inherit !important;
    transform: none !important;
  }

  .social-badge:hover:not(:focus-visible),
  .home-action-button:hover:not(:focus-visible),
  #projects .project-open-link:hover:not(:focus-visible),
  #projects .project-app-store-badge:hover:not(:focus-visible),
  #projects .project-expand-media-card:hover,
  .photography-instagram-link:hover:not(:focus-visible),
  .contact-submit:hover:not(:focus-visible),
  .project-lightbox-close:hover:not(:focus-visible) {
    transform: none;
  }

  .home-action-button:hover:not(:focus-visible) {
    background: var(--home-ink);
    border-color: rgba(178, 178, 178, 0.92);
  }

  #projects .collection-item:not(.is-expanded) .project-wrapper:hover .terminal-spinner {
    color: var(--home-soft) !important;
  }

  #projects .project-wrapper:hover .terminal-spinner::before {
    animation: none !important;
  }

  #projects .collection-item:not(.is-expanded) .project-wrapper:hover .case-title {
    color: rgba(178, 178, 178, 0.82);
    transform: none;
  }

  #projects .project-wrapper:hover .case-arrow {
    transform: none !important;
  }

  #projects .project-wrapper:hover .project-wave-bg {
    opacity: 0;
  }

  #projects .project-expand-media-card:hover {
    transform: translateZ(0) scale(1);
  }

  #projects .project-open-link:hover:not(:focus-visible) {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
  }

  #projects .project-app-store-badge:hover:not(:focus-visible) {
    opacity: 1;
  }

  .project-lightbox-close:hover:not(:focus-visible) {
    background: #b2b2b2;
    color: #000;
  }

  .photography-instagram-link:hover:not(:focus-visible) {
    background: transparent;
    color: var(--home-ink);
  }

  .contact-social-card:hover:not(:focus-visible) {
    background: transparent;
  }

  .contact-social-card:hover:not(:focus-visible) .contact-social-arrow {
    background: var(--home-ink);
    transform: none;
  }

  .contact-submit:hover:not(:focus-visible) {
    background: #fff;
  }
}
