:root {
      --content-width: 820px;
      --purple: #7A2CEF;
      --purple-dim: rgba(122, 44, 239, 0.12);
      --purple-glow: rgba(122, 44, 239, 0.25);
      --card-bg: #0a0a0a;
      --card-border: rgba(255, 255, 255, 0.12);
      --text-muted: rgba(255, 255, 255, 0.5);
      --text-body: rgba(255, 255, 255, 0.75);
      --group-gap: 72px;
    }

    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent !important;
    }

    html, body {
      -webkit-tap-highlight-color: transparent !important;
    }

    body {
      background-color: #000000;
      color: #ffffff;
      font-family: "Chakra Petch", sans-serif;
      overflow-x: hidden;
      width: 100vw;
      max-width: 100vw;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
    }

    /* ── Reading Progress Bar ── */
    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 2.5px;
      background: #7A2CEF;
      z-index: 9999;
      width: 0%;
      transition: width 0.1s linear;
    }

    .page-wrapper {
      width: 100vw;
      max-width: 100vw;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
      padding-bottom: clamp(16px, 2vw, 24px);
    }

    /* ── WORK HERO ── */
    .work-hero {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: max(140px, calc(7.315vh + 3.796vh + 55px)) 7.552vw 48px;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
      background-color: #000000;
      margin-bottom: -1px;
    }

    .work-hero-bg {
      position: absolute;
      inset: 0 0 -2px 0;
      background: #000000;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .work-hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: right center;
      opacity: 0.88;
      z-index: 0;
      pointer-events: none;
      -webkit-mask-image: linear-gradient(
        to bottom,
        #000000 0%,
        #000000 20%,
        rgba(0, 0, 0, 0.98) 32%,
        rgba(0, 0, 0, 0.90) 45%,
        rgba(0, 0, 0, 0.78) 58%,
        rgba(0, 0, 0, 0.60) 70%,
        rgba(0, 0, 0, 0.40) 82%,
        rgba(0, 0, 0, 0.20) 91%,
        rgba(0, 0, 0, 0.05) 97%,
        transparent 100%
      );
      mask-image: linear-gradient(
        to bottom,
        #000000 0%,
        #000000 20%,
        rgba(0, 0, 0, 0.98) 32%,
        rgba(0, 0, 0, 0.90) 45%,
        rgba(0, 0, 0, 0.78) 58%,
        rgba(0, 0, 0, 0.60) 70%,
        rgba(0, 0, 0, 0.40) 82%,
        rgba(0, 0, 0, 0.20) 91%,
        rgba(0, 0, 0, 0.05) 97%,
        transparent 100%
      );
    }

    .work-hero-overlay {
      position: absolute;
      inset: 0 0 -2px 0;
      z-index: 1;
      pointer-events: none;
      background:
        linear-gradient(
          to bottom,
          rgba(13, 13, 26, 0.75) 0%,
          transparent 12%,
          transparent 20%,
          rgba(0, 0, 0, 0.02) 28%,
          rgba(0, 0, 0, 0.06) 38%,
          rgba(0, 0, 0, 0.14) 48%,
          rgba(0, 0, 0, 0.26) 58%,
          rgba(0, 0, 0, 0.42) 68%,
          rgba(0, 0, 0, 0.60) 78%,
          rgba(0, 0, 0, 0.78) 88%,
          rgba(0, 0, 0, 0.92) 95%,
          #000000 100%
        ),
        linear-gradient(
          to right,
          #0d0d1a 0%,
          #0d0d1a 26%,
          rgba(13, 13, 26, 0.95) 40%,
          rgba(13, 13, 26, 0.5) 62%,
          rgba(13, 13, 26, 0.12) 82%,
          transparent 100%
        );
    }

    .work-hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 820px;
      text-align: left;
    }

    .work-topic-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 28px;
      flex-wrap: wrap;
    }

    .work-topic-badge {
      font-family: "Chakra Petch", sans-serif;
      font-size: 9px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.85);
      padding: 5px 12px;
      position: relative;
      background: transparent;
      border: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      clip-path: polygon(
        0 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% 100%,
        6px 100%,
        0 calc(100% - 6px)
      );
      transition: color 0.2s ease;
      cursor: default;
    }

    .work-topic-badge::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: rgba(255, 255, 255, 0.16);
      clip-path: polygon(
        evenodd,
        0 0,
        calc(100% - 6px) 0,
        100% 6px,
        100% 100%,
        6px 100%,
        0 calc(100% - 6px),
        0 0,
        0.8px 0.8px,
        calc(100% - 6.33px) 0.8px,
        calc(100% - 0.8px) 6.33px,
        calc(100% - 0.8px) calc(100% - 0.8px),
        6.33px calc(100% - 0.8px),
        0.8px calc(100% - 6.33px),
        0.8px 0.8px
      );
      transition: background-color 0.2s ease;
      z-index: 1;
    }

    .work-topic-badge:hover {
      color: #ffffff;
    }

    .work-topic-badge:hover::before {
      background: rgba(255, 255, 255, 0.8);
    }

    .work-hero-title {
      font-family: "Chakra Petch", sans-serif;
      font-style: normal;
      font-weight: 600;
      font-size: clamp(36px, 5.5vw, 72px);
      line-height: 1.1;
      color: #ffffff;
      letter-spacing: -0.5px;
      margin-bottom: 28px;
      text-align: left;
    }

    .work-hero-desc {
      font-family: "Chakra Petch", sans-serif;
      font-size: 17px;
      line-height: 1.8;
      color: var(--text-body);
      max-width: 560px;
      margin-bottom: 40px;
      text-align: left;
    }

    .work-hero-meta {
      display: flex;
      gap: 48px;
      margin-top: 48px;
      flex-wrap: wrap;
    }

    .work-meta-item {
      display: flex;
      flex-direction: column;
    }

    .work-meta-label {
      font-family: "Chakra Petch", sans-serif;
      font-size: 9px;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .work-meta-value {
      font-family: "Chakra Petch", sans-serif;
      font-size: 12px;
      letter-spacing: 1px;
      color: #ffffff;
      font-weight: 500;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 1024px) {
      .work-hero { padding: max(130px, calc(5vh + 36px + 58px)) 5vw 64px; }
      .work-hero-video {
        opacity: 0.72;
        object-position: right center;
        -webkit-mask-image: linear-gradient(
          to bottom,
          #000000 0%,
          #000000 22%,
          rgba(0, 0, 0, 0.98) 35%,
          rgba(0, 0, 0, 0.88) 48%,
          rgba(0, 0, 0, 0.72) 62%,
          rgba(0, 0, 0, 0.50) 75%,
          rgba(0, 0, 0, 0.28) 86%,
          rgba(0, 0, 0, 0.08) 95%,
          transparent 100%
        );
        mask-image: linear-gradient(
          to bottom,
          #000000 0%,
          #000000 22%,
          rgba(0, 0, 0, 0.98) 35%,
          rgba(0, 0, 0, 0.88) 48%,
          rgba(0, 0, 0, 0.72) 62%,
          rgba(0, 0, 0, 0.50) 75%,
          rgba(0, 0, 0, 0.28) 86%,
          rgba(0, 0, 0, 0.08) 95%,
          transparent 100%
        );
      }
      .work-hero-overlay {
        background:
          linear-gradient(
            to bottom,
            rgba(13, 13, 26, 0.7) 0%,
            transparent 12%,
            transparent 22%,
            rgba(0, 0, 0, 0.02) 30%,
            rgba(0, 0, 0, 0.08) 42%,
            rgba(0, 0, 0, 0.18) 54%,
            rgba(0, 0, 0, 0.32) 66%,
            rgba(0, 0, 0, 0.52) 78%,
            rgba(0, 0, 0, 0.76) 89%,
            rgba(0, 0, 0, 0.92) 96%,
            #000000 100%
          ),
          linear-gradient(to right, #0d0d1a 0%, #0d0d1a 24%, rgba(13, 13, 26, 0.9) 40%, rgba(13, 13, 26, 0.45) 65%, rgba(13, 13, 26, 0.15) 88%, transparent 100%);
      }
      .hero-seam-fade {
        height: 160px;
        margin-top: -120px;
        margin-bottom: -40px;
      }
      .work-content,
      .next-project-banner,
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: calc(100vw - 10vw) !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
    }

    @media (orientation: landscape) and (max-width: 1024px) {
      .work-hero {
        padding-top: calc(8.4svh + 36px + 54px) !important;
        padding-left: 6.75vw !important;
        padding-right: 6.75vw !important;
      }
      .work-content,
      .next-project-banner,
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: calc(100vw - 13.5vw) !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
    }

    @media (max-width: 727px) {
      .hero-seam-fade {
        height: 48px;
        margin-top: -32px;
        margin-bottom: -16px;
      }
      .work-hero { padding: max(120px, calc(4svh + 36px + 54px)) 6vw 36px; }
      .work-hero-title { font-size: clamp(32px, 8vw, 42px); }
      .work-hero-video {
        opacity: 0.45;
        object-position: center right;
      }
      .work-hero-overlay {
        background:
          linear-gradient(to bottom, rgba(13, 13, 26, 0.75) 0%, transparent 20%, transparent 35%, rgba(0, 0, 0, 0.02) 44%, rgba(0, 0, 0, 0.08) 53%, rgba(0, 0, 0, 0.18) 63%, rgba(0, 0, 0, 0.35) 72%, rgba(0, 0, 0, 0.58) 80%, rgba(0, 0, 0, 0.82) 86%, #000000 91%, #000000 100%),
          linear-gradient(to right, #0d0d1a 0%, rgba(13, 13, 26, 0.86) 32%, rgba(13, 13, 26, 0.5) 68%, rgba(13, 13, 26, 0.22) 100%);
      }
      .work-content,
      .next-project-banner,
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: calc(100vw - 12vw) !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }
    }

    @media (max-width: 640px) {
      .work-hero { padding: max(112px, calc(4svh + 36px + 48px)) 6vw 32px; }
      .work-hero-meta { gap: 24px; }
      .block-stats { grid-template-columns: 1fr; }
    }

    @media (max-width: 480px) {
      .work-hero { padding: max(104px, calc(4svh + 36px + 42px)) 6vw 28px; }
      .work-hero-video {
        opacity: 0.42;
      }
      .work-hero-overlay {
        background:
          linear-gradient(to bottom, rgba(13, 13, 26, 0.8) 0%, transparent 22%, transparent 35%, rgba(0, 0, 0, 0.02) 44%, rgba(0, 0, 0, 0.08) 53%, rgba(0, 0, 0, 0.18) 63%, rgba(0, 0, 0, 0.35) 72%, rgba(0, 0, 0, 0.58) 80%, rgba(0, 0, 0, 0.82) 86%, #000000 91%, #000000 100%),
          linear-gradient(to right, #0d0d1a 0%, rgba(13, 13, 26, 0.88) 35%, rgba(13, 13, 26, 0.55) 75%, rgba(13, 13, 26, 0.25) 100%);
      }
    }

    /* ── Hero to Body Seam Fade (Permanently seals junction between hero & body) ── */
    .hero-seam-fade {
      width: 100%;
      height: 64px;
      margin-top: -44px;
      margin-bottom: -20px;
      position: relative;
      z-index: 5;
      pointer-events: none;
      background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 22%,
        rgba(0, 0, 0, 0.72) 46%,
        #000000 68%,
        #000000 100%
      );
    }

    /* ── Case Study Content Container ── */
    .work-content {
      width: min(88vw, var(--content-width));
      margin: 0 auto;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }

    /* ── Scroll Reveal ── */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Content Blocks ── */
    .block-heading {
      margin-top: var(--group-gap, 72px);
      margin-bottom: 10px;
    }

    .block-heading:first-child {
      margin-top: 0;
    }

    .block-heading h2 {
      font-family: "Chakra Petch", sans-serif;
      font-size: clamp(26px, 3.2vw, 38px);
      font-weight: 600;
      line-height: 1.2;
      color: #ffffff;
      letter-spacing: -0.01em;
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .block-heading h2::before {
      content: "";
      display: inline-block;
      width: 12px;
      height: 12px;
      background-color: #7A2CEF;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
      flex-shrink: 0;
      margin-top: calc(0.6em - 6px);
    }

    .block-text {
      margin-bottom: 16px;
    }

    .block-text p {
      font-size: 16px;
      line-height: 1.8;
      color: var(--text-body);
      margin-bottom: 20px;
      font-weight: 400;
    }

    .block-text p:last-child {
      margin-bottom: 0;
    }

    .block-text strong {
      color: #ffffff;
      font-weight: 500;
    }

    .block-text em {
      font-style: italic;
      color: #ffffff;
    }

    .block-text a {
      color: #7A2CEF;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: opacity 0.2s ease;
    }

    .block-text a:hover {
      opacity: 0.8;
    }

    /* ── Stats Row (Chamfered Tiles) ── */
    .block-stats {
      margin: 20px 0 0 0;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .block-stat {
      position: relative;
      background: var(--card-border);
      padding: 28px 24px;
      border: none;
      clip-path: polygon(
        -2px 0,
        100% 0,
        100% 100%,
        14px 100%,
        0 calc(100% - 14px),
        -2px calc(100% - 14px)
      );
      transition: background-color 0.25s ease, transform 0.25s ease;
    }

    .block-stat::before {
      content: "";
      position: absolute;
      inset: 0.8px;
      background: var(--card-bg);
      clip-path: polygon(0 0, 100% 0, 100% 100%, 13.7px 100%, 0 calc(100% - 13.7px));
      z-index: 0;
      pointer-events: none;
    }

    .block-stat::after {
      content: "";
      position: absolute;
      top: 0;
      left: -2px;
      width: 3.2px;
      height: calc(100% - 14px);
      background: #7A2CEF;
      z-index: 1;
      pointer-events: none;
    }

    .block-stat:hover {
      background-color: rgba(255, 255, 255, 0.8);
      transform: translateY(-2px);
    }

    .block-stat-number {
      position: relative;
      z-index: 2;
      font-family: "Space Armor", "Chakra Petch", sans-serif;
      font-size: clamp(34px, 4vw, 50px);
      color: #ffffff;
      line-height: 1;
      margin-bottom: 8px;
    }

    .block-stat-label {
      position: relative;
      z-index: 2;
      font-family: "Chakra Petch", sans-serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* ── Chamfered Showcase Frame (Cover & Full-Bleed Images) ── */
    .block-image {
      margin: var(--group-gap, 72px) 0 0 0;
      position: relative;
    }

    .block-image-full,
    .block-image-tall {
      margin: 20px 0 0 0;
      position: relative;
    }

    .chamfer-frame-wrap {
      position: relative;
      width: 100%;
      padding: 1.5px;
      box-sizing: border-box;
    }

    .chamfer-frame-box {
      width: 100%;
      background: var(--card-border);
      padding: 1.2px;
      box-sizing: border-box;
      clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
      );
      overflow: hidden;
      position: relative;
      border: none;
    }

    .image-placeholder-canvas {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: linear-gradient(135deg, #090909 0%, #150926 50%, #080808 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 32px;
      box-sizing: border-box;
      position: relative;
      clip-path: polygon(
        0 0,
        calc(100% - 19.5px) 0,
        100% 19.5px,
        100% 100%,
        19.5px 100%,
        0 calc(100% - 19.5px)
      );
    }

    .chamfer-frame-box img {
      width: 100%;
      display: block;
      clip-path: polygon(
        0 0,
        calc(100% - 19.5px) 0,
        100% 19.5px,
        100% 100%,
        19.5px 100%,
        0 calc(100% - 19.5px)
      );
    }

    .fullbleed-canvas {
      aspect-ratio: 21 / 9;
      background: linear-gradient(135deg, #070e1a 0%, #0d1a33 50%, #060910 100%);
    }

    .tall-canvas {
      aspect-ratio: 16 / 18;
      background: linear-gradient(180deg, #0d0d1a 0%, #180a2b 30%, #0a1424 70%, #0a0a0a 100%);
    }

    .canvas-hud-title {
      font-family: "Chakra Petch", sans-serif;
      font-size: 13px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #7A2CEF;
      font-weight: 600;
      margin-top: 14px;
    }

    .canvas-hud-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    figcaption {
      font-family: "Chakra Petch", sans-serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-top: 14px;
      padding-left: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    figcaption::before {
      content: "—";
      color: #7A2CEF;
    }

    /* ── Purple Corner Brackets for Frames ── */
    .frame-corner-tl {
      position: absolute;
      top: 0;
      left: 0;
      width: 45px;
      height: 45px;
      pointer-events: none;
      z-index: 10;
      overflow: visible;
    }

    .frame-corner-br {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 45px;
      height: 45px;
      pointer-events: none;
      z-index: 10;
      overflow: visible;
    }

    /* ── PULL QUOTE ── */
    .block-quote {
      margin: var(--group-gap, 72px) 0 0 0;
      padding: 36px 36px 36px 40px;
      background: var(--card-border);
      position: relative;
      border: none;
      clip-path: polygon(
        -2px 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px),
        -2px calc(100% - 16px)
      );
    }

    .block-quote::before {
      content: "";
      position: absolute;
      inset: 1.2px;
      background: #0a0a0a;
      clip-path: polygon(
        0 0,
        calc(100% - 15.5px) 0,
        100% 15.5px,
        100% 100%,
        15.5px 100%,
        0 calc(100% - 15.5px)
      );
      z-index: 0;
      pointer-events: none;
    }

    .block-quote-bar {
      position: absolute;
      top: 0;
      left: -2px;
      width: 3.2px;
      height: calc(100% - 16px);
      background: #7A2CEF;
      z-index: 1;
      pointer-events: none;
    }

    .block-quote > *:not(.block-quote-bar) {
      position: relative;
      z-index: 2;
    }

    .section-tag + .block-quote {
      margin-top: 18px;
      margin-bottom: 16px;
    }

    .block-quote::after {
      content: '\201C';
      font-family: "Space Armor", sans-serif;
      font-size: 84px;
      line-height: 1;
      color: rgba(122, 44, 239, 0.15);
      position: absolute;
      top: 12px;
      right: 28px;
      pointer-events: none;
      z-index: 1;
    }

    .block-quote blockquote {
      font-family: "Chakra Petch", sans-serif;
      font-size: clamp(18px, 2.2vw, 24px);
      line-height: 1.5;
      font-weight: 500;
      color: #ffffff;
      margin-bottom: 16px;
    }

    .block-quote cite {
      font-family: "Chakra Petch", sans-serif;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #7A2CEF;
      font-style: normal;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .block-quote cite::before {
      content: "//";
      color: rgba(255, 255, 255, 0.4);
    }

    /* ── CALLOUT NOTE ── */
    .block-callout {
      margin: 20px 0;
      padding: 24px 28px;
      background: var(--card-border);
      position: relative;
      display: flex;
      gap: 16px;
      align-items: flex-start;
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 14px) 0,
        100% 14px,
        100% 100%,
        14px 100%,
        0 calc(100% - 14px)
      );
    }

    .block-callout::before {
      content: "";
      position: absolute;
      inset: 1.2px;
      background: var(--card-bg);
      clip-path: polygon(
        0 0,
        calc(100% - 13.5px) 0,
        100% 13.5px,
        100% 100%,
        13.5px 100%,
        0 calc(100% - 13.5px)
      );
      z-index: 0;
      pointer-events: none;
    }

    .block-callout > * {
      position: relative;
      z-index: 2;
    }

    .block-callout-icon {
      font-size: 16px;
      color: #7A2CEF;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .block-callout p {
      font-size: 14.5px;
      line-height: 1.7;
      color: var(--text-body);
      font-weight: 400;
    }

    .block-callout p strong {
      color: #ffffff;
      font-weight: 500;
    }

    .block-callout p em {
      color: #ffffff;
      font-style: italic;
    }

    /* ── COLOR / VISUAL GALLERY (2-col grid) ── */
    .block-gallery {
      margin: 20px 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .gallery-swatch-box {
      aspect-ratio: 4 / 3;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% 100%,
        12px 100%,
        0 calc(100% - 12px)
      );
      transition: transform 0.25s ease;
    }

    .gallery-swatch-box::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: var(--card-border);
      clip-path: polygon(
        evenodd,
        0 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% 100%,
        12px 100%,
        0 calc(100% - 12px),
        0 0,
        0.8px 0.8px,
        calc(100% - 12.33px) 0.8px,
        calc(100% - 0.8px) 12.33px,
        calc(100% - 0.8px) calc(100% - 0.8px),
        12.33px calc(100% - 0.8px),
        0.8px calc(100% - 12.33px),
        0.8px 0.8px
      );
      z-index: 1;
      transition: background-color 0.25s ease;
    }

    .gallery-swatch-box:hover {
      transform: translateY(-2px);
    }

    .gallery-swatch-box:hover::before {
      background-color: rgba(255, 255, 255, 0.8);
    }

    .gallery-swatch-box > * {
      position: relative;
      z-index: 2;
    }

    .swatch-hex {
      font-family: monospace;
      font-size: 12px;
      color: #ffffff;
      background: rgba(0, 0, 0, 0.6);
      padding: 2px 8px;
      border-radius: 2px;
      width: fit-content;
    }

    .swatch-name {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.7);
      margin-top: 4px;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .block-gallery-caption {
      grid-column: 1 / -1;
      font-family: "Chakra Petch", sans-serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--text-muted);
      text-transform: uppercase;
      padding-top: 8px;
    }

    /* ── VIDEO EMBED FRAME ── */
    .block-video {
      margin: 20px 0 0 0;
    }

    .block-video-wrapper {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
      background: var(--card-border);
      clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
      );
      overflow: hidden;
      border: none;
    }

    .block-video-wrapper iframe {
      position: absolute;
      inset: 1.2px;
      width: calc(100% - 2.4px);
      height: calc(100% - 2.4px);
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 15.5px) 0,
        100% 15.5px,
        100% 100%,
        15.5px 100%,
        0 calc(100% - 15.5px)
      );
    }

    /* ── AUDIO NOTE PLAYER ── */
    .block-audio {
      margin: 20px 0 0 0;
      background: var(--card-border);
      padding: 30px 32px;
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
      );
      position: relative;
    }

    .block-audio::before {
      content: "";
      position: absolute;
      inset: 1.2px;
      background: #0a0a0a;
      clip-path: polygon(
        0 0,
        calc(100% - 15.5px) 0,
        100% 15.5px,
        100% 100%,
        15.5px 100%,
        0 calc(100% - 15.5px)
      );
      z-index: 0;
      pointer-events: none;
    }

    .block-audio > * {
      position: relative;
      z-index: 1;
    }

    .block-audio-label {
      font-family: "Chakra Petch", sans-serif;
      font-size: 10px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #7A2CEF;
      font-weight: 600;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .block-audio-label::before {
      content: '';
      width: 18px;
      height: 2px;
      background: #7A2CEF;
    }

    .block-audio-title {
      font-family: "Chakra Petch", sans-serif;
      font-size: 19px;
      font-weight: 500;
      color: #ffffff;
      margin-bottom: 22px;
    }

    .audio-player {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .audio-play-btn {
      width: 44px;
      height: 44px;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }

    .audio-play-btn:hover {
      background: rgba(255, 255, 255, 0.8);
      border-color: rgba(255, 255, 255, 0.8);
      transform: scale(1.08);
    }

    .audio-play-btn:hover svg {
      fill: #000000;
    }

    .audio-play-btn:active {
      transform: scale(0.96);
    }

    .audio-play-btn svg {
      width: 14px;
      height: 14px;
      fill: #ffffff;
      margin-left: 2px;
      transition: fill 0.25s ease;
    }

    .audio-track {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .audio-track-name {
      font-size: 12px;
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.85);
    }

    .audio-track-bar {
      height: 3px;
      background: rgba(255, 255, 255, 0.12);
      position: relative;
      border-radius: 2px;
      overflow: hidden;
    }

    .audio-track-progress {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      background: #7A2CEF;
      width: 0%;
      transition: width 0.1s linear;
    }

    .audio-track-time {
      font-family: monospace;
      font-size: 10px;
      color: var(--text-muted);
    }

    /* ── BEHANCE EMBED & EXTERNAL LINK CARD ── */
    .block-embed {
      margin: 20px 0;
    }

    .block-embed-wrapper {
      width: 100%;
      background: var(--card-border);
      padding: 1.2px;
      box-sizing: border-box;
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
      );
      overflow: hidden;
    }

    .block-embed-wrapper iframe {
      width: 100%;
      border: none;
      display: block;
      clip-path: polygon(
        0 0,
        calc(100% - 15.5px) 0,
        100% 15.5px,
        100% 100%,
        15.5px 100%,
        0 calc(100% - 15.5px)
      );
    }

    .block-link-card {
      margin: 20px 0 0 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      text-decoration: none;
      position: relative;
      background: var(--card-border);
      border: none;
      padding: 24px 30px;
      clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
      );
      transition: background-color 0.25s ease, transform 0.2s ease;
    }

    .block-link-card::before {
      content: "";
      position: absolute;
      inset: 0.8px;
      background: #0a0a0a;
      clip-path: polygon(
        0 0,
        calc(100% - 15.7px) 0,
        100% 15.7px,
        100% 100%,
        15.7px 100%,
        0 calc(100% - 15.7px)
      );
      z-index: 0;
      pointer-events: none;
      transition: background-color 0.25s ease;
    }

    .block-link-card:hover {
      background-color: rgba(255, 255, 255, 0.8);
      transform: translateY(-2px);
    }

    .block-link-card > * {
      position: relative;
      z-index: 1;
    }

    .block-link-card-left {
      flex: 1 1 auto;
      min-width: 0;
    }

    .block-link-card-label {
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .block-link-card-title {
      font-family: "Chakra Petch", sans-serif;
      font-size: 20px;
      font-weight: 500;
      color: #ffffff;
      margin-bottom: 4px;
      line-height: 1.35;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .block-link-card-url {
      font-size: 12px;
      color: #7A2CEF;
    }

    .block-link-card-arrow {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      flex-shrink: 0;
      flex-grow: 0;
      aspect-ratio: 1 / 1;
      box-sizing: border-box;
      border: 1px solid rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .block-link-card:hover .block-link-card-arrow {
      border-color: rgba(255, 255, 255, 0.8);
      background-color: rgba(255, 255, 255, 0.8);
      transform: translate(2px, -2px);
    }

    .block-link-card:hover .block-link-card-arrow svg path {
      stroke: #000000;
    }

    /* ── SECTION TAG BAR ── */
    .section-tag {
      font-family: "Chakra Petch", sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #7A2CEF;
      margin-top: var(--group-gap, 72px);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-tag::before {
      content: "";
      width: 14px;
      height: 2px;
      background: #7A2CEF;
    }

    /* ── NEXT PROJECT BANNER ── */
    .next-project-banner {
      width: min(88vw, var(--content-width));
      margin: var(--group-gap, 72px) auto 0 auto;
      position: relative;
      background: var(--card-border);
      padding: 26px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      text-decoration: none;
      border: none;
      clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
      );
      transition: background-color 0.25s ease, transform 0.25s ease;
    }

    .next-project-banner::before {
      content: "";
      position: absolute;
      inset: 0.8px;
      background: #0a0a0a;
      clip-path: polygon(
        0 0,
        calc(100% - 15.7px) 0,
        100% 15.7px,
        100% 100%,
        15.7px 100%,
        0 calc(100% - 15.7px)
      );
      z-index: 0;
      pointer-events: none;
      transition: background-color 0.25s ease;
    }

    .next-project-banner:hover {
      background-color: rgba(255, 255, 255, 0.8);
      transform: translateY(-2px);
    }

    .next-project-banner > * {
      position: relative;
      z-index: 1;
    }

    .next-project-left {
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1 1 auto;
      min-width: 0;
    }

    .next-kicker {
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: #7A2CEF;
      font-weight: 600;
    }

    .next-title {
      font-family: "Chakra Petch", sans-serif;
      font-size: clamp(19px, 2.2vw, 24px);
      font-weight: 500;
      color: #ffffff;
      line-height: 1.35;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .next-arrow-btn {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      flex-shrink: 0;
      flex-grow: 0;
      aspect-ratio: 1 / 1;
      box-sizing: border-box;
      border: 1px solid rgba(255, 255, 255, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    }

    .next-project-banner:hover .next-arrow-btn {
      border-color: rgba(255, 255, 255, 0.8);
      background: rgba(255, 255, 255, 0.8);
      transform: translateX(4px);
    }

    .next-project-banner:hover .next-arrow-btn svg path {
      stroke: #000000;
    }

    /* ── Responsive Rules ── */
    @media (max-width: 1024px) {
      .work-hero-meta {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
      }
      .work-content,
      .next-project-banner,
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: 90vw;
      }
      .block-stats {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 768px) {
      :root {
        --group-gap: 52px;
      }
      .block-stats {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .block-gallery {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 727px) {
      .work-content,
      .next-project-banner,
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: 88vw;
      }
    }

    @media (max-width: 500px) {
      .work-hero-meta {
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 32px;
      }
      .work-content {
        width: 88vw;
        padding-top: 28px;
      }
      .next-project-banner {
        width: 88vw;
        padding: 20px;
      }
      .divider-line,
      .contact-section,
      .bottom-footer-bar {
        width: 88vw;
      }
      .block-quote {
        padding: 24px 20px;
      }
      .block-audio {
        padding: 22px 20px;
      }
      .audio-player {
        gap: 12px;
      }
    }
