/*
 * Portfolio page only — static portfolio.html + WP portfolio template.
 * Scope every rule under body.portfolio-page (or .featured / .all-projects inside it).
 * Do NOT edit landing-page logos here: those live in landing.css under .il-landing section.portfolio
 * (.portfolio-cell). Never add bare .portfolio-cell / section.portfolio rules in this file.
 */
@import url("site-footer.css");

@font-face {
  font-family: "PP Monument Extended Black";
  src: url("fonts/PPMonumentExtended-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body.portfolio-page {
  --brand-blue: #3f75f5;
  --neutral-950: #0a0a0a;
  --neutral-800: #1f2937;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-200: #e5e7eb;
  --neutral-100: #f3f4f6;
  --neutral-50: #f9fafb;
  --white: #ffffff;
  --font-heading: "PP Monument Extended Black", var(--font-body), system-ui, sans-serif;
  --font-body: 'Roboto', sans-serif;
  --radius-full: 999px;
  --radius-xl: 24px;
  --radius-md: 8px;
  /* Featured + All Projects logo 方塊小圓角 */
  --logo-tile-radius: 6px;
}

/* box-sizing everywhere; margin/padding reset only under section/footer — never on .navbar (would beat single-class .nav-tab from site-navbar.css). */
body.portfolio-page,
body.portfolio-page *,
body.portfolio-page *::before,
body.portfolio-page *::after {
  box-sizing: border-box;
}

body.portfolio-page section,
body.portfolio-page section *,
body.portfolio-page section *::before,
body.portfolio-page section *::after,
body.portfolio-page footer,
body.portfolio-page footer *,
body.portfolio-page footer *::before,
body.portfolio-page footer *::after {
  margin: 0;
  padding: 0;
}

/* Footer: portfolio.css zeroes padding on footer/footer *; re-apply canonical footer spacing. */
body.portfolio-page .site-footer {
  padding: 80px 0 0;
}
body.portfolio-page .site-footer .footer-top {
  padding-bottom: 60px;
}
body.portfolio-page .site-footer .footer-bottom {
  padding: 24px 0;
}

body.portfolio-page {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--neutral-950);
  -webkit-font-smoothing: antialiased;
  padding-top: 78px;
}

body.portfolio-page a { text-decoration: none; }
body.portfolio-page img { max-width: 100%; height: auto; }

/* LEGAL (terms / privacy) — override section padding reset above */
body.portfolio-page.legal-page section.legal-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Scope to main sections + footer only — do not target nav > .container (breaks navbar layout vs site-navbar.css). */
body.portfolio-page section .container,
body.portfolio-page footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Logo sections: Featured + All Projects */
body.portfolio-page .section-title {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-950);
}

/* Navbar: site-navbar.css (shared). */

/* Featured — white background；上下留白與 .container 左右 gutter 同值，桌機比例才平均 */
body.portfolio-page .featured {
  background: var(--white);
  padding: 48px 0;
}
body.portfolio-page .featured .section-title {
  color: var(--neutral-950);
}
body.portfolio-page .featured .container { display: flex; flex-direction: column; gap: 32px; }
body.portfolio-page .featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 4px; /* row: 上下格間距；column: 4px */
}
/* Featured：與 All Projects 一致，使用矩形中央裁切 */
body.portfolio-page .featured-cell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  max-width: 190px;
  justify-self: center;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--logo-tile-radius);
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.25s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

/* Reveal on load/scroll (staggered; driven by portfolio-page.js) */
body.portfolio-page .featured-cell,
body.portfolio-page .project-card,
body.portfolio-page #projectsGrid .project-card {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--il-reveal-delay, 0ms);
  will-change: opacity, translate;
}
body.portfolio-page .featured-cell.is-revealed,
body.portfolio-page .project-card.is-revealed,
body.portfolio-page #projectsGrid .project-card.is-revealed {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-page .featured-cell,
  body.portfolio-page .project-card,
  body.portfolio-page #projectsGrid .project-card {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
/* Featured + All Projects：logo 方塊統一 hover（亮度略降） */
body.portfolio-page .featured-cell:hover,
body.portfolio-page .project-logo-wrap:hover {
  filter: brightness(0.94);
}

/* Bitpanda — black wordmark on transparent: fixed light tile（取樣 script 勿用 — 會變成近 #000 整格黑） */
body.portfolio-page .featured-cell:has(img:is([src*="bitpanda.png"], [src*="bitpanda.svg"], [src*="logos/bitpanda"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="bitpanda.png"], [src*="bitpanda.svg"], [src*="logos/bitpanda"])) {
  background-color: var(--neutral-50) !important;
  background-image: none !important;
}
/* Bitpanda — Featured + All Projects：wide wordmark needs breathing room */
body.portfolio-page .featured-cell img:is([src*="bitpanda.png"], [src*="bitpanda.svg"], [src*="logos/bitpanda"]),
body.portfolio-page .project-logo-wrap img:is([src*="bitpanda.png"], [src*="bitpanda.svg"], [src*="logos/bitpanda"]) {
  width: 100%;
  height: 100%;
  padding: 5% 10%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* CARV — Featured + All Projects：品牌紫底 #8A5AFF（與 Featured 一致） */
body.portfolio-page .featured-cell:has(img:is([src*="Carv.png"], [src*="carv.svg"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="Carv.png"], [src*="carv.svg"])) {
  background-color: #8a5aff !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Carv.png"], [src*="carv.svg"]),
body.portfolio-page .project-logo-wrap img:is([src*="Carv.png"], [src*="carv.svg"]) {
  width: 100%;
  height: 100%;
  padding: 5% 14%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Truflation — All Projects：透明底 */
body.portfolio-page .project-logo-wrap:has(img:is([src*="Truflation.png"], [src*="truflation.svg"])) {
  background-color: transparent !important;
  background-image: none !important;
}
body.portfolio-page .project-logo-wrap img:is([src*="Truflation.png"], [src*="truflation.svg"]) {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Truflation — Featured：品牌藍底；logo 略縮（左右留白） */
body.portfolio-page .featured-cell:has(img:is([src*="Truflation.png"], [src*="truflation.svg"])) {
  background-color: #3e88ff !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Truflation.png"], [src*="truflation.svg"]) {
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Impossible Cloud Network — Featured + All Projects：品牌綠底 #1F3222（與 Featured 一致） */
body.portfolio-page .featured-cell:has(img:is([src*="icn.svg"], [src*="icn.png"], [src*="logos/icn"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="icn.svg"], [src*="icn.png"], [src*="logos/icn"])) {
  background-color: transparent !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="icn.svg"], [src*="icn.png"], [src*="logos/icn"]),
body.portfolio-page .project-logo-wrap img:is([src*="icn.svg"], [src*="icn.png"], [src*="logos/icn"]) {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}
/* Aethir：logos/aethir.svg + 品牌深底 */
body.portfolio-page .featured-cell:has(img:is([src*="Aethir.png"], [src*="logos/aethir.svg"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="Aethir.png"], [src*="logos/aethir.svg"])) {
  background-color: #1f2925 !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Aethir.png"], [src*="logos/aethir.svg"]),
body.portfolio-page .project-logo-wrap img:is([src*="Aethir.png"], [src*="logos/aethir.svg"]) {
  width: 100%;
  height: 100%;
  padding: 5% 14%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* XAI：圖檔自帶視覺，不重疊品牌紅底；logo 撐滿格內可用空間 */
body.portfolio-page .featured-cell:has(img:is([src*="XAI.png"], [src*="xai.svg"], [src*="logos/xai"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="XAI.png"], [src*="xai.svg"], [src*="logos/xai"])) {
  background-color: transparent !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="XAI.png"], [src*="xai.svg"], [src*="logos/xai"]),
body.portfolio-page .project-logo-wrap img:is([src*="XAI.png"], [src*="xai.svg"], [src*="logos/xai"]) {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Dexguru — Featured + All Projects：品牌深灰底 #202020（與 Featured 一致） */
body.portfolio-page .featured-cell:has(img:is([src*="Dexguru.png"], [src*="dexguru.svg"], [src*="logos/dexguru"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="Dexguru.png"], [src*="dexguru.svg"], [src*="logos/dexguru"])) {
  background-color: #202020 !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Dexguru.png"], [src*="dexguru.svg"], [src*="logos/dexguru"]) {
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Jambo — All Projects：透明底 */
body.portfolio-page .project-logo-wrap:has(img:is([src*="Jambo.png"], [src*="jambo.svg"], [src*="logos/jambo"])) {
  background-color: transparent !important;
  background-image: none !important;
}
body.portfolio-page .project-logo-wrap img:is([src*="Jambo.png"], [src*="jambo.svg"], [src*="logos/jambo"]) {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Jambo — Featured：深灰底 #202020；logo 寬 160px */
body.portfolio-page .featured-cell:has(img:is([src*="Jambo.png"], [src*="jambo.svg"], [src*="logos/jambo"])) {
  background-color: #202020 !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Jambo.png"], [src*="jambo.svg"], [src*="logos/jambo"]) {
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Gnosis — Featured：neutral-50；logo 寬 160px */
body.portfolio-page .featured-cell:has(img:is([src*="logos/gnosis.svg"], [src*="/gnosis.svg"])) {
  background-color: var(--neutral-50) !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="logos/gnosis.svg"], [src*="/gnosis.svg"]) {
  width: 160px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Hemi：淺底 neutral-50（與 landing 一致；取色腳本見 portfolio-page.js） */
body.portfolio-page .featured-cell:has(img:is([src*="Hemi.png"], [src*="logos/hemi.svg"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="Hemi.png"], [src*="logos/hemi.svg"])) {
  background-color: var(--neutral-50) !important;
  background-image: none !important;
}
body.portfolio-page .featured-cell img:is([src*="Hemi.png"], [src*="logos/hemi.svg"]),
body.portfolio-page .project-logo-wrap img:is([src*="Hemi.png"], [src*="logos/hemi.svg"]) {
  width: 100%;
  height: 100%;
  padding: 5% 14%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Ronin：頂部淡藍漸層（底端透明，透出區塊底色）；字標偏寬，內距略大於預設 wordmark */
body.portfolio-page .featured-cell:has(img:is([src*="Ronin.png"], [src*="logos/ronin.svg"])),
body.portfolio-page .project-logo-wrap:has(img:is([src*="Ronin.png"], [src*="logos/ronin.svg"])) {
  background-image: linear-gradient(
    180deg,
    rgba(18, 70, 255, 0.14) 0%,
    rgba(18, 70, 255, 0) 100%
  ) !important;
  background-color: transparent !important;
}
body.portfolio-page .featured-cell img:is([src*="Ronin.png"], [src*="logos/ronin.svg"]),
body.portfolio-page .project-logo-wrap img:is([src*="Ronin.png"], [src*="logos/ronin.svg"]) {
  width: 100%;
  height: 100%;
  padding: 8% 18%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
/* Featured：Merit Circle — Beam.png / logos/beam.svg */
body.portfolio-page .featured-cell img:is([src*="Beam.png"], [src*="logos/beam.svg"]) {
  width: 100%;
  height: 100%;
  padding: 5% 14%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
body.portfolio-page .featured-cell img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100% !important;
  height: auto !important;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  display: block;
}

/* Featured SVG wordmarks: reduce zoom and keep centered */
body.portfolio-page .featured-cell img:is([src*="truflation.svg"], [src*="dexguru.svg"], [src*="jambo.svg"]) {
  width: 78% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 78% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

/* 淺底白字 wordmark → 黑色（Featured 與 All Projects 皆為淺底） */
body.portfolio-page .featured img[src*="gnosis.svg"]:not([src*="landing-dark"]),
body.portfolio-page .all-projects img[src*="gnosis.svg"],
body.portfolio-page .all-projects img[src*="solv.svg"],
body.portfolio-page .all-projects img[src*="sophon.svg"],
body.portfolio-page .all-projects img[src*="soon.svg"] {
  filter: brightness(0);
}

/* All projects — 白 → neutral-50；前 20px 純白，之後漸入 #f9fafb */
body.portfolio-page .all-projects {
  background: linear-gradient(
    180deg,
    #ffffff 0,
    #ffffff 20px,
    var(--neutral-50) 100%
  );
  padding: 56px 0 120px;
}
body.portfolio-page .all-projects .container { display: flex; flex-direction: column; gap: 32px; }
body.portfolio-page .projects-toolbar { display: flex; flex-direction: column; gap: 20px; }
body.portfolio-page .projects-toolbar-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
body.portfolio-page .search-box { position: relative; max-width: 400px; width: 100%; }
body.portfolio-page .search-box input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  border: 1px solid var(--neutral-200); border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: 15px; color: var(--neutral-950);
  background: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.portfolio-page .search-box input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(63,117,245,0.12);
}
body.portfolio-page .search-box input::placeholder { color: var(--neutral-400); }
body.portfolio-page .search-box .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--neutral-400); pointer-events: none;
}
body.portfolio-page .project-count { font-size: 14px; color: var(--neutral-400); white-space: nowrap; }
body.portfolio-page .tag-filters { display: flex; flex-wrap: wrap; gap: 8px; }
body.portfolio-page .tag-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  border-radius: var(--radius-full); border: 1px solid var(--neutral-200);
  background: var(--white); font-size: 13px; font-weight: 600; color: var(--neutral-600);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
body.portfolio-page .tag-btn:hover { border-color: var(--neutral-400); color: var(--neutral-950); }
body.portfolio-page .tag-btn.is-active {
  background: var(--neutral-950); border-color: var(--neutral-950); color: var(--white);
}
/* #projectsGrid 提高優先級，避免佈景主題 / Divi 蓋掉 */
body.portfolio-page .projects-grid,
body.portfolio-page #projectsGrid.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
body.portfolio-page .project-card,
body.portfolio-page #projectsGrid .project-card {
  border-radius: 0 !important;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  cursor: default;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
body.portfolio-page .project-card.is-linked-project,
body.portfolio-page #projectsGrid .project-card.is-linked-project {
  cursor: pointer;
}
body.portfolio-page .project-card.is-linked-project:focus-visible,
body.portfolio-page #projectsGrid .project-card.is-linked-project:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
/* All Projects：hover 僅作用在 logo 方塊，不含 tag 區；與名稱、tag 齊左（勿置中） */
body.portfolio-page .project-logo-wrap {
  cursor: pointer;
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 16 / 10;
  height: auto;
  align-self: flex-start;
  margin-inline: 0;
  min-height: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--logo-tile-radius);
  overflow: hidden;
  transition: filter 0.25s ease, background-color 0.25s ease, background 0.25s ease;
}
body.portfolio-page .project-logo-wrap img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100% !important;
  height: auto !important;
  min-height: 100%;
  max-width: none;
  transform: translate(-50%, -50%);
  display: block;
}
/* Dexguru — All Projects：與 Featured 區 dexguru.svg 相同縮放（78%，避免滿版裁切） */
body.portfolio-page .project-logo-wrap img:is([src*="Dexguru.png"], [src*="dexguru.svg"], [src*="logos/dexguru"]) {
  width: 78% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 78% !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}
body.portfolio-page .project-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--neutral-950);
  width: 100%;
  overflow-wrap: break-word;
}
body.portfolio-page .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
}
body.portfolio-page .project-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--neutral-200);
  font-size: 11px; font-weight: 600; color: var(--neutral-600); letter-spacing: 0.3px;
}
body.portfolio-page .project-card[hidden] { display: none !important; }
body.portfolio-page .projects-empty {
  display: none; flex-direction: column; align-items: center; gap: 12px;
  padding: 80px 0; text-align: center;
}
body.portfolio-page .projects-empty.is-visible { display: flex; }
body.portfolio-page .projects-empty-icon { width: 48px; height: 48px; color: var(--neutral-200); }
body.portfolio-page .projects-empty-title {
  font-family: var(--font-heading); font-size: 20px; text-transform: uppercase; color: var(--neutral-950);
}
body.portfolio-page .projects-empty-desc { font-size: 15px; color: var(--neutral-400); }

@media (max-width: 1024px) {
  body.portfolio-page section .container,
  body.portfolio-page footer .container { padding: 0 28px; }
  body.portfolio-page .featured { padding: 28px 0; }
  body.portfolio-page .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 4px;
  }
  body.portfolio-page .projects-grid,
  body.portfolio-page #projectsGrid.projects-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  body.portfolio-page section .container,
  body.portfolio-page footer .container { padding: 0 18px; }
  body.portfolio-page { padding-top: 64px; }
  body.portfolio-page .featured { padding: 24px 0; }
  body.portfolio-page .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 4px; }
  /* 與 All Projects .project-logo-wrap 同寬高：min(190px, 100%)、正方形 */
  body.portfolio-page .featured-cell {
    padding: 0;
    width: min(190px, 100%);
    max-width: 190px;
    max-height: 190px;
  }
  body.portfolio-page .all-projects { padding: 48px 0 80px; }
  body.portfolio-page .projects-toolbar-top { flex-direction: column; align-items: stretch; }
  body.portfolio-page .search-box { max-width: none; }
  body.portfolio-page .project-count { text-align: center; }
  body.portfolio-page .projects-grid,
  body.portfolio-page #projectsGrid.projects-grid { grid-template-columns: repeat(2, 1fr); }
  body.portfolio-page .project-card,
  body.portfolio-page #projectsGrid .project-card { padding: 24px 16px; }
  body.portfolio-page .project-logo-wrap {
    width: min(190px, 100%);
  }
}
@media (max-width: 480px) {
  body.portfolio-page section .container,
  body.portfolio-page footer .container { padding: 0 14px; }
}

/* ========================================================================
   About hero restore — topo/radar contours + 3D parallax + mid-bottom line
   ======================================================================== */

body.portfolio-page.about-page .about-hero {
  position: relative;
}

body.portfolio-page.about-page .about-hero__visual-tilt {
  transform: perspective(920px) rotateX(55deg) rotateZ(-25deg);
}

body.portfolio-page.about-page .about-hero__contours {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(120px) rotateX(55deg) rotateZ(-25deg) scaleY(0.72);
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 40px,
    rgba(63, 117, 245, 0.2) 41px,
    transparent 42px
  );
  opacity: 0.42;
  mix-blend-mode: multiply;
}

body.portfolio-page.about-page .about-hero__visual--interactive {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

body.portfolio-page.about-page .about-hero__img {
  width: 100%;
  max-width: min(620px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  transform-origin: center;
}

body.portfolio-page.about-page .about-hero__img--base {
  position: relative;
  z-index: 1;
  pointer-events: none;
  transform: rotate(40deg);
}

body.portfolio-page.about-page .about-hero__img--ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: min(620px, 100%);
  height: auto;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.06) rotate(40deg);
  filter: blur(0.5px);
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
}

body.portfolio-page.about-page .about-hero__visual--interactive:hover .about-hero__img--ghost,
body.portfolio-page.about-page .about-hero__visual--interactive:focus-visible .about-hero__img--ghost,
body.portfolio-page.about-page .about-hero__visual--interactive:active .about-hero__img--ghost {
  opacity: 0.22;
}

/* Mid-bottom vertical gradient line */
body.portfolio-page.about-page .about-hero__line {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

body.portfolio-page.about-page .about-hero__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(63, 117, 245, 0.55), transparent);
  animation: about-hero-line-flow 2s infinite ease-in-out;
}

@keyframes about-hero-line-flow {
  0%,
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.portfolio-page.about-page .about-hero__line::before {
    animation: none;
    transform: none;
  }
}
