    /* ---------- Writing portfolio ---------- */
    .writing-intro { text-align: left; }
    /* Three figures in one even row, at every width */
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; max-width: 640px; }
    .stats div { border-top: 1px solid rgba(65, 28, 50, 0.18); padding-top: 12px; }
    .stats dt { font-family: var(--serif); font-size: 2rem; line-height: 1; }
    .stats dd { margin-top: 8px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-ink); }
    @media (min-width: 700px) { .stats { gap: 40px; } .stats dt { font-size: 2.6rem; } .stats dd { font-size: 12px; letter-spacing: 0.2em; } }

    .traits { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rosewood-ink); }
    .traits span + span::before { content: '·'; margin-right: 14px; color: var(--stone-ink); }

    /* Featured work: alternating picture and text */
    .features { display: grid; gap: 72px; margin-top: 44px; }
    .feature { display: grid; gap: 24px; align-items: center; }
    .feature-pic { display: block; overflow: hidden; background: #e8e2db; aspect-ratio: 4 / 3; }
    .feature-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
    .feature-pic:hover img { transform: scale(1.03); }
    .feature h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin-top: 8px; }
    .feature .body { margin-top: 12px; max-width: 30em; }
    .result-line { margin-top: 16px; font-family: var(--serif); font-size: 1.15rem; color: var(--rosewood-ink); }
    .feature .cta { margin-top: 20px; }

    /* Archive */
    .filters { margin-top: 28px; display: grid; gap: 18px; }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip { font: inherit; font-size: 13px; letter-spacing: 0.04em; padding: 9px 16px; border: 1px solid rgba(65, 28, 50, 0.25); background: transparent; color: var(--plum); cursor: pointer; transition: background 0.3s, color 0.3s; }
    .chip:hover { border-color: var(--plum); }
    .chip.on { background: var(--plum); color: var(--white); border-color: var(--plum); }
    .industry { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-ink); max-width: 360px; }
    .industry select { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--plum); padding: 10px 12px; border: 1px solid rgba(65, 28, 50, 0.25); background: var(--white); }
    .count { margin-top: 24px; font-size: 14px; color: var(--stone-ink); }
    .work-grid { display: grid; gap: 32px; margin-top: 20px; }
    .work-card { display: block; }
    .work-card[hidden] { display: none; }
    .work-pic { aspect-ratio: 4 / 3; overflow: hidden; background: #e8e2db; }
    .work-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
    .work-card:hover .work-pic img { transform: scale(1.03); }
    .work-card .eyebrow { margin-top: 14px; }
    .work-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin-top: 4px; }
    .work-card .traits { margin-top: 8px; }

    /* Kind words */
    .kinds { display: grid; gap: 20px; margin-top: 36px; }
    .kind { background: var(--white); padding: 28px; }
    .kind blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }
    .kind figcaption { margin-top: 16px; font-size: 13px; color: var(--stone-ink); }
    .writing-cta .cta-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 8px; }
    @media (max-width: 699px) { .writing-cta .cta-row { flex-direction: column; align-items: flex-start; gap: 20px; } .writing-cta .cta-row .cta { margin-top: 0; } }

    /* ---------- Case study ---------- */
    .case-hero { padding: 48px var(--gutter) 24px; }
    .case-hero-inner { display: grid; gap: 32px; max-width: 1200px; margin: 0 auto; }
    .case-hero .eyebrow a { border-bottom: 1px solid currentColor; }
    .case-hero h1 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.15; margin-top: 10px; }
    .case-hero .lede { margin-top: 16px; font-size: 1.1rem; max-width: 30em; }
    .case-cover { background: #e8e2db; aspect-ratio: 4 / 3; overflow: hidden; }
    .case-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

    .case-overview { display: grid; gap: 40px; }
    .facts { display: grid; gap: 0; align-self: start; }
    .facts div { padding: 14px 0; border-top: 1px solid rgba(65, 28, 50, 0.14); }
    .facts div:last-child { border-bottom: 1px solid rgba(65, 28, 50, 0.14); }
    .facts dt { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rosewood-ink); }
    .facts dd { margin-top: 4px; font-size: 15px; }
    .story { display: grid; gap: 32px; }
    .story-part h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
    .story-part .body { margin-top: 10px; }

    .deliverable { margin-top: 56px; }
    .deliverable h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: 16px; }
    .deliverable .note { margin: -8px 0 16px; font-size: 14px; color: var(--stone-ink); max-width: 40em; }
    /* A page capture sits in a browser frame you can scroll */
    .browser { background: #e9e4de; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(26, 8, 18, 0.45); max-width: 1000px; }
    .browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
    .browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfc6be; }
    .browser-view { max-height: 70vh; overflow-y: auto; background: var(--white); overscroll-behavior: contain; }
    .browser-view img { display: block; width: 100%; height: auto; }
    .view-full { display: inline-block; margin-top: 14px; font-size: 14px; }
    .plates { display: grid; gap: 16px; max-width: 1000px; }
    .plate { display: block; width: 100%; height: auto; box-shadow: 0 24px 50px -34px rgba(26, 8, 18, 0.45); }
    .doc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 20px; align-items: center; max-width: 560px; padding: 22px 24px; background: var(--white); border-left: 3px solid var(--rosewood); }
    .doc-mark { grid-row: 1 / 3; font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--rosewood-ink); }
    .doc-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
    .doc-go { font-size: 13px; color: var(--stone-ink); margin-top: 4px; }
    .doc:hover .doc-go { color: var(--plum); }
    .case-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }

    .case-result h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.25; max-width: 20em; }
    .case-quote blockquote { margin-top: 16px; max-width: 40em; font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; }
    .case-quote blockquote p + p { margin-top: 14px; }
    .case-quote .attribution { margin-top: 20px; font-size: 13px; letter-spacing: 0.08em; color: var(--rosewood-ink); }

    .case-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter); border-top: 1px solid rgba(65, 28, 50, 0.14); }
    .case-nav a { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
    .case-nav a span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rosewood-ink); margin-bottom: 4px; }
    .case-nav .all { font-family: var(--sans); font-size: 14px; border-bottom: 1px solid currentColor; }
    .case-nav .next { text-align: right; }

    @media (min-width: 700px) {
      .work-grid { grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 44px; }
      .kinds { grid-template-columns: repeat(2, 1fr); }
      .feature { grid-template-columns: 7fr 5fr; gap: 56px; }
      .feature.flip .feature-pic { order: 2; }
      .feature.flip { grid-template-columns: 5fr 7fr; }
      .case-hero { padding: 72px var(--gutter) 32px; }
      .case-hero-inner { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
      .case-hero h1 { font-size: 3rem; }
      .case-overview { grid-template-columns: 4fr 8fr; gap: 64px; }
    }
    @media (min-width: 1024px) {
      .work-grid { grid-template-columns: repeat(3, 1fr); }
      .features { gap: 104px; }
      .feature h3 { font-size: 2.3rem; }
      .kinds { grid-template-columns: repeat(3, 1fr); }
      .case-hero h1 { font-size: 3.4rem; }
    }

    /* Featured work: every other case study on a full-width white band, so each reads as its own chapter */
    .features { gap: 0; }
    .feature { padding: 56px 0; }
    .feature:nth-child(even) { background: var(--white); box-shadow: 0 0 0 100vmax var(--white); clip-path: inset(0 -100vmax); }
    .feature:first-child { padding-top: 8px; }
    @media (min-width: 1024px) { .feature { padding: 88px 0; } .feature:first-child { padding-top: 16px; } }
    .case-nav .mid { text-align: center; }
    @media (max-width: 699px) {
      .case-nav { grid-template-columns: 1fr; gap: 0; padding-top: 24px; padding-bottom: 24px; }
      .case-nav a { padding: 18px 0; border-bottom: 1px solid rgba(65, 28, 50, 0.1); }
      .case-nav a:last-child { border-bottom: 0; }
      .case-nav .mid, .case-nav .next { text-align: left; }
      .case-nav .all { justify-self: start; }
    }
    .kind, .browser-view { background-image: url(images/linen-light.svg); background-size: 360px 360px; }
    @media (min-width: 1024px) {
      .case-hero { padding-left: var(--edge); padding-right: var(--edge); }
      .case-hero-inner { max-width: none; }
    }
    @media (min-width: 1024px) { .case-hero { padding-left: var(--hero-edge, var(--edge)); } }
    /* Portfolio cards are 4:5 mockups */
    .work-pic { aspect-ratio: 4 / 5; }
    .work-pic img { object-position: center; }
    @media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(4, 1fr); column-gap: 24px; } }
    /* Archive: two rows, then "See more work" */
    .more-work { display: flex; align-items: center; gap: 12px; margin: 48px auto 0; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 6px 0 4px; font-family: var(--serif); font-size: 1.15rem; color: var(--plum); cursor: pointer; }
    .more-work .chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.4s var(--ease); }
    .more-work:hover .chev { transform: rotate(45deg) translate(2px, -1px); }
    .more-work:focus-visible { outline: 2px solid var(--rosewood); outline-offset: 4px; }

    /* Client love: one sage band, a slide per client */
    .love-head { padding-bottom: 0; }
    .love { margin-top: 90px; position: relative; }
    .love-inner { position: relative; }
    .love-slide { display: grid; }
    .love-slide[hidden] { display: none; }
    .love .feat-q blockquote { font-size: 1.3rem; }
    .love .mid .feat-q blockquote { font-size: 1.15rem; line-height: 1.55; }
    .love .long .feat-q blockquote { font-size: 1rem; line-height: 1.65; }
    .love .att { margin-top: 20px; font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe); }
    .love-link { display: inline-block; margin-top: 18px; font-family: var(--serif); color: var(--white); }
    .love-nav { display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter) 40px; color: var(--taupe); font-size: 13px; letter-spacing: 0.12em; }
    .love-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 239, 234, 0.4); background: none; cursor: pointer; display: grid; place-items: center; }
    .love-nav button span { width: 9px; height: 9px; border-left: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper); }
    .love-prev span { transform: translateX(2px) rotate(45deg); }
    .love-next span { transform: translateX(-2px) rotate(-135deg); }
    .love-nav button:hover { background: rgba(243, 239, 234, 0.12); }
    .love-nav button:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
    @media (min-width: 900px) {
      .love { margin-top: 140px; }
      .love-slide { grid-template-columns: 5fr 7fr; gap: 72px; }
      .love .feat-q { padding: 110px 0 120px; }
      .love .feat-q blockquote { font-size: 1.6rem; }
      .love .mid .feat-q blockquote { font-size: 1.3rem; }
      .love .long .feat-q blockquote { font-size: 1.08rem; }
      .love-nav { position: absolute; right: var(--edge); bottom: 44px; padding: 0; }
    }
    /* Client love scrolls sideways, one client per view */
    .love-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    .love-track::-webkit-scrollbar { display: none; }
    .love-track:focus-visible { outline: 2px solid var(--taupe); outline-offset: -4px; }
    .love-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 0 var(--gutter); box-sizing: border-box; }
    @media (min-width: 1024px) { .love-slide { padding: 0 var(--edge); } }
    .love .love-slide .feat-pic { margin-top: -60px; }
    @media (min-width: 900px) { .love .love-slide .feat-pic { margin: -80px 0 80px; } }
    .love { overflow: visible; }
    .love-track { padding-top: 80px; margin-top: -80px; }
    /* The band starts lower, so each site rises out of it (the scrolling track can't let it poke out) */
    .love { background: linear-gradient(to bottom, var(--paper) 0 60px, var(--sage) 60px); margin-top: 30px; }
    .love-track { padding-top: 0; margin-top: 0; }
    .love .love-slide .feat-pic { margin-top: 0; }
    @media (min-width: 900px) {
      .love { background: linear-gradient(to bottom, var(--paper) 0 90px, var(--sage) 90px); margin-top: 50px; }
      .love .love-slide .feat-pic { margin: 0 0 80px; }
    }
    /* Phones: each client's words sit straight under their site, not centred in the band */
    .love-slide { align-content: start; }
    .love .feat-q { align-self: start; }
    @media (min-width: 900px) { .love .feat-q { align-self: center; } .love-slide { align-content: center; } }
    .love .feat-q mark { color: inherit; background: linear-gradient(transparent 62%, rgba(198, 184, 172, 0.42) 62%); }
    /* The band fits the client in view, so short quotes don't leave a gap above the arrows */
    .love-track { align-items: flex-start; transition: height 0.4s var(--ease); }
    @media (prefers-reduced-motion: reduce) { .love-track { transition: none; } }
    .love-slide .feat-q { padding-bottom: 28px; }
    @media (min-width: 900px) { .love-slide .feat-q { padding-bottom: 120px; } }
    /* The client strip only moves sideways; vertical swipes scroll the page */
    .love-track { overflow-y: hidden; touch-action: pan-x pan-y; }
    /* In a case study the work is already shown above: the client's words sit alone on the sage band */
    .feat.quote-only { margin-top: 0; }
    .feat.quote-only .feat-inner { display: block; }
    .feat.quote-only .feat-q { max-width: 46em; padding: 72px var(--gutter); }
    @media (min-width: 900px) { .feat.quote-only .feat-q { padding: 110px 0; } }
    /* Case study quotes: centred, under a quotation mark between two hairlines */
    .feat.quote-only .feat-q { margin: 0 auto; text-align: center; }
    .feat.quote-only .feat-q blockquote p { margin-left: auto; margin-right: auto; }
    .quote-orn { color: rgba(243, 239, 234, 0.55); margin-bottom: 22px; }
    .quote-orn span { font-family: var(--serif); font-size: 3rem; line-height: 0.6; height: 22px; color: var(--taupe); display: block; padding-top: 8px; }
    .feat.quote-only mark { color: inherit; background: linear-gradient(transparent 62%, rgba(198, 184, 172, 0.42) 62%); }
    .quote-orn span { font-size: 4.4rem; height: 30px; padding-top: 14px; }
