:root {
    --background: #fff;
    --foreground: #111;
    --muted: #999;
    --border: #e5e5e5;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: Arial, Helvetica, sans-serif;
  }

  /* Page layout: 1fr / 12fr / 1fr */
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 12fr) minmax(0, 1fr);
    padding-block: clamp(30px, 7vw, 100px);
  }

  .content {
    grid-column: 2;
    min-width: 0;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }

  .brand {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.08em;
  }

  .eyebrow {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
  }

  .heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 45px 0 30px;
  }

  h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -0.05em;
  }

  .count {
    font-size: 12px;
    color: var(--muted);
  }

  /* Projects */
  .no-image .project-overlay {
    display: none;
  }
  
  .project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    text-align: center;
    font-size: clamp(10px, 0.85vw, 14px);
    line-height: 1.3;
    color: #333;
  }

  .projects {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
  }

  
  .project {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .project img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* use cover if you want edge-to-edge cropped images */
    display: block;
    transition: transform 0.25s ease;
  }
  
  .project:hover img,
  .project:focus-visible img {
    transform: scale(1.05);
  }
  
  /* Number stays visible */
  .project-number {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 10px;
    line-height: 1;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    border: 1px solid var(--border);
  }
  
  /* Hidden overlay by default */
  .project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.35) 45%,
      rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
  }
  
  /* Show overlay on hover/focus */
  .project:hover .project-overlay,
  .project:focus-visible .project-overlay,
  .project:focus-within .project-overlay {
    opacity: 1;
  }
  
  .project-name {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.02em;
    transform: translateY(6px);
    transition: transform 0.25s ease;
  }
  
  .project:hover .project-name,
  .project:focus-visible .project-name,
  .project:focus-within .project-name {
    transform: translateY(0);
  }

  footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    margin-top: 35px;
    padding-top: 15px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  /* Responsive */
  @media (max-width: 1000px) {
    .projects {
      grid-template-columns: repeat(8, minmax(0, 1fr));
    }
  }

  @media (max-width: 650px) {
    .projects {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }