
  :root {
    /* Brand: magenta #A32E55, white, black (the same tokens as the landing page) */
    --brand: #a32e55; --bg: #ffffff; --surface: #f4f4f5; --ink: #0a0a0a; --muted: #5e5e63; --line: #e2e2e5;
    --accent: #a32e55; --accent-soft: rgba(163, 46, 85, .10);
    --gutter: clamp(20px, 4vw, 56px); --max: 1320px; --radius: 18px; --pill-w: 108px; --pill-h: 40px;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --bg: #0a0a0a; --surface: #161617; --ink: #ffffff; --muted: #a1a1a6; --line: #2a2a2d; --accent: #d0557f; --accent-soft: rgba(208, 85, 127, .16); }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  h1, h2 { font-weight: 500; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
  p { margin: 0; text-wrap: pretty; }
  .wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
  .mono { font: 400 11px "DM Mono", ui-monospace, monospace; letter-spacing: .26em; text-transform: uppercase; }

  /* the same menu as the landing page */
  .nav { position: fixed; inset: 0 0 auto; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .logo { display: block; line-height: 0; }
  .logo img { width: 44px; height: auto; border-radius: 6px; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); } }
  .nav-links { display: flex; align-items: baseline; gap: 44px; }
  .nav-links a { text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
  .nav-links a.nav-ism { font: italic 400 17px/1 "Playfair Display", Georgia, serif; letter-spacing: .01em; text-transform: none; }
  .nav-links a.nav-ism { display: inline-flex; align-items: center; gap: 8px; }
  .nav-new { font: 400 9px/1 "DM Mono", ui-monospace, monospace; font-style: normal; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; background: #A32E55; padding: 4px 7px 4px 8px; border-radius: 999px; }
  @media (min-width: 901px) { .nav-links a.nav-ism { margin-left: -20px; } }   /* sits closer to Publications */
  .nav-toggle { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 0; background: none; cursor: pointer; }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  /* the opener: the landing page's magenta sand, then a torn edge that spills grains into the page */
  .cs-hero { position: relative; min-height: 78dvh; display: grid; align-items: end; padding: 160px 0 120px; color: #fff; background: #a32e55; overflow: visible; isolation: isolate; }
  .cs-dunes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
  .cs-hero .mono { color: rgba(255, 255, 255, .8); }
  .cs-hero h1 { margin-top: 18px; font-size: clamp(56px, 9vw, 136px); line-height: .95; }
  .cs-hero p { margin-top: 24px; max-width: 40ch; font-size: clamp(19px, 1.6vw, 22px); color: rgba(255, 255, 255, .86); }
  .cs-edge { position: absolute; left: 0; bottom: -90px; width: 100%; height: 150px; pointer-events: none; z-index: 1; }

  footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
  footer .wrap { display: flex; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; color: var(--muted); font-size: 14px; line-height: 1.6; }
  footer .wrap span:last-child { max-width: 56ch; }


  /* the story: text in a readable column, pictures wider */
  .cs-meta { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 32px; color: rgba(255, 255, 255, .86); font-size: 15px; }
  .cs-meta b { display: block; font: 400 11px "DM Mono", ui-monospace, monospace; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
  .cs-body { padding-top: 140px; padding-bottom: 120px; }
  .cs-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .cs-body > .cs-wide { max-width: 1120px; }
  .cs-body h2 { margin-top: 88px; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
  .cs-body .cs-label { display: block; margin-top: 72px; color: var(--accent); }
  .cs-body .cs-label + h2 { margin-top: 14px; }
  .cs-body h3 { margin-top: 40px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
  .cs-body p { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--muted); white-space: pre-line; }
  .cs-body p.cs-lead { font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
  .cs-body h2 + p, .cs-body h3 + p { margin-top: 16px; }
  .cs-media { margin-top: 48px; margin-bottom: 8px; }
  .cs-media img, .cs-media video { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); display: block; }
  /* side-by-side pictures share one height and keep their whole shape: nothing is cropped, so no one loses a face */
  .cs-row { display: flex; gap: 20px; align-items: flex-start; }
  .cs-row img { min-width: 0; height: auto; }
  .cs-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
  .cs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .cs-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-top: 40px; }
  .cs-person { display: flex; align-items: center; gap: 14px; }
  .cs-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; }
  .cs-person strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
  .cs-person span { font-size: 13px; color: var(--muted); }
  .cs-back { display: flex; justify-content: space-between; gap: 16px; padding-top: 48px; margin-top: 120px; border-top: 1px solid var(--line); }
  .cs-back a { text-decoration: none; font-size: 15px; display: inline-flex; gap: 10px; align-items: center; }
  .cs-back a:hover { color: var(--accent); }

  @media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
      background: var(--bg); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 16px 0; font-size: 14px; }
    .cs-hero { min-height: 64dvh; padding: 128px 0 96px; }
    .cs-body { padding-top: 112px; padding-bottom: 80px; }
    .cs-body h2 { margin-top: 64px; }
    .cs-row { grid-template-columns: 1fr; }
    .cs-people { grid-template-columns: 1fr 1fr; }
  }

  /* the project brief: one summary line and a row of equal fact cells, same on every case study */
  .cs-body > .cs-brief { max-width: 1120px; margin-top: 0; }
  .cs-brief .cs-label { margin-top: 0; }
  .cs-summary { margin-top: 18px !important; max-width: 820px; font-size: clamp(22px, 2vw, 28px) !important; line-height: 1.4 !important; color: var(--ink) !important; letter-spacing: -0.01em; }
  .cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0 32px; margin: 40px 0 0; }
  .cs-facts > div { border-top: 1px solid var(--line); padding: 18px 0 22px; }
  .cs-facts dt { color: var(--accent); }
  .cs-facts dd { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
  .cs-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; height: 52px; padding: 0 24px; border-radius: 999px;
    background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; border: 1px solid var(--ink); transition: background-color .2s ease, color .2s ease; }
  .cs-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
  .cs-btn-ghost { background: transparent; color: var(--ink); }
  .cs-brief + * { margin-top: 96px; }

  /* linked project cards (Architecture) */
  .cs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; margin-top: 48px; }
  .cs-card { display: block; text-decoration: none; }
  .cs-card .cs-shot { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
  .cs-card .cs-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
  a.cs-card:hover .cs-shot img { transform: scale(1.04); }
  .cs-card h3 { margin-top: 18px; font-size: 22px; }
  .cs-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--accent); }
  span.cs-go.mono { color: var(--muted); font-size: 11px; }
  @media (max-width: 900px) {
    .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
    .cs-btn { min-width: 0; flex: 1 1 100%; }
  }
  @media (max-width: 600px) { .cs-cards { grid-template-columns: 1fr; } }

  /* long words and web addresses never push the page sideways */
  .cs-body, .cs-hero h1, .cs-hero p { overflow-wrap: anywhere; }
  @media (max-width: 600px) { .cs-hero h1 { font-size: clamp(36px, 11vw, 56px); line-height: 1; } }

  /* a picture on a white background gets a fine edge so it doesn't float */
  .cs-media img.cs-line, .cs-pair img.cs-line, .cs-shot.cs-line { border: 1px solid var(--line); }
  .cs-shot.cs-line img { object-fit: contain; background: #fff; }
  /* brief facts: each line stays on one line; longer ones take two cells */
  .cs-facts dd { white-space: nowrap; }
  .cs-facts > .cs-wide-fact { grid-column: span 2; }
  @media (max-width: 900px) { .cs-row { flex-direction: column; } .cs-row img { flex: none !important; width: 100%; } }
  @media (max-width: 600px) { .cs-facts dd { white-space: normal; } .cs-facts > .cs-wide-fact { grid-column: 1 / -1; } }

  .cs-facts > .cs-full-fact { grid-column: 1 / -1; }
  /* a client's live site, framed like a browser window */
  .cs-site a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s ease, transform .4s ease; }
  .cs-site a:hover { border-color: var(--accent); }
  .cs-site img { border-radius: 0 !important; }
  .cs-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .cs-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
  .cs-bar b { margin-left: 12px; font: 400 12px "DM Mono", ui-monospace, monospace; color: var(--muted); }
  .cs-site figcaption { margin-top: 14px; color: var(--muted); }

  /* project pages: two pictures side by side at one height, never cropped */
  .cs-pair { display: flex; gap: 20px; align-items: flex-start; margin-top: 48px; }
  .cs-pair figure { margin: 0; min-width: 0; }
  .cs-pair img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
  .cs-pair .cs-site img { border-radius: 0; }
  @media (max-width: 700px) { .cs-pair { flex-direction: column; } .cs-pair figure { flex: none !important; width: 100%; } }

  /* a private deck: a locked card in place of a picture */
  .cs-lock-in { aspect-ratio: var(--ar, 1.6); border-radius: var(--radius); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px;
    color: #fff; background: radial-gradient(circle at 50% 40%, rgba(163, 46, 85, .55), rgba(74, 17, 40, .3) 45%, transparent 75%), #0a0a0a; }
  .cs-lock-icon { color: #f6a0c0; }
  .cs-lock-in .mono { color: rgba(255, 255, 255, .7); }
  .cs-lock-in p { margin: 0; font-size: 22px; line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
  .cs-lock-in .cs-btn { margin-top: 8px; min-width: 220px; background: #fff; color: #0a0a0a; border-color: #fff; }
  .cs-lock-in .cs-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
  @media (max-width: 700px) { .cs-lock-in .cs-btn { min-width: 0; width: 100%; } }

  /* the brief's buttons sit beside the facts, level with them */
  .cs-brief-row { display: flex; align-items: flex-end; gap: 32px 40px; margin-top: 40px; }
  .cs-brief-row .cs-facts { flex: 1 1 auto; margin-top: 0; }
  .cs-brief-row .cs-links { flex: none; margin: 0 0 18px; flex-wrap: nowrap; }
  .cs-brief-row .cs-btn { min-width: 160px; height: 48px; padding: 0 22px; }
  @media (max-width: 1100px) { .cs-brief-row { flex-direction: column; align-items: stretch; } .cs-brief-row .cs-links { margin: 0; flex-wrap: wrap; } }
  @media (max-width: 900px) { .cs-brief-row .cs-btn { flex: 1 1 160px; } }

  .cs-brief-row { flex-wrap: wrap; }
  .cs-brief-row .cs-facts { flex: 1 1 600px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .cs-facts > .cs-wide-fact { grid-column: span 2; }
  @media (max-width: 600px) { .cs-brief-row .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  /* When the facts and buttons stack (tablet and phone), the facts take their natural height instead of a 600px flex basis */
  @media (max-width: 1100px) { .cs-brief-row .cs-facts { flex: none; } }
  /* Back links: a comfortable 44px tap height on touch screens */
  .cs-back { align-items: center; flex-wrap: wrap; }
  .cs-back a { min-height: 44px; }
  /* Long facts keep to one line on desktop but wrap on tablets, so nothing runs off the screen */
  @media (max-width: 1100px) { .cs-facts dd { white-space: normal; } }
  /* Tablets: facts sit in two even columns across the full width */
  @media (max-width: 1100px) and (min-width: 601px) { .cs-brief-row .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-facts > .cs-wide-fact { grid-column: auto; } .cs-facts > .cs-full-fact { grid-column: 1 / -1; } }
