  :root {
    --pink: #ff3e7f;
    --pink-light: #ffb3cd;
    --black: #0a0a0a;
    --white: #fafaf8;
    --gray: #888;
    --gray-light: #e8e8e4;
    --accent: #c8f060;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--white);
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(250,250,248,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
  }

  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--pink); }

  /* ── HERO ── */
  .hero {
    padding: 140px 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(52px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -3px;
    color: var(--black);
    position: relative;
    display: inline-block;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--pink);
  }

  .hero-sub {
    margin-top: 28px;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
  }

  /* ── THUMBNAIL GRID ── */
  .thumb-section {
    padding: 20px 48px 64px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .thumb-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
  }

  .thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 140px);
    gap: 4px;
  }

  .thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-light);
    transition: transform 0.25s cubic-bezier(.22,1,.36,1);
  }

  .thumb:hover { 
	  /*transform: scale(1.03);*/
	  z-index: 2;
  }

  .thumb-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s, opacity 0.3s;
  }

  .thumb-overlay {
    position: absolute;
    inset: 0;
    background: var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .thumb:hover .thumb-overlay { opacity: 1; }
  .thumb:hover .thumb-img { filter: brightness(0.3); }

  .thumb-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-align: center;
    letter-spacing: -0.3px;
    text-transform: uppercase;
  }

  /* color accents on thumb corners */
  .thumb::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent var(--pink) transparent;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .thumb:hover::after { opacity: 1; }

  /* ── DIVIDER ── */
  .section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
  }
  .section-divider::before, .section-divider::after {
    content: ''; flex: 1;
    height: 1px;
    background: var(--gray-light);
  }
  .section-divider span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-light);
  }

  /* ── PROJECT SECTIONS ── */
  .project-section {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 48px;
    scroll-margin-top: 80px;
  }

  .project-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    margin-bottom: 32px;
    border-top: 2px solid var(--black);
    padding-top: 24px;
  }

  .project-number {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--pink);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
  }

  .project-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--black);
  }

  .project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .tag {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pink);
    border: 1px solid var(--pink);
    padding: 4px 10px;
    border-radius: 0;
  }

  .project-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
  }

  /* ── CAROUSEL ── */
  .carousel {
    position: relative;
    overflow: hidden;
    background: var(--gray-light);
    aspect-ratio: 16/10;
    cursor: pointer;
  }

  .carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(.77,0,.175,1);
    will-change: transform;
  }

  .carousel-slide {
    flex: 0 0 100%;
    height: 100%;
  }

  .carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
  }

  .carousel:hover .carousel-slide img { transform: scale(1.03); }

  .img-expand-hint {
    position: absolute;
    bottom: 16px; right: 16px;
    background: var(--pink);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 3;
  }

  .carousel:hover .img-expand-hint { opacity: 1; }

  /* auto-scroll progress bar */
  .carousel-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--pink);
    width: 0%;
    z-index: 4;
    pointer-events: none;
  }

  .project-info p {
    font-size: 14px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .project-info .visit-link {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--black);
    border-bottom: 2px solid var(--pink);
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.2s;
  }

  .project-info .visit-link:hover { color: var(--pink); }

  /* thumbnail strip */
  .img-strip {
    display: flex;
    gap: 6px;
    margin-top: 20px;
  }

  .img-strip-thumb {
    width: 56px; height: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
  }

  .img-strip-thumb:hover,
  .img-strip-thumb.active { border-color: var(--pink); }

  /* ── LIGHTBOX ── */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(10,10,10,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .lightbox.active {
    opacity: 1;
    pointer-events: all;
  }

  .lb-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .lb-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  }

  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--pink);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: 'Space Mono', monospace;
  }

  .lb-nav:hover { background: #e0005e; }
  .lb-prev { right: calc(100% + 16px); }
  .lb-next { left: calc(100% + 16px); }

  .lb-close {
    position: fixed;
    top: 24px; right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    letter-spacing: -2px;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
  }

  .lb-close:hover { opacity: 1; color: var(--pink); }

  .lb-counter {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
  }

  .lb-caption {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    text-align: center;
  }

  /* thumb strip inside lightbox */
  .lb-strip {
    display: flex;
    gap: 6px;
  }

  .lb-strip-thumb {
    width: 50px; height: 36px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
  }

  .lb-strip-thumb.active,
  .lb-strip-thumb:hover { opacity: 1; border-color: var(--pink); }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--gray-light);
    padding: 40px 48px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  footer .foot-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
  }

  footer .foot-copy {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 0.1em;
  }

  /* ── SCROLL TO TOP ── */
  .top-btn {
    position: fixed;
    bottom: 32px; right: 32px;
    background: var(--black);
    color: #fff;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    z-index: 50;
  }

  .top-btn.visible { opacity: 1; }
  .top-btn:hover { background: var(--pink); }

  /* Placeholder image colors for demo */
  .ph { background: var(--gray-light); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray); font-family: 'Space Mono', monospace; font-size: 10px; }

  /* ── RESPONSIVE ── */

  /* Tablet: 768–1024px */
  @media (max-width: 1024px) {
    nav { padding: 16px 28px; }

    .hero { padding: 110px 28px 60px; }

    .thumb-section { padding: 16px 28px 48px; }
    .thumb-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(4, 120px);
    }

    .section-divider { padding: 0 28px; margin-bottom: 56px; }

    .project-section { padding: 0 28px; margin-bottom: 80px; }
    .project-body { grid-template-columns: 1fr; gap: 28px; }
    .project-tags { justify-content: flex-start; margin-top: 8px; }
    .project-header { grid-template-columns: 1fr; }

    footer { padding: 32px 28px; }
  }

  /* Mobile: ≤ 640px */
  @media (max-width: 640px) {
    /* Nav — logo left, links condensed */
    nav {
      padding: 14px 20px;
      gap: 12px;
    }
    .nav-logo { font-size: 18px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 10px; letter-spacing: 0.08em; }

    /* Hero */
    .hero { padding: 90px 20px 44px; }
    .hero h1 { letter-spacing: -1.5px; }
    .hero-sub { font-size: 10px; letter-spacing: 0.1em; margin-top: 18px; }

    /* Thumb grid: 3 columns × 4 rows */
    .thumb-section { padding: 12px 20px 36px; }
    .thumb-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(4, 90px);
    }
    .thumb-title { font-size: 10px; }

    /* Divider */
    .section-divider { padding: 0 20px; margin-bottom: 40px; }

    /* Project sections: single column, tighter spacing */
    .project-section { padding: 0 20px; margin-bottom: 60px; scroll-margin-top: 64px; }
    .project-header {
      grid-template-columns: 1fr;
      margin-bottom: 20px;
      padding-top: 18px;
    }
    .project-name { letter-spacing: -0.8px; }
    .project-tags { justify-content: flex-start; margin-top: 10px; gap: 6px; }
    .tag { font-size: 9px; padding: 3px 8px; }

    .project-body { grid-template-columns: 1fr; gap: 20px; }

    /* Carousel: taller aspect on mobile */
    .carousel { aspect-ratio: 4/3; }

    /* Thumbnail strip: slightly larger tap targets */
    .img-strip { gap: 5px; margin-top: 14px; }
    .img-strip-thumb { width: 48px; height: 34px; }

    /* Always show expand hint on mobile (no hover) */
    .img-expand-hint { opacity: 1; bottom: 10px; right: 10px; font-size: 9px; padding: 5px 10px; }

    /* Project info */
    .project-info p { font-size: 13px; }

    /* Lightbox: full-screen on mobile */
    .lb-inner { max-width: 100vw; padding: 0; gap: 10px; }
    .lb-img { max-width: 100vw; max-height: 60vh; }

    /* Move nav arrows inside the image area on mobile */
    .lb-prev { right: auto; left: 8px; top: auto; bottom: calc(60vh / 2); transform: none; }
    .lb-next { left: auto; right: 8px; top: auto; bottom: calc(60vh / 2); transform: none; }
    .lb-nav { width: 38px; height: 38px; font-size: 16px; opacity: 0.85; }

    .lb-close { top: 14px; right: 16px; font-size: 22px; }
    .lb-caption { font-size: 12px; padding: 0 16px; }
    .lb-strip { gap: 4px; flex-wrap: wrap; justify-content: center; padding: 0 12px; }
    .lb-strip-thumb { width: 40px; height: 28px; }

    /* Footer stacked */
    footer {
      flex-direction: column;
      gap: 10px;
      text-align: center;
      padding: 28px 20px;
    }

    /* Scroll to top: smaller */
    .top-btn { width: 38px; height: 38px; font-size: 15px; bottom: 20px; right: 20px; }
  }

  /* Extra small: ≤ 380px */
  @media (max-width: 380px) {
    .thumb-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(4, 76px);
    }
    .nav-links { gap: 14px; }
    .hero h1 { letter-spacing: -1px; }
  }
