:root {
    --bg: #E6D6D0;
    --surface: #D6AFA3;
    --ink: #2C1F1A;
    --ink-muted: #555;
    --accent: #CD4A29;
   
    --space-sm: 24px;
    --space-md: 48px;
    --space-lg: 96px;
    --space-xl: 140px;
   
    --radius-sm: 12px;
    --radius-lg: 24px;
   
    --content-width: 720px;
    --wide-width: 1100px;
  }
   
   
  /* ── RESET ─────────────────────────────────── */
   
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
   
   
  /* ── BASE ──────────────────────────────────── */
   
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
  }
   
   
  /* ── NAV ───────────────────────────────────── */
   
  .nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    background: var(--bg);
    font-family: "Syne", sans-serif;
    font-weight: 600;
  }
   
  .logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
  }
   
  .logo:hover {
    cursor: pointer;
  }
   
  .nav-links {
    display: flex;
    gap: 10px;
  }
   
  .nav-links a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
    padding: 8px 18px;
    border: 1px solid rgba(205, 74, 41, 0.3);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
  }
   
  .nav-links a:hover {
    background: var(--accent);
    color: white;
  }
   
   
  /* =============================================
     HOMEPAGE
     ============================================= */
   
   
  /* ── HERO ──────────────────────────────────── */
   
  .hero {
    min-height: 90vh;
    padding: 80px 48px 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
  }
   
  .keyboard-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -110%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
   
  .row {
    display: flex;
    justify-content: center;
    gap: 22px;
  }
   
  .top-row {
    margin-bottom: 22px;
  }
   
  .bottom-row {
    margin-left: 52px;
  }
   
  .key {
    position: relative;
    width: 110px;
    transition: transform 0.2s ease;
  }
   
  .key:hover {
    transform: translateY(-4px);
  }
   
  .key img {
    width: 100%;
    display: block;
  }
   
  .letter {
    position: absolute;
    top: 22%;
    left: 54%;
    transform: translate(-50%, -50%) skewX(18deg);
    font-size: 26px;
    font-family: "Syne", sans-serif;
    font-weight: 700;
    color: var(--accent);
    pointer-events: none;
  }
   
  .hero-statement {
    max-width: 560px;
    margin-bottom: -80px
  }
   
  .hero-role {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
  }
   
  .hero-statement h1 {
    font-family: "Syne", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
  }
   
  .hero-statement p {
    font-size: 15px;
    color: var(--ink-muted);
    max-width: 420px;
  }
   
   
  /* ── WORK SECTION ──────────────────────────── */
   
  .work {
    padding: 60px 48px 140px;
  }
   
  .section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
  }
   
  .section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
  }
   
  .section-rule {
    flex: 1;
    height: 1px;
    background: rgba(205, 74, 41, 0.2);
  }
   
  .projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .healing-img {
    object-fit: contain;
    object-position: center;
    margin: 20px auto;
    display: block;
    transform: none;
    height: 400px;
  }

  .project-card:nth-child(2) img {
    object-fit: contain;
    height: 320px;
    object-position: center 120px;
  }

  .project-card:nth-child(2) .card-meta {
    padding-top: 70px;
    margin-top: 20px;
  }


  .project-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .project-card:first-child {
    height: auto;
  }
   
  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  }
   
  .project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
  }
   
  .card-meta {
    padding: 18px 20px 20px;
  }
   
  .card-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
   
  .card-title {
    font-family: "Syne", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
  }
   
  .card-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.4;
  }
   
  .project-card:first-child img {
    height: 310px !important;
    object-fit: contain !important;
    object-position: center center;
    margin-top: 40px;
    object-position: center 30px;
  }
  
  .project-card:first-child .card-meta {
    padding-top: 40px;
  }
   
  /* =============================================
     CASE STUDY PAGE
     ============================================= */
   
   
  /* ── LAYOUT COLUMNS ────────────────────────── */
   
  /* narrow column for text — comfortable reading width */
  .col {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
  }
   
  /* wide column for images and grids */
  .col-wide {
    max-width: var(--wide-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
  }
   
   
  /* ── CHAPTER TAGS ──────────────────────────── */
  /* the small "Research / Problem / Outcome" labels */
   
  .chapter-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
  }
   
  .chapter-tag span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
  }
   
  .chapter-tag::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(205, 74, 41, 0.2);
  }
   
  .chapter {
    margin-top: 96px;
  }
   
  .chapter + .chapter {
    margin-top: 140px;
  }
   
   
  /* ── CASE HERO ─────────────────────────────── */
   
  .case-hero {
    margin: 48px auto;
    max-width: 1100px;
    padding: 0 48px;
  }
   
  .case-hero-card {
    height: 500px;
    background: var(--surface);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
   
  .case-hero-card .bg-img {
    position: absolute;
    top:15px;
    left: -20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
  }
   
  .case-hero-card .logo-img {
    position: relative;
    z-index: 2;
    width: min(520px, 60%);
  }
   
  .case-meta {
    display: flex;
    gap: 48px;
    margin-top: 28px;
  }
   
  .meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
  }
   
  .meta-value {
    font-size: 15px;
    color: var(--ink-muted);
  }

   
  /* ── INTRO / HOOK ──────────────────────────── */
   
  .case-intro {
    margin-top: 96px;
  }
   
  .case-intro .hook {
    font-family: "Syne", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #CD4A29;
  }
   
  .case-intro p {
    font-size: 15px;
    color: var(--ink-muted);
    max-width: 540px;
  }
   
   
  /* ── BODY TEXT ─────────────────────────────── */
   
  .prose p {
    font-size: 15px;
    color: var(--ink-muted);
    line-height: 1.7;
  }
   
  .prose p + p {
    margin-top: 20px;
  }
   
   
  /* ── FULL IMAGE WITH OVERLAY ───────────────── */
   
  .full-img {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
  }
   
  .full-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
  }
   
  .full-img .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
  }
   
  .overlay h3 {
    font-family: "Syne", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
  }
   
  .overlay p {
    font-size: 15px;
    line-height: 1.5;
    max-width: 480px;
  }
   
  .overlay ul {
    margin: 10px 0 12px 18px;
    font-size: 15px;
    line-height: 1.7;
  }
   
   
  /* ── PROBLEM STATEMENT ─────────────────────── */
   
  .problem-statement {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 28px;
    margin: 48px 0;
  }
   
  .problem-statement p {
    font-family: "Syne", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--accent);
    letter-spacing: -0.01em;
  }
   
   
  /* ── SPLIT (two column research blocks) ─────── */
   
    .split {
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
      }
   
      .split-item img {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        display: block;
        margin-bottom: 16px;
      }
   
  .split-item h4 {
    font-family: "Syne", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
  }
   
  .split-item p {
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.55;
  }
   
   
  /* ── SINGLE IMAGE + CAPTION ────────────────── */
   
  .single-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
   
  .single-img img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
  }
   
  .single-img figcaption {
    font-size: 13px;
    color: var(--ink-muted);
    text-align: center;
    max-width: 520px;
    line-height: 1.5;
  }
   
   
  /* ── OUTCOME GRID ──────────────────────────── */
   
  .outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
  }
   
  .outcome-grid img {
    width: 100%;
    border-radius: 12px;
    display: block;
  }
   
  .outcome-full {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-top: 20px;
  }
   
   
  /* ── REFLECTION ────────────────────────────── */
   
  .reflection {
    background: rgba(205, 74, 41, 0.06);
    border-radius: 24px;
    padding: 64px 60px;
    text-align: center;
  }
   
  .reflection::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 28px auto;
  }
   
  .reflection p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-muted);
  }
   
  .reflection em {
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--accent);
  }
   
   
  /* ── FOOTER ────────────────────────────────── */
   
  .case-footer {
    text-align: center;
    padding: 140px 0;
  }
   
  .case-footer a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding: 12px 28px;
    border: 1px solid rgba(205, 74, 41, 0.3);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
  }
   
  .case-footer a:hover {
    background: var(--accent);
    color: white;
  }
   
   
  /* ── RESPONSIVE ────────────────────────────── */
   
  @media (max-width: 900px) {
   
    .nav {
      padding: 20px 24px;
    }
   
    .hero {
      padding: 60px 24px 80px;
    }
   
    .work {
      padding: 0 24px 140px;
    }
   
    .hero-statement h1 {
      font-size: 30px;
    }
   
    .key {
      width: 80px;
    }
   
    .letter {
      font-size: 20px;
    }
   
    .projects {
      grid-template-columns: 1fr;
    }
   
    .col,
    .col-wide,
    .case-hero {
      padding-left: 24px;
      padding-right: 24px;
    }
   
    .split {
      grid-template-columns: 1fr;
    }
   
    .outcome-grid {
      grid-template-columns: 1fr 1fr;
    }
   
    .case-meta {
      flex-wrap: wrap;
      gap: 24px;
    }
   
    .reflection {
      padding: 48px 28px;
    }
   
    .case-hero-card {
      height: 360px;
    }
   
  }

 /* ── PROJECT 2 ────────────────────────────── */
 
  .project-2 .full-img img {
    transform: scale(1.2);
  }

  .project-2 .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── PROJECT 3 ────────────────────────────── */
 

  .project-card:nth-child(3) img {
    object-fit: contain;
    height: 260px;
  }

  .project-card:nth-child(3) img {
    object-fit: contain;
    height: 260px;
    object-position: center center;
    margin-top: 110px;
  }
  
  .project-card:nth-child(3) .card-meta {
    padding-top: 40px;
  }

  .project-3 .case-hero {
    overflow: hidden;
    border-radius: 24px;
  }

  .project-3 .case-hero .bg-img {
    transform: scale(1.15);
    margin-left: 26px;
  }
  
  .project-3 .full-img {
    height: 420px;
    min-height: 420px;
  }

  .project-3-research {
    background: #D6AFA3;
  height: 420px;
  }
  
  .project-3-research .overlay {
    background: linear-gradient(to top, rgba(90, 50, 40, 0.9) 0%, transparent 85%);
  }

  .project-1-research {
    background: #D6AFA3;
    height: 420px;
  }
  
  .project-1-research .overlay {
    background: linear-gradient(to top, rgba(90, 50, 40, 0.9) 0%, transparent 85%);
  }
  
  .project-2-research {
    background: #D6AFA3;
    height: 420px;
  }
  
  .project-2-research .overlay {
    background: linear-gradient(to top, rgba(90, 50, 40, 0.9) 0%, transparent 85%);
  }