      /* ── reset & base (mirrors portfolio main.css) ── */
      html {
        text-transform: lowercase;
        scroll-behavior: smooth;
      }
      body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        background: #ffffff;
        font-family: "Merriweather", sans-serif;
        font-weight: 300;
        line-height: 1.395rem;
        color: #555;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
      }
      em { font-style: italic; }
      strong, b { font-weight: 900; }
      small { font-size: 67%; }

      /* ── links (mirrored) ── */
      a {
        color: inherit;
        padding: 0 0.1125rem;
        border-bottom: #555 dotted 1px;
        text-decoration: none;
        cursor: pointer;
      }
      a:hover {
        background: #ccc;
        transition: background 0.3s;
        color: #555;
        border-bottom-style: solid;
      }
      a:active {
        background-color: #ccc;
        color: black;
      }

      /* ── container ── */
      #container {
        margin: 0 auto;
        max-width: 1280px;
        text-align: center;
        padding: 3.6rem 1rem;
      }
      #header, #content, #footer {
        margin: 3.6rem auto;
      }
      #footer {
        margin-top: 5.4rem;
        opacity: 0.25;
        transition: opacity 0.6s;
      }
      #footer:hover { opacity: 1; }

      /* ── typography ── */
      nav, p, h1, h2, h3, h6, ul, ol {
        font-size: 0.95rem;
        text-align: left;
        color: #555;
        margin: 1.395rem auto;
        max-width: 36rem;
      }
      h1, h2, h3 {
        margin-top: 2.79rem;
        font-weight: 900;
      }
      h3 { font-style: italic; }

      hr {
        display: block;
        clear: both;
        overflow: hidden;
        border: none;
        border-top: black solid 6px;
        margin: 2.7rem auto;
        padding: 0;
        max-width: 36rem;
      }
      hr.dotted { border-top-style: dotted; }

      img {
        display: block;
        width: 100%;
        height: auto;
      }

      /* ── hero area ── */
      .labs-hero {
        max-width: 36rem;
        margin: 0 auto 2rem;
        text-align: left;
      }
      .labs-hero .badge {
        display: inline-block;
        background: #555;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
      }
      .labs-hero h1 {
        font-size: 1.6rem;
        line-height: 2rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
      }
      .labs-hero .tagline {
        font-size: 0.95rem;
        opacity: 0.7;
        margin-top: 0;
      }

      /* ── image placeholder with loading spinner ── */
      .img-placeholder {
        position: relative;
        width: 100%;
        background: #f5f5f5;
        border: 1px solid #eee;
        overflow: hidden;
        margin: 1.395rem auto;
        max-width: 100%;
      }
      /* maintain aspect ratio via padding-bottom on a wrapper */
      .img-placeholder.ratio-16-9 { padding-bottom: 56.25%; }
      .img-placeholder.ratio-4-3  { padding-bottom: 75%; }
      .img-placeholder.ratio-3-2  { padding-bottom: 66.67%; }
      .img-placeholder.ratio-1-1  { padding-bottom: 100%; }

      .img-placeholder .spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        z-index: 1;
        pointer-events: none;
      }
      .img-placeholder .spinner .ring {
        width: 28px;
        height: 28px;
        border: 3px solid #ddd;
        border-top-color: #555;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
      }
      .img-placeholder .spinner .label {
        font-size: 0.7rem;
        color: #999;
        text-transform: lowercase;
        letter-spacing: 0.04rem;
      }

      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      /* once image loads, hide spinner */
      .img-placeholder img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.4s ease;
      }
      .img-placeholder img.loaded {
        opacity: 1;
      }

      .img-caption {
        font-size: 0.85rem;
        opacity: 0.67;
        text-align: left;
        max-width: 36rem;
        margin: 0.35rem auto 0;
        line-height: 1.35rem;
      }
      .img-caption::before {
        content: "↑ ";
      }

      /* ── full-width media block (like portfolio's div.media) ── */
      .media-full {
        width: 100%;
        max-width: 80rem;
        margin: 2.4rem auto;
      }
      .media-full .img-placeholder {
        max-width: 100%;
      }
      .media-full .img-caption {
        max-width: 80rem;
        padding-left: 0.5rem;
      }

      /* ── side-by-side images ── */
      .media-row {
        display: flex;
        gap: 1rem;
        max-width: 80rem;
        margin: 2.4rem auto;
      }
      .media-row .media-col {
        flex: 1;
        min-width: 0;
      }
      .media-row .img-placeholder {
        margin: 0;
      }
      .media-row .img-caption {
        max-width: 100%;
        padding-left: 0.5rem;
      }

      /* ── feature grid ── */
      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.8rem;
        max-width: 54rem;
        margin: 2rem auto;
        text-align: left;
      }
      .feature-card {
        padding: 1.2rem;
        background: #fafafa;
        border: 1px solid #eee;
      }
      .feature-card .icon {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        display: block;
      }
      .feature-card h3 {
        font-size: 0.95rem;
        font-weight: 900;
        font-style: normal;
        margin: 0.4rem 0 0.3rem;
        max-width: 100%;
      }
      .feature-card p {
        margin: 0;
        max-width: 100%;
        font-size: 0.88rem;
        line-height: 1.4rem;
        opacity: 0.8;
      }

      /* ── tech stack tags ── */
      .tech-stack {
        max-width: 36rem;
        margin: 1.5rem auto;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .tech-tag {
        display: inline-block;
        font-size: 0.72rem;
        border: 1px solid #ccc;
        padding: 0.2rem 0.5rem;
        color: #555;
        letter-spacing: 0.02rem;
      }

      /* ── workflow steps ── */
      .workflow {
        max-width: 36rem;
        margin: 2rem auto;
        text-align: left;
      }
      .workflow-step {
        display: flex;
        gap: 1rem;
        margin-bottom: 1.2rem;
        align-items: flex-start;
      }
      .workflow-step .step-num {
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        background: #555;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.15rem;
      }
      .workflow-step .step-text {
        font-size: 0.95rem;
        line-height: 1.55rem;
      }
      .workflow-step .step-text strong {
        font-weight: 900;
      }

      /* ── domains listing ── */
      .domains {
        max-width: 36rem;
        margin: 1.5rem auto;
        text-align: left;
      }
      .domain-item {
        display: flex;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
        align-items: baseline;
      }
      .domain-item .check {
        color: #555;
        flex-shrink: 0;
      }
      .domain-item span:last-child {
        opacity: 0.75;
      }

      /* ── image overlay for small images ── */
      .img-placeholder.small-img {
        cursor: pointer;
        position: relative;
      }
      .img-placeholder.small-img::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 3;
        transition: opacity 0.3s ease;
      }
      .img-placeholder.small-img::after {
        content: 'click to view big';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 4;
        background: rgba(85, 85, 85, 0.95);
        color: #fff;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        font-weight: 900;
        letter-spacing: 0.05rem;
        text-transform: lowercase;
        pointer-events: none;
        border: 2px solid #fff;
        transition: all 0.3s ease;
      }
      .img-placeholder.small-img:hover::before {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
      }
      .img-placeholder.small-img:hover::after {
        background: #555;
        transform: translate(-50%, -50%) scale(1.05);
      }

      /* ── lightbox modal ── */
      .lightbox-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
      }
      .lightbox-modal.active {
        display: flex;
        opacity: 1;
      }
      .lightbox-content {
        position: relative;
        max-width: 95vw;
        max-height: 95vh;
        animation: zoomIn 0.3s ease;
      }
      .lightbox-content img {
        width: auto;
        height: auto;
        max-width: 95vw;
        max-height: 95vh;
        object-fit: contain;
        display: block;
      }
      .lightbox-close {
        position: absolute;
        top: -40px;
        right: 0;
        background: #fff;
        color: #000;
        font-size: 1.4rem;
        font-weight: 900;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;
      }
      .lightbox-close:hover {
        background: #555;
        color: #fff;
        transform: rotate(90deg);
      }
      .lightbox-caption {
        position: absolute;
        bottom: -35px;
        left: 0;
        right: 0;
        color: #fff;
        font-size: 0.85rem;
        text-align: center;
        opacity: 0.8;
      }
      @keyframes zoomIn {
        from {
          transform: scale(0.8);
          opacity: 0;
        }
        to {
          transform: scale(1);
          opacity: 1;
        }
      }

      /* ── responsive ── */
      @media screen and (max-device-width: 960px) {
        #container {
          max-width: 95vw;
          padding-top: 1.8rem;
          padding-bottom: 1.8rem;
        }
        #header, #content, #footer {
          margin-top: 1.8rem;
          margin-bottom: 3.6rem;
        }
      }
      @media screen and (max-device-width: 720px) {
        .media-row {
          flex-direction: column;
        }
        .features-grid {
          grid-template-columns: 1fr;
        }
      }
      @media screen and (max-device-width: 540px) {
        #container { max-width: 90vw; }
        nav, h1, h2, h3, ul, p { font-size: 0.88rem; }
        .labs-hero h1 { font-size: 1.3rem; line-height: 1.7rem; }
        a { border-bottom-style: solid; }
      }

      @media print {
        @page { size: A4; margin: 2cm; }
        #container { width: 100%; margin: 0; padding: 0; }
        .img-placeholder .spinner { display: none; }
      }
