  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #767676;
    --line: #e6e6e6;
    --tile: #f3f3f3;
    --chip: #f1f1f1;
    --gutter: 24px;
    --gap: 12px;
    --ease: cubic-bezier(.22, .61, .36, 1);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0b0b0b; --fg: #f2f2f2; --muted: #8d8d8d; --line: #262626; --tile: #161616; --chip: #1c1c1c;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0b0b0b; --fg: #f2f2f2; --muted: #8d8d8d; --line: #262626; --tile: #161616; --chip: #1c1c1c;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: 400; font-size: inherit; }
  ul { list-style: none; }
  .muted { color: var(--muted); }

  /* ---------- Header ---------- */
  .header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 18px var(--gutter);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: transform .5s var(--ease);
  }
  .header.is-hidden { transform: translateY(-100%); }
  .nav { display: flex; gap: 16px; }
  .nav a, .header .contact { position: relative; }
  .link-u::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .link-u:hover::after, .link-u[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .logo {
    font-weight: 500; letter-spacing: .02em; font-size: 13px; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
  }
  .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); display: inline-block; transition: transform .5s var(--ease); }
  .logo:hover .dot { transform: scale(1.6); }
  .header .contact { justify-self: end; }

  /* ---------- Intro ---------- */
  .intro {
    padding: 160px var(--gutter) 110px;
    text-align: center;
  }
  .intro h1 {
    font-size: 16px; line-height: 1.2; color: var(--muted);
    max-width: 440px; margin: 0 auto;
  }
  .intro .avail {
    margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--fg);
  }
  .intro .avail i { width: 6px; height: 6px; border-radius: 50%; background: #1fb85b; box-shadow: 0 0 0 0 rgba(31,184,91,.5); animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,184,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,184,91,0); } }

  /* ---------- Project cards ---------- */
  .grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 56px var(--gap);
    padding: 0 var(--gutter);
  }
  .card { display: block; }
  .card .media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile);
  }
  .card .media > * {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity .6s var(--ease), transform 1.4s var(--ease);
  }
  .card .media > .is-active { opacity: 1; transform: scale(1); }
  .card .bars { display: flex; gap: 4px; margin-top: 10px; height: 2px; }
  .card .bars span { flex: 1; background: var(--line); position: relative; overflow: hidden; }
  .card .bars span::after {
    content: ""; position: absolute; inset: 0; background: var(--fg);
    transform: scaleX(0); transform-origin: left;
  }
  .card .bars span.done::after { transform: scaleX(1); }
  .card .bars span.run::after { transform: scaleX(1); transition: transform var(--dur, 1.6s) linear; }
  .card h3 { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
  .card h3 .arrow { opacity: 0; transform: translateX(-6px); transition: all .4s var(--ease); }
  .card:hover h3 .arrow { opacity: 1; transform: none; }
  .card ul { margin-top: 12px; color: var(--muted); }
  .card .desc { margin-top: 8px; color: var(--muted); max-width: 400px; }
  .card .tags { margin-top: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .other-work { border-top: 1px solid var(--line); padding-top: 14px; align-self: start; }
  .other-work h3 { margin-bottom: 18px; }
  .other-work li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .meta.proof { margin-bottom: 90px; }
  .wide-stats { max-width: 360px; }
  .wide-stats dd { color: var(--muted); }
  .row .mid .xp { list-style: none; margin: 0; padding: 0; color: inherit; }

  /* ---------- Detail rows ---------- */
  .details { margin-top: 220px; }
  .row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
    padding: 0 var(--gutter); margin-bottom: 200px;
    scroll-margin-top: 90px;
  }
  .row > * { min-width: 0; }
  .row .sticky { position: sticky; top: 90px; align-self: start; }
  .row .mid ul { color: var(--muted); }
  .row .mid ul a:hover { color: var(--fg); }
  .thumbs { display: flex; gap: 10px; margin-top: 28px; align-items: flex-start; flex-wrap: wrap; }
  .thumbs figure { margin: 0; overflow: hidden; background: var(--tile); cursor: zoom-in; }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
  .thumbs figure:hover img { transform: scale(1.06); }
  .t-sq { width: 90px; height: 90px; }
  .t-tall { width: 90px; height: 150px; }
  .t-wide { width: 120px; height: 80px; }
  .row .copy h3 { margin-bottom: 10px; }
  .row .copy p { color: var(--muted); max-width: 400px; }
  .row .copy p + p { margin-top: 12px; }
  .row .copy .more { display: inline-block; margin-top: 18px; position: relative; }
  .stats { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; column-gap: 24px; max-width: 280px; }
  .stats dt { color: var(--muted); }
  .stats dd { margin: 0; text-align: right; }
  .articles li + li { margin-top: 18px; }
  .articles a { display: block; }
  .articles .src { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .articles a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
  .logos { display: flex; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); max-width: 360px; margin-top: 14px; }
  .logos span:not(:last-child)::after { content: ","; }

  /* ---------- Contact ---------- */
  .contact-block {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
    padding: 80px var(--gutter) 200px;
  }
  .contact-block .col { display: flex; flex-direction: column; gap: 12px; }
  .contact-block .col:nth-child(3) { text-align: right; align-items: flex-end; }
  .contact-block address { font-style: normal; color: var(--muted); line-height: 1.3; }
  .chip {
    display: inline-block; padding: 3px 7px; background: var(--chip); border-radius: 3px;
    transition: background .3s, color .3s; width: fit-content;
  }
  .chip:hover { background: var(--fg); color: var(--bg); }
  .contact-block .mid { text-align: center; color: var(--muted); align-self: center; }
  .contact-block .mid a.big { color: var(--fg); font-size: 16px; display: inline-block; margin-top: 6px; position: relative; }

  /* ---------- Footer ---------- */
  .footer {
    display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: end;
    padding: 0 var(--gutter) 24px;
  }
  .wordmark { display: flex; align-items: flex-start; gap: 10px; }
  .wordmark b { font-weight: 400; font-size: clamp(56px, 7.4vw, 108px); line-height: .78; letter-spacing: -.04em; }
  .wordmark small { font-size: 11px; color: var(--muted); }
  .f-cols { display: flex; gap: 32px; color: var(--muted); flex-wrap: wrap; }
  .f-cols ul li a:hover { color: var(--fg); }
  .f-right { display: flex; gap: 22px; align-items: center; white-space: nowrap; }
  .f-right .soc { display: flex; gap: 8px; }
  .f-right .soc a:hover { color: var(--muted); }
  .theme-btn {
    font: inherit; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer;
  }
  .theme-btn:hover { color: var(--fg); }

  /* ---------- Lightbox ---------- */
  .lightbox {
    position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 94%, transparent);
    display: grid; place-items: center; padding: 40px var(--gutter);
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); cursor: zoom-out;
  }
  .lightbox.open { opacity: 1; pointer-events: auto; }
  .lightbox img { max-height: 86vh; width: auto; transform: scale(.96); transition: transform .5s var(--ease); }
  .lightbox.open img { transform: none; }
  .lightbox .cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); }


  /* ---------- Experience rows ---------- */
  .row h2 .sub { display: block; margin-top: 4px; }
  .row .mid li.fg { color: var(--fg); }
  .metric { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
  .metric b { font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.03em; }
  .metric-list { margin-top: 28px; }
  .metric-list li::before { content: "— "; }

  /* ---------- Page intro (About, case study) ---------- */
  .back { display: inline-block; margin-bottom: 26px; color: var(--muted); position: relative; }
  .back:hover { color: var(--fg); }
  .intro .title { color: var(--fg); font-size: 16px; margin-bottom: 6px; }

  /* ---------- Meta strip ---------- */
  .meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
    padding: 14px var(--gutter) 0; margin-bottom: 140px;
  }
  .meta > div { border-top: 1px solid var(--line); padding-top: 12px; }
  .meta dt { color: var(--muted); margin-bottom: 4px; }
  .meta dd { margin: 0; }
  .meta dd + dt { margin-top: 12px; }

  /* ---------- Media blocks ---------- */
  .full { padding: 0 var(--gutter); }
  .full img, .duo img, .trio img { width: 100%; height: 100%; object-fit: cover; background: var(--tile); }
  .full figure, .duo figure, .trio figure { margin: 0; overflow: hidden; background: var(--tile); }
  [data-zoom] img { cursor: zoom-in; transition: transform 1.2s var(--ease); }
  [data-zoom] figure:hover img { transform: scale(1.02); }
  .full img { height: auto; }
  .full.hero figure { aspect-ratio: 1594 / 1020; max-height: 92vh; }
  .duo, .trio { display: grid; gap: var(--gap); padding: 0 var(--gutter); }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo figure { aspect-ratio: 16 / 10; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio figure { aspect-ratio: 3 / 4; }
  .media-gap { height: var(--gap); }
  figcaption { color: var(--muted); padding-top: 10px; background: var(--bg); }
  .block { margin-bottom: 200px; }

  /* ---------- Case study copy rows ---------- */
  .row .copy blockquote { margin: 0 0 12px; color: var(--fg); }
  .swatches { display: flex; gap: 10px; margin-top: 28px; }
  .swatches span { width: 90px; }
  .swatches i { display: block; height: 90px; margin-bottom: 8px; }
  .results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 0 var(--gutter); margin-bottom: 200px; }
  .results > div { border-top: 1px solid var(--line); padding-top: 12px; }
  .results b { display: block; font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; margin: 22px 0 10px; }
  .results p { color: var(--muted); max-width: 300px; }

  /* ---------- Next project ---------- */
  .next { padding: 0 var(--gutter); margin-bottom: 120px; }
  .next a { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: end; }
  .next figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); grid-column: 2; }
  .next img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .next a:hover img { transform: scale(1.04); }
  .next .lbl { color: var(--muted); }
  .next .nm { text-align: right; }

  /* ---------- About page ---------- */
  .portrait { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 14px; }
  .portrait figure { margin: 0; grid-column: 2; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; }
  .xp li { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 12px 0; border-top: 1px solid var(--line); }
  .xp li:last-child { border-bottom: 1px solid var(--line); }
  .xp .co { color: var(--fg); }
  .xp .loc { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
  .xp p { grid-column: 1 / -1; color: var(--muted); }
  .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gap); }
  .cols2 h4 { margin: 0 0 6px; font-weight: 400; color: var(--fg); }
  .cols2 ul { color: var(--muted); }
  .pairs li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--line); }
  .pairs li:last-child { border-bottom: 1px solid var(--line); }
  .pairs li span:last-child { color: var(--muted); text-align: right; }

  @media (max-width: 960px) {
    .meta, .results { grid-template-columns: 1fr 1fr; }
    .trio { grid-template-columns: 1fr 1fr; }
    .portrait figure { grid-column: 1 / span 2; }
  }
  @media (max-width: 640px) {
    .meta, .results { grid-template-columns: 1fr; margin-bottom: 90px; }
    .duo, .trio { grid-template-columns: 1fr; }
    .block { margin-bottom: 100px; }
    .next a { grid-template-columns: 1fr; }
    .next figure { grid-column: auto; }
    .next .nm { text-align: left; }
    .portrait { grid-template-columns: 1fr; }
    .portrait figure { grid-column: auto; }
  }


  /* ---------- Wide rows (About): label + content spanning two columns ---------- */
  .row.wide > .content { grid-column: 2 / span 2; min-width: 0; }
  .row .content h3 { margin-bottom: 10px; }
  .row .content p { color: var(--muted); }
  .row .content p + p { margin-top: 12px; }
  .row .content .fg, .fg { color: var(--fg); }

  .photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
  .photo-grid figure { margin: 0; aspect-ratio: 247 / 147; overflow: hidden; background: var(--tile); }
  .photo-grid img { width: 100%; height: 100%; object-fit: cover; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 56px; }
  .two-col > div { max-width: 440px; }

  /* Collage */
  .collage { position: relative; height: clamp(420px, 44vw, 640px); touch-action: pan-y; overflow-x: clip; }
  .collage img {
    position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto;
    transform: rotate(var(--r)); cursor: grab; user-select: none; -webkit-user-drag: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .4s var(--ease), box-shadow .4s;
  }
  .collage img:hover { transform: rotate(0deg) scale(1.03); }
  .collage img.dragging { cursor: grabbing; transform: rotate(0deg) scale(1.06); box-shadow: 0 18px 40px rgba(0,0,0,.18); transition: none; }
  .hint { margin-top: 18px; text-align: center; }
  @media (hover: none) { .hint { display: none; } }

  /* Experience cards */
  .xp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px var(--gap); }
  .xp-card .tile { aspect-ratio: 193 / 230; background: var(--tile); display: grid; place-items: center; padding: 20%; margin-bottom: 12px; transition: background .4s; }
  .xp-card:hover .tile { background: var(--chip); }
  .xp-card .tile img { max-height: 48px; width: auto; object-fit: contain; }
  :root[data-theme="dark"] .xp-card .tile img { filter: invert(1) grayscale(1); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .xp-card .tile img { filter: invert(1) grayscale(1); } }
  .xp-card .word { font-size: 18px; letter-spacing: -.01em; text-align: center; }
  .xp-card h3 { margin: 0 0 2px !important; }
  .xp-card .desc { margin-top: 10px; font-size: 13px; }
  .bring { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 56px; }
  .bring > div { border-top: 1px solid var(--line); padding-top: 12px; }
  .bring h3 { margin-bottom: 4px !important; }

  .bring.rec { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .bring.rec h3 { margin: 4px 0 6px !important; }
  .rec-photos { margin-bottom: 0; }
  @media (max-width: 640px) { .bring.rec { grid-template-columns: 1fr; } }

  /* Index */
  .index { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .index h3 { margin-bottom: 12px; }
  .index li { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; color: var(--muted); cursor: default; transition: color .2s; }
  .index li:hover, .index li a:hover { color: var(--fg); }
  .index li span:last-child { text-align: right; }
  .preview {
    position: fixed; z-index: 60; left: 0; top: 0; width: 220px; pointer-events: none;
    opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .25s, transform .35s var(--ease);
    background: var(--tile);
  }
  .preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .preview img { width: 100%; height: auto; max-height: 260px; object-fit: contain; }

  /* Marquee */
  .marquee { overflow: hidden; margin: 40px 0 120px; }
  .marquee .track { display: flex; gap: 8px; width: max-content; animation: marquee 50s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  .marquee figure { margin: 0; width: clamp(200px, 24vw, 343px); aspect-ratio: 343 / 457; overflow: hidden; background: var(--tile); flex: none; }
  .marquee img { width: 100%; height: 100%; object-fit: cover; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }

  /* ---------- Case study (sidebar + media column) ---------- */
  .cs { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; padding: 100px var(--gutter) 0; align-items: start; }
  .cs-side { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 8px; scrollbar-width: none; }
  .cs-side::-webkit-scrollbar { display: none; }
  .cs-side .back { margin-bottom: 22px; }
  .cs-side details { border-top: 1px solid var(--line); }
  .cs-side details:last-of-type { border-bottom: 1px solid var(--line); }
  .cs-side summary { list-style: none; cursor: pointer; padding: 10px 0; display: flex; gap: 8px; }
  .cs-side summary::-webkit-details-marker { display: none; }
  .cs-side summary::before { content: "+"; width: 10px; transition: transform .3s var(--ease); }
  .cs-side details[open] summary::before { transform: rotate(45deg); }
  .cs-side .acc { padding: 2px 0 18px 18px; }
  .cs-side h1 { font-size: 14px; margin-bottom: 8px; }
  .cs-side p { color: var(--muted); }
  .cs-side p + p { margin-top: 12px; }
  .credits dt { color: var(--muted); }
  .credits dd { margin: 0 0 10px; }
  .cats { color: var(--muted); }
  .cs-side .site { margin-top: 18px; }
  .cs-media { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .cs-media figure { margin: 0; }
  .cs-media img, .cs-media video { display: block; width: 100%; height: auto; background: var(--tile); }
  .cs-media figcaption { font-size: 12px; padding-top: 8px; background: none; }
  .cs-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-media .pair img, .cs-media .pair video { aspect-ratio: 3 / 2; object-fit: cover; }
  .cs-lede { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; max-width: 820px; margin: 0 0 28px; }
  .cs-text { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 110px 0 28px; scroll-margin-top: 60px; }
  .cs-text .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 8px; }
  .cs-text h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; max-width: 640px; }
  .cs-text p { max-width: 600px; }
  .cs-text p + p { margin-top: 12px; }
  .toc { list-style: none; padding: 0; margin: 0; color: var(--muted); }
  .toc li { margin: 3px 0; }
  .toc a:hover { color: var(--fg); }
  .cs-title { font-size: clamp(64px, 12vw, 190px); line-height: .8; letter-spacing: -.05em; margin: 0 0 18px; font-weight: 400; }
  .cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .cs-stats > div { border-top: 1px solid var(--line); padding-top: 12px; }
  .cs-stats b { display: block; font-weight: 400; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.04em; line-height: 1; margin-top: 18px; }
  .cs-snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 28px 0 0; }
  .cs-snapshot > div { border-top: 1px solid var(--line); padding-top: 10px; }
  .cs-snapshot dt { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
  .cs-snapshot dd { margin: 0; }
  .more-projects { padding: 180px var(--gutter) 120px; }
  .more-projects h2 { margin-bottom: 20px; }
  .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .more-grid figure { margin: 0 0 12px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
  .more-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .more-grid a:hover img { transform: scale(1.04); }
  .more-grid h3 { margin-bottom: 4px; }
  .more-grid p { font-size: 13px; max-width: 300px; }

  @media (max-width: 960px) {
    .row.wide > .content { grid-column: 2; }
    .photo-grid, .xp-cards, .bring { grid-template-columns: repeat(2, 1fr); }
    .index { grid-template-columns: 1fr 1fr; }
      .cs { grid-template-columns: 1fr 2fr; }
    .more-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  }
  @media (max-width: 640px) {
    .row.wide > .content { grid-column: auto; }
    .two-col, .index { grid-template-columns: 1fr; row-gap: 40px; }
    .collage { height: 340px; }
    .collage img { width: calc(var(--w) * 1.7); }
    .cs { grid-template-columns: 1fr; padding-top: 90px; }
    .cs-side { position: static; max-height: none; overflow: visible; }
    .cs-media .pair { grid-template-columns: 1fr; }
    .cs-media .pair img, .cs-media .pair video { aspect-ratio: 4 / 3; }
    .cs-text { grid-template-columns: 1fr; gap: 8px; padding-top: 72px; }
    .more-projects { padding-top: 100px; }
    .more-grid { grid-template-columns: 1fr; }
    .preview { display: none; }
  }

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .card .media > * { transition: none; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .row { grid-template-columns: 1fr 1fr; margin-bottom: 140px; }
    .row .copy { grid-column: 2; }
    .row .mid { grid-column: 2; }
    .row > .sticky:first-child { grid-row: span 2; }
  }
  @media (max-width: 640px) {
    :root { --gutter: 16px; }
    .header { grid-template-columns: 1fr auto; }
    .nav { display: none; }
    .logo { justify-self: start; }
    .intro { padding: 130px var(--gutter) 70px; }
    .grid { grid-template-columns: 1fr; gap: 40px; }
    .details { margin-top: 130px; }
    .row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 100px; }
    .row .sticky { position: static; }
    .row .copy, .row .mid { grid-column: auto; }
    .row > .sticky:first-child { grid-row: auto; font-weight: 500; }
    .contact-block { grid-template-columns: 1fr; gap: 40px; padding-bottom: 100px; }
    .contact-block .col:nth-child(3) { text-align: left; align-items: flex-start; }
    .contact-block .mid { text-align: left; order: -1; }
    .footer { grid-template-columns: 1fr; gap: 28px; }
    .f-right { flex-wrap: wrap; white-space: normal; }
  }
