/* NUDOT 复刻 — lab 页面样式
   来源：nudot.com.tw 线上产物内联样式表
   整理：合并 3 个 <style> 块，规范为外部文件；未改动任何声明
*/

/* ================================================================
       RESET
    ================================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ================================================================
       DESIGN TOKENS
    ================================================================ */
    :root {
      color-scheme: dark;
      --font-family-body:    "PP Neue Montreal", "DM Sans", "Helvetica Neue", Arial, sans-serif;
      --font-family-display: "Zalando Sans SemiExpanded", "PP Neue Montreal", sans-serif;

      --dark-bg:    #1c1814;
      --dark-fg:    #ede8df;
      --dark-muted: #8a7b6e;
      --light-bg:   #f0ece3;
      --light-fg:   #0d0d14;
      --light-muted:#9a9aaa;
      --accent-dark: #d4a84b;
      --accent-light:#3a6e00;

      --bg:     var(--dark-bg);
      --fg:     var(--dark-fg);
      --muted:  var(--dark-muted);
      --accent: var(--accent-dark);

      --font-display: "Bebas Neue", var(--font-family-display), sans-serif;
      --font-mono:    "DM Mono", monospace;
      --hairline:     0.0625rem;
      --ui-inset:     2rem;
      --card-bg:      rgba(28, 24, 20, 0.82);
      --card-border:  rgba(212, 168, 75, 0.2);
      --nav-x:        calc(var(--ui-inset) + 0.125rem);
      --reveal-offset:  0.625rem;
      --reveal-duration:0.5s;
      --z-cube-ui: 12;
    }

    /* ================================================================
       BASE
    ================================================================ */
    html { color-scheme: dark; overflow-x: hidden; }

    /* 自订卷轴 — 与 index.html 一致 */
    body::-webkit-scrollbar { width: 6px; }
    body::-webkit-scrollbar-track { background: #000; }
    body::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.18);
      border-radius: 3px;
      transition: background-color .25s ease;
    }
    body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }
    /* Firefox */
    html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) #000; }

    body {
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-family-body);
      overflow-x: hidden;
    }

    /* ================================================================
       EDITORIAL GRID
    ================================================================ */
    :root {
      --mie-black: #0a0a0a;
      --white: #fff;
      --col: calc(100vw / 48);
      --grid-cols: repeat(48, 1fr);
    }

    body {
      background-color: var(--mie-black);
      color: var(--white);
      font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-size: 14px;
      line-height: 1.4;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; cursor: pointer; }
    ul, ol { list-style: none; }

    .app {
      position: relative;
      min-height: 100vh;
      padding: 10vh 0 10vh;
    }

    .ps__list-wrap {
      overflow: hidden;
    }

    .ps__list {
      display: grid;
      grid-template-columns: var(--grid-cols);
      row-gap: calc(var(--col) * 2);
      padding: 0;
    }

    .sb__item {
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .sb__item:nth-child(10n + 1)  { grid-column: 2 / span 10; }
    .sb__item:nth-child(10n + 2)  { grid-column: 14 / span 9; }
    .sb__item:nth-child(10n + 3)  { grid-column: 25 / span 6; }
    .sb__item:nth-child(10n + 4)  { grid-column: 33 / span 8; }
    .sb__item:nth-child(10n + 5)  { grid-column: 42 / span 6; }
    .sb__item:nth-child(10n + 6)  { grid-column: 2 / span 8; }
    .sb__item:nth-child(10n + 7)  { grid-column: 12 / span 10; }
    .sb__item:nth-child(10n + 8)  { grid-column: 24 / span 7; }
    .sb__item:nth-child(10n + 9)  { grid-column: 33 / span 9; }
    .sb__item:nth-child(10n + 10) { grid-column: 43 / span 5; }

    .sb__item-link {
      display: block;
      overflow: hidden;
      position: relative;
      isolation: isolate;
      background: #fff;
      clip-path: inset(100% 0% 0% 0%);
    }

    .sb__item-link::after {
      content: '';
      position: absolute;
      inset: 0;
      background: #fff;
      mix-blend-mode: difference;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.55s cubic-bezier(0.19, 1, 0.22, 1);
      z-index: 1;
    }

    .sb__item-link img {
      display: block;
      width: 100%;
      height: 120%;
      object-fit: cover;
      transition: filter 0.8s cubic-bezier(0.19, 1, 0.22, 1),
                  opacity 0.45s ease;
      will-change: transform, filter;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transform: translateZ(0);
      position: relative;
      z-index: 0;
    }

    .sb__item:nth-child(10n + 1) .sb__item-link,
    .sb__item:nth-child(10n + 5) .sb__item-link,
    .sb__item:nth-child(10n + 7) .sb__item-link { aspect-ratio: 3/4; }

    .sb__item:nth-child(10n + 3) .sb__item-link,
    .sb__item:nth-child(10n + 8) .sb__item-link { aspect-ratio: 2/3; }

    .sb__item:nth-child(10n + 4) .sb__item-link,
    .sb__item:nth-child(10n + 9) .sb__item-link { aspect-ratio: 1/1; }

    .sb__item:nth-child(10n + 2) .sb__item-link,
    .sb__item:nth-child(10n + 6) .sb__item-link,
    .sb__item:nth-child(10n + 10) .sb__item-link { aspect-ratio: 4/3; }

    .sb__item:hover .sb__item-link::after {
      opacity: 1;
    }

    .sb__item-desc {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-top: 16px;
      transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
      opacity: 0;
    }

    .sb__item:hover .sb__item-desc { transform: translateY(-4px); }

    .paragraph.is--big {
      font-size: 15px;
      font-weight: 500;
      line-height: 1.2;
    
      color: #fff;
    }

    .np__tags { display: flex; flex-direction: column; gap: 4px; }

    .np__date {
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
    }

    .ll__list { display: flex; flex-wrap: wrap; gap: 0; }

    .ll__item {
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.6);
    }

    .ll__item + .ll__item::before { content: " "; margin-right: 4px; }

    .link-group {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.3);
      margin-top: 8px;
      transition: color 0.4s ease;
      position: relative;
      width: fit-content;
    }

    .sb__item:hover .link-group { color: #fff; }

    .link-group::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      height: 1px;
      background: currentColor;
      width: 0;
      transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .sb__item:hover .link-group::after { width: 100%; }

    .disclaimer {
      font-size: 12px;
      color: #444;
      line-height: 1.5;
      margin-top: 4px;
    }

    /* ================================================================
       LIGHTBOX
    ================================================================ */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 999999;
      pointer-events: none;
      visibility: hidden;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 40px;
    }

    .lightbox.is-active {
      pointer-events: auto;
      visibility: visible;
    }

    .lightbox__bg {
      position: absolute;
      inset: 0;
      background-color: rgba(10, 10, 10, 0.95);
      opacity: 0;
      will-change: opacity;
    }

    .lightbox__content-wrap {
      position: relative;
      width: 100%;
      max-width: 1000px;
      height: auto;
      max-height: 90vh;
      overflow: hidden;
      clip-path: inset(100% 0 0 0);
      will-change: clip-path;
      z-index: 1;
    }

    .lightbox__content {
      position: relative;
      display: flex;
      flex-direction: column;
      background: var(--mie-black);
      width: 100%;
      height: 100%;
    }

    .lightbox__media {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: var(--mie-black);
      overflow: hidden;
    }

    .lightbox__img,
    .lightbox__video,
    .lightbox__yt {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: none;
    }

    .lightbox__yt {
      border: 0;
      top: -58px;
      height: calc(100% + 58px);
    }

    /* ── Custom minimal YT overlay ── */
    .yt-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      pointer-events: auto;
      display: none;
    }

    .yt-play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 56px;
      height: 56px;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.35s ease, background 0.3s ease;
      color: #fff;
    }

    .yt-play-btn:hover { background: rgba(255, 255, 255, 0.22); }

    .yt-play-btn svg {
      pointer-events: none;
      width: 18px;
      height: 18px;
      fill: #fff;
    }

    .yt-overlay.is-playing .yt-play-btn { opacity: 0; }
    .yt-overlay.is-playing:hover .yt-play-btn { opacity: 1; }

    .yt-progress-wrap {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: rgba(255, 255, 255, 0.15);
      cursor: pointer;
    }

    .yt-progress-fill {
      height: 100%;
      width: 0%;
      background: #fff;
      pointer-events: none;
      will-change: width;
    }

    .lightbox__img.is-active,
    .lightbox__yt.is-active {
      display: block;
    }

    .lightbox__text {
      padding: 32px;
      background: var(--mie-black);
    }

    .lightbox__text h3.paragraph.is--big { font-size: 28px; margin-bottom: 20px; }
    .lightbox__text .np__tags { gap: 10px; }
    .lightbox__text .np__date { font-size: 13px; }
    .lightbox__text .ll__item { font-size: 13px; }
    .lightbox__text .link-group { display: none; }

    .lightbox__close {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 28px;
      height: 28px;
      padding: 0;
      background: none;
      border: 0;
      cursor: pointer;
      opacity: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
    }

    .lightbox__close img {
      width: 100%;
      height: 100%;
      display: block;
      filter: invert(0);
      pointer-events: none;
    }

    .lightbox__close:hover {
      transform: rotate(90deg) scale(1.15);
    }

    .lightbox__share {
      position: absolute;
      top: 24px;
      left: 24px;
      width: 35px;
      height: 35px;
      padding: 0;
      background: none;
      border: 0;
      cursor: pointer;
      opacity: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease;
    }
    .lightbox__share img {
      width: 100%;
      height: 100%;
      display: block;
      filter: invert(0);
      pointer-events: none;
    }
    .lightbox__share:hover { transform: scale(1.2); }

    .lightbox__toast {
      position: absolute;
      top: 22px;
      left: 50%;
      transform: translateX(-50%);
      font-family: "DM Mono", monospace;
      font-size: 12px;
      letter-spacing: 0.14em;
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 5px 14px;
      border-radius: 20px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      z-index: 3;
      white-space: nowrap;
    }

    .lightbox__nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: 0;
      padding: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .lightbox__nav img {
      width: 24px;
      height: 24px;
      display: block;
      pointer-events: none;
    }

    .lightbox__nav:hover { transform: translateY(-50%) scale(1.2); }
    .lightbox__prev { left: clamp(8px, 2vw, 20px); }
    .lightbox__next { right: clamp(8px, 2vw, 20px); }

    .video-mute-btn {
      position: absolute;
      bottom: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 50%;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      z-index: 4;
      display: none;
      transition: background 0.2s ease;
    }
    .video-mute-btn.is-active { display: flex; }
    .video-mute-btn:hover { background: rgba(0, 0, 0, 0.75); }
    .video-mute-btn svg { width: 16px; height: 16px; pointer-events: none; }

    @media (max-width: 480px) {
      .lightbox__nav img { width: 20px; height: 20px; }
      .video-mute-btn { width: 32px; height: 32px; }
    }

    /* film grain styling now lives in noise.js (unified) */

    /* ================================================================
       WORK-STYLE HERO
    ================================================================ */
    :root {
      --work-side-pad: clamp(24px, 4vw, 60px);
    }

    .work-hero {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      padding: clamp(130px, 18vh, 200px) var(--work-side-pad) 0;
    }

    .work-hero__top {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      column-gap: clamp(18px, 3vw, 48px);
      padding-bottom: clamp(12px, 1.5vh, 20px);
    }

    .work-hero__title {
      margin: 0;
      font-family: "Zalando Sans SemiExpanded", "DM Sans", sans-serif;
      font-size: clamp(64px, 9.5vw, 130px);
      font-weight: 600;
      line-height: 0.88;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: #fff;
      cursor: default;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      display: inline-block;
      opacity: 0;
      transform: translateX(18vw) translateZ(0);
      transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    }

    .work-hero__center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .work-hero__desc {
      margin: 0;
      font-family: "DM Sans", sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.6;
      text-transform: uppercase;
      color: #fff;
      text-align: center;
      align-self: center;
      opacity: 0;
      transition: opacity 0.4s ease 0.35s;
    }

    .work-hero__code {
      margin: 0;
      font-family: "Zalando Sans SemiExpanded", "DM Sans", sans-serif;
      font-size: clamp(64px, 9.5vw, 130px);
      font-weight: 600;
      line-height: 0.88;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: #fff;
      text-align: right;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      opacity: 0;
      transform: translateX(-18vw) translateZ(0);
      transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    }

    .work-hero__line {
      width: 100%;
      height: 1px;
      background: rgba(255, 255, 255, 0.18);
      transform-origin: center center;
      transform: scaleX(0);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
    }

    .work-hero__bottom {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: clamp(10px, 1.4vh, 18px) 0;
      opacity: 0;
      transition: opacity 0.4s ease 0.45s;
    }

    .work-hero__year,
    .work-hero__kicker,
    .work-hero__tags {
      margin: 0;
      font-family: "DM Sans", sans-serif;
      font-weight: 400;
      color: #fff;
    }

    .work-hero__year {
      font-size: 16px;
      text-align: left;
    }

    .work-hero__kicker {
      font-size: 14px;
      letter-spacing: 0.06em;
      text-align: center;
    }

    .work-hero__tags {
      font-size: 16px;
      text-align: right;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
    }

    .lab-filter-btn {
      background: transparent;
      border: none;
      border-bottom: 1px solid transparent;
      color: rgba(255,255,255,0.4);
      font-family: "DM Sans", sans-serif;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.08em;
      padding: 4px 2px;
      cursor: pointer;
      border-radius: 0;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .lab-filter-btn:hover {
      color: #fff;
      border-color: rgba(255,255,255,0.5);
    }

    .lab-filter-btn.is--active {
      background: transparent;
      border-color: #fff;
      color: #fff;
    }

    .sb__item {
      transition: filter 0.35s ease, opacity 0.35s ease;
    }

    .sb__item.is--filtered-out {
      filter: grayscale(1);
      opacity: 0.25;
      pointer-events: none;
    }

    @media (max-width: 1024px) {
      #lab-filter-tabs .lab-filter-btn { display: none; }
      .sb__item.is--filtered-out {
        filter: none;
        opacity: 1;
        pointer-events: auto;
      }
    }

    .work-hero-entered .work-hero__title {
      opacity: 1;
      transform: translateX(0) translateZ(0);
    }

    .work-hero-entered .work-hero__code {
      opacity: 1;
      transform: translateX(0) translateZ(0);
    }

    .work-hero-entered .work-hero__line {
      transform: scaleX(1);
    }

    .work-hero-entered .work-hero__desc,
    .work-hero-entered .work-hero__bottom {
      opacity: 1;
    }

    /* ================================================================
       RESPONSIVE
    ================================================================ */
    @media (max-width: 1024px) {
      :root { --grid-cols: repeat(24, 1fr); }

      /* 每组 10 个项目重新分配到 24 栏 */
      .sb__item:nth-child(10n + 1)  { grid-column: 2 / span 11; }
      .sb__item:nth-child(10n + 2)  { grid-column: 14 / span 10; }
      .sb__item:nth-child(10n + 3)  { grid-column: 2 / span 10; }
      .sb__item:nth-child(10n + 4)  { grid-column: 13 / span 11; }
      .sb__item:nth-child(10n + 5)  { grid-column: 2 / span 22; }
      .sb__item:nth-child(10n + 6)  { grid-column: 2 / span 10; }
      .sb__item:nth-child(10n + 7)  { grid-column: 13 / span 11; }
      .sb__item:nth-child(10n + 8)  { grid-column: 2 / span 11; }
      .sb__item:nth-child(10n + 9)  { grid-column: 14 / span 10; }
      .sb__item:nth-child(10n + 10) { grid-column: 2 / span 22; }

      .app { padding: 6vh 0 14vh; }

      .lightbox { padding: 20px; }
      .lightbox__content-wrap { max-height: 92vh; overflow-y: auto; }
      .lightbox__text { padding: 24px; }
      .lightbox__text h3.paragraph.is--big { font-size: 22px; }

      .work-hero {
        padding-top: clamp(110px, 15vh, 160px);
      }

      .work-hero__top {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 10px;
        padding-bottom: 16px;
      }

      .work-hero__title {
        text-align: center;
      }

      .work-hero__desc {
        max-width: 18em;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
      }

      .work-hero__bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 14px 0 0;
      }

      .work-hero__code,
      .work-hero__year {
        display: none;
      }
      .work-hero__tags {
        display: none;
      }

      /* Tablet: reduce slide distance so animation doesn't overflow */
      .work-hero__title { transform: translateX(8vw) translateZ(0); }
      .work-hero__code  { transform: translateX(-8vw) translateZ(0); }
    }

    @media (max-width: 768px) {
      .ps__list {
        display: flex;
        flex-direction: column;
        gap: 48px;
        padding: 0 clamp(16px, 5vw, 32px);
      }

      .sb__item { width: 100%; }

      .sb__item-link { aspect-ratio: 4/3 !important; }
      .sb__item-link img { height: 100%; }

      .app { padding: 4vh 0 10vh; }

      /* ── lightbox mobile ── */
      .lightbox {
        padding: 0;
        align-items: flex-start;
      }
      .lightbox__content-wrap {
        max-height: 100dvh;
        max-height: 100vh;
        width: 100%;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: auto 0;
      }
      .lightbox__text { padding: 20px 16px; }
      .lightbox__text h3.paragraph.is--big { font-size: 18px; margin-bottom: 14px; }
      .lightbox__close { bottom: 16px; right: 16px; top: auto; width: 24px; height: 24px; }
      .lightbox__share { bottom: 16px; left: 16px; top: auto; width: 30px; height: 30px; }
      .lightbox__nav {
        top: 50%;
      }
      .lightbox__prev { left: 6px; }
      .lightbox__next { right: 6px; }

      /* ── Hero: appear directly on mobile, no slide animation ── */
      .work-hero__title,
      .work-hero__code {
        opacity: 1;
        transform: none;
        transition: none;
      }
      .work-hero__line {
        transform: scaleX(1);
        transition: none;
      }
      .work-hero__desc,
      .work-hero__bottom {
        opacity: 1;
        transition: none;
      }

      .work-hero { padding-top: 104px; }
      .work-hero__title { font-size: clamp(3.6rem, 20vw, 7rem); }
      .work-hero__kicker, .work-hero__desc { font-size: 0.68rem; letter-spacing: 0.13em; }
    }

    @media (max-width: 480px) {
      .ps__list { gap: 36px; padding: 0 16px; }

      .lightbox__text { padding: 14px 12px; }
      .lightbox__text h3.paragraph.is--big { font-size: 16px; }
      .lightbox__close { bottom: 12px; right: 12px; top: auto; width: 20px; height: 20px; }
      .lightbox__share { bottom: 12px; left: 12px; top: auto; width: 25px; height: 25px; }
      .lightbox__nav img { width: 18px; height: 18px; }
      .video-mute-btn { width: 30px; height: 30px; bottom: 8px; right: 8px; }

      .work-hero__title { font-size: 65px; }
      .disclaimer { font-size: 11px; }
    }

    /* ================================================================
       GRID LINE OVERLAY
    ================================================================ */
    .grid-overlay {
      position: fixed;
      inset: 0;
      padding: 0 var(--ui-inset, 2rem);
      pointer-events: none;
      z-index: 5;
    }
    .grid-overlay-inner {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 0.75rem;
      height: 100%;
    }
    .grid-column {
      border-left: 1px solid rgba(255, 255, 255, 0.07);
      border-right: 1px solid rgba(255, 255, 255, 0.07);
      opacity: 0;
      will-change: transform, opacity;
    }

    /* ================================================================
       FOOTER
    ================================================================ */
    .site-footer {
      position: relative;
      overflow: visible;
      color: #fff;
      padding: 0;
      font-family: 'DM Sans', sans-serif;
    }

    .footer-top {
      padding: 3vw 2.5vw;
      position: relative;
      z-index: 5;
    
    }

    .footer-brand-title {
      font-family: 'Zalando Sans SemiExpanded', 'DM Sans', sans-serif;
      font-size: clamp(4rem, 15vw, 11.5rem);
      font-weight: 600;
      text-transform: uppercase;
      line-height: 0.88;
      letter-spacing: 0.02em;
      margin-bottom: 40px;
      color: #fff;
    }

    .footer-brand-title sup {
      font-size: 0.13em;
      vertical-align: top;
      letter-spacing: 0;
    }

    .footer-info-bar {
      display: flex;
      justify-content: space-between;
      border-top: 1px solid #222;
      padding-top: 30px;
      margin-bottom: 40px;
      font-size: clamp(11px, 1.1vw, 16px);
      text-transform: uppercase;
      letter-spacing: 2px;
      color: #fff;
    }

    .footer-main-content {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 40px;
    }

    .footer-description {
      font-size: 14px;
      line-height: 1.65;
      color: #666;
      max-width: 450px;
      margin-bottom: 32px;
    }

    .footer-contact-info a {
      display: block;
      color: #fff;
      text-decoration: none;
      font-size: clamp(20px, 3.5vw, 50px);
      font-weight: 400;
      margin-bottom: 4px;
      transition: opacity 0.2s;
    }
    .footer-contact-info a:hover { opacity: 0.6; }

    .footer-contact-info span {
      color: #ffffff;
      font-size: clamp(18px, 2.5vw, 30px);
    }

    .footer-nav-links {
      display: flex;
      gap: 28px;
      margin-top: 38px;
    }

    .footer-nav-links a {
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      transition: opacity 0.2s;
    }
    .footer-nav-links a:hover { opacity: 0.5; }

    .footer-right-panel {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-start;
    }

    .footer-video-thumb {
      width: 100%;
      max-width: 340px;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      position: relative;
    }

    .footer-video-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .footer-copyright-bridge {
      position: absolute;
      bottom: 0;
      right: 6%;
      width: clamp(90px, 10vw, 148px);
      height: clamp(90px, 10vw, 148px);
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateY(50%);
      z-index: 20;
    }

    .footer-copyright-bridge span {
      font-family: 'Zalando Sans SemiExpanded', 'DM Sans', sans-serif;
      font-size: 180px;
      font-weight: 600;
      color: #fff;
      line-height: 1;
    }

    .footer-parallax-section {
      height: 50vh;
      width: 100%;
      overflow: hidden;
      position: relative;
      z-index: 1;
    }
    .footer-parallax-copy {
      position: absolute;
      top: 30px;
      left: 40px;
      z-index: 3;
      color: rgba(255, 255, 255, 0.65);
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      letter-spacing: 0.06em;
      line-height: 1.7;
      pointer-events: none;
    }

     @media (max-width: 1440px) {
     .footer-parallax-section {
      height: 300px;
      
    }
    }



    .footer-parallax-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: var(--footer-bg-image, none);
      background-attachment: fixed;
      background-size: contain;
      background-position: bottom;
      opacity: 1;
      mix-blend-mode: luminosity;
    }

    @media (max-width: 1024px) {
      .footer-top { padding: 6vw 4vw; }
      .footer-copyright-bridge,
      .footer-parallax-section { display: none !important; }
    }

    @media (max-width: 768px) {
      .footer-top { padding: 32px 20px 40px; }
      .footer-brand-title { margin-bottom: 24px; }
      .footer-info-bar {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 28px;
        flex-wrap: wrap;
        gap: 8px;
      }
      .footer-main-content {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .footer-right-panel {
        align-items: flex-start;
        margin-top: 0;
      }
      .footer-video-thumb { max-width: 100%; }
      .footer-nav-links {
        gap: 16px;
        margin-top: 24px;
        flex-wrap: wrap;
      }
       .footer-nav-links a{
            font-size:11px;
      }
      
    }

    @media (max-width: 480px) {
      .footer-top { padding: 24px 16px 32px; }
      .footer-nav-links { gap: 12px; }
      .footer-contact-info span { font-size: 16px; }
    }

    /* ================================================================
       MARQUEE
    ================================================================ */
    .lab-marquee {
      width: 100%;
      overflow: hidden;
      background: var(--mie-black, #0a0a0a);
      /* border-top: 1px solid rgba(255, 255, 255, 0.08);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
      padding: 10px;
      border-top: 1px solid #313131;
    border-bottom: 1px solid #313131;
    }

    .lab-marquee__track {
      display: flex;
      align-items: center;
      gap: 0;
      white-space: nowrap;
      will-change: transform;
    }

    .lab-marquee__item {
      font-family: 'Bitcount Grid Single', monospace;
      font-size: clamp(1.4rem, 4vw, 4.5rem);
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #fff;
      padding: 0 clamp(20px, 3vw, 60px);
    }

    .lab-marquee__sep {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
      width: clamp(20px, 2.8vw, 40px);
    }

    .lab-marquee__sep img {
      width: 100%;
      height: 100%;
      display: block;
      animation: sep-spin 3s ease-in-out infinite;
    }

    @keyframes sep-spin {
      0%   { transform: rotate(0deg); }
      40%  { transform: rotate(180deg); }
      60%  { transform: rotate(180deg); }
      100% { transform: rotate(360deg); }
    }

    @media (prefers-reduced-motion: reduce) {
      .lab-marquee__track { transform: none !important; }
    }

/* ===== style block ===== */
.ns-showcase-row__index::before,.ns-showcase-row__title-layer::before{content:attr(data-text);}

/* ===== style block ===== */
.frev-wrap { overflow: hidden; display: inline-block; vertical-align: bottom; }
    .footer-video-cover { position: absolute; inset: 0; background: #0a0a0a; z-index: 2; pointer-events: none; transform-origin: right center; will-change: transform; }