/* Data^Impact — black page, oversized monospace, an exposed six-column grid.
   The logo's terminal grammar (>, ^, [ ], block cursor) is the whole visual language. */
:root {
  --bg: #000;
  --ink: #fff;
  --muted: #8f8f8f;          /* 6.6:1 on black */
  --line: rgba(255, 255, 255, .2);
  --paper: #fff;             /* inverted panels */
  --paper-ink: #000;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; background: var(--bg); }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 400 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul { padding: 0; list-style: none; }
.wrap { width: calc(100% - var(--gutter) * 2); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--bg); }
.skip-link:focus { left: 12px; }

/* The exposed grid: six columns, drawn over everything with difference blending
   so the lines read on black and on the white inverted panels alike */
.grid-lines {
  position: fixed; inset: 0 var(--gutter); z-index: 40; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,.13) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%;
  border-right: 1px solid rgba(255,255,255,.13);
  mix-blend-mode: difference;
}

/* Outlined type: drawn with a ring of white shadows around a black fill. -webkit-text-stroke traces
   every contour of the variable font, so overlapping contours left gaps (open letter bottoms on Windows). */
/* A tiny static subset of JetBrains Mono Light (only ^Impact) with overlapping contours merged,
   so the outline has no seams where strokes meet on Windows */
@font-face { font-family: 'DI Outline'; font-weight: 300; font-style: normal; font-display: block;
  src: url(data:font/woff2;base64,d09GMgABAAAAAAQAABAAAAAAB7wAAAOlAAI2BAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbIBwqBmA/U1RBVEwAZBEICoREg2kBNgIkAxILEgAEIAWEIAcgDAcbOQYAnoONmxgySJJsbLKdDqbt84Z4+P85676ftKdNZgFBswMkiWCB245QCywUsTGr1gJp4P6g9/aS3/qMD7KNCiCfTA/azhvICRrWitMRE/sfABd2/heW/c81+dsR3H9+YoeYqbXiWXk1yAQHWEX3fJwFfKAbmU23IRIBVHBLt88fuhuBDkCShEyoqgqBwmAbIHOI6mYokkNbAAKFscRQTn8L9tJMElYxweo8bUDk8kkNdAOAxefJsQ204QZI1Dl6mLloFoDXsBCT/f8/ygpCjvc/kMamaWC4fCHUJPSGYjT0RCjMIMCuo3QcWSjk+kMhspgM/Ca2AciEFN0BAiRk6I0l0FueFUB3i7CwUC+aT0Ia05aN1t100QXHHXWo4E4Roq2FoAa6A3W8wFcAckBIom21Y3C5YeyqBUu7lEZZKaKLIi/tbIzHqYmyjFPDRWN0cMnERGlzTCriivl548GJiKIx6OQbKtOZzjNSa0sujT8qiLEQE6NKR0dLK6Xysux2aVNycnXA66SzU/cOPB+DXx64sw5tyS8V12WvCI6TbzIt03lrQ0kLtJWyTslSuzTGIyuijItWpJOlpc2bSztKOk+dW3HkzKr2BHW88ji1izpWeYwCqK/3tVdX0a1N962mfzY9piDqi4l0U0t3zNu8tda3vfr1/bImj6HpniqnUJebQVl392n03e4z7gMTzHL3ZgJIW90qzGF3kIQHcEhyJjHnyjpjwFmAjyWwAueobTLF+eHd+cFHHJDpzFWuq5VX+b+tq/hXy64KCq0/8q7CjnvTy2nY+ucI0eSN9152KTrrNSb86ueLiAN3d32zl5FlZ8rLCLsVozxnPBgF4blVVHnjGerM6frTcwvmGjHPIQqaVz/aXXV/e5wUmhuXWN6dyaIAAmlKfnD6Ft230P6tiJV9ArwdvnYK8OHb6scws12dlqZpoCqB4Oo7aQODgPeAcJtE2gCdEgidcDSbFghqxumUsXWlhkzkdTwnxjDec0y6eoeZaX415jysGBhSsmpsYHlBR+w2zBRxHLvpiJNqdyx8C2ZLSdsqKyIkjMGmpd5dtuYsBO6xUgCjTBYtIimHrUZKUgpbvayUqAAfBpvHAEZYSlYOm1gYg5GWY6WiEhJhRTzAS8knJUGlUvm8VLsbyZfZ1X/1axsFhAyIo2VpKWlpaNhUKmOr06hQglaGBTkOb2Br1UID2qS4APneCgxaXIRPo5QEWhILaEd7hzIfR/vldQIAAA==) format('woff2'); }
.outline {
  font-family: 'DI Outline', var(--mono);
  color: var(--bg);
  text-shadow:
    1.2px 0 var(--ink), -1.2px 0 var(--ink), 0 1.2px var(--ink), 0 -1.2px var(--ink),
    .85px .85px var(--ink), -.85px .85px var(--ink), .85px -.85px var(--ink), -.85px -.85px var(--ink);
}

/* Logo pieces */
.prompt { color: var(--muted); }
.cursor { display: inline-block; width: .5ch; height: .55em; background: currentColor; vertical-align: baseline; margin-left: .15ch; }
@keyframes blink { 50% { opacity: 0; } }
.blink { animation: blink 1.1s steps(1) infinite; }
.brand { font-size: 17px; white-space: nowrap; }
.brand sup { font-size: .62em; vertical-align: .55em; line-height: 0; }

/* Header */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; }
nav { display: flex; gap: 0; font-size: 13px; }
nav a { position: relative; padding: 4px 18px; }
nav a::before { content: '>'; position: absolute; left: 4px; opacity: 0; transition: opacity .15s; }
nav a:hover::before, nav a:focus-visible::before { opacity: 1; }
.mobile-toggle { display: none; height: 36px; padding: 0 12px; background: none; color: var(--ink); border: 1px solid var(--ink); font: 13px var(--mono); cursor: pointer; }

/* Brackets for every command */
.button { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; font-size: 14px; border: 1px solid var(--ink); transition: background .15s, color .15s; }
.button::before { content: '[\00a0'; }
.button::after { content: '\00a0]'; }
.button.solid, .button:hover { background: var(--ink); color: var(--bg); }
.button.solid:hover { background: transparent; color: var(--ink); }

/* HERO — the wordmark is the layout */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100svh - 56px); display: flex; flex-direction: column; }
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-top, .hero-base { display: grid; grid-template-columns: repeat(6, 1fr); }
.hero-top { padding-top: 28px; }
.hero-top .label { grid-column: 1 / 3; font-size: 12px; color: var(--muted); padding-right: 16px; }
.term-lines { grid-column: 4 / 7; display: grid; gap: 4px; font-size: clamp(13px, 1.05vw, 16px); padding-left: 16px; }
.term-lines li { min-height: 1.65em; padding-left: 2ch; text-indent: -2ch; }
.term-lines li::before { content: '> '; color: var(--muted); }
.wordmark { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3vh 0; line-height: .82; white-space: nowrap; }
.wm-data { font-weight: 700; font-size: min(25vw, 40svh); letter-spacing: -.06em; margin-left: -.04em; }
.wm-data .prompt { font-weight: 300; letter-spacing: -.1em; margin-right: .08em; }
.wm-impact {
  align-self: flex-end; margin-top: -.08em;
  font-weight: 300; font-size: min(13.6vw, 22svh); letter-spacing: -.04em;
}
.wm-impact .caret { color: var(--ink); text-shadow: none; }
.wm-impact .cursor { background: var(--ink); width: .45ch; height: .62em; }
.hero-base { border-top: 1px solid var(--ink); padding: 18px 0 28px; align-items: start; background: var(--bg); box-shadow: 0 0 0 var(--gutter) var(--bg); clip-path: inset(0 calc(var(--gutter) * -1) -100vh); }
.hero-base .lab { grid-column: 1 / 3; font-size: 14px; }
.hero-base .intro { grid-column: 3 / 5; color: var(--muted); font-size: 13px; padding: 0 16px; max-width: 46ch; }
.hero-base .actions { grid-column: 5 / 7; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.hero-base .tag { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* Capability row: four equal columns on the grid */
.capabilities ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.capabilities li { padding: 28px 20px 30px; border-right: 1px solid var(--line); }
.capabilities li:last-child { border-right: 0; }
.capabilities strong { display: block; font-size: 16px; font-weight: 700; }
.capabilities strong::before { content: '> '; font-weight: 400; color: var(--muted); }
.capabilities span { font-size: 13px; color: var(--muted); padding-left: 2ch; }
.capabilities { border-bottom: 1px solid var(--line); }

/* Sections: one consistent header pattern — title left, summary right */
section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 0; align-items: end; margin-bottom: 56px; }
.head-title { grid-column: 1 / 4; padding-right: 32px; }
.head .label { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.head .label::before { content: '> '; }
.head h2 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; }
.head > p { grid-column: 4 / 7; color: var(--muted); max-width: 46ch; padding-left: 20px; }

/* What we do: four cells that invert on hover */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.service { display: flex; flex-direction: column; min-height: 320px; padding: 28px 20px 32px; border-right: 1px solid var(--line); transition: background .2s, color .2s; }
.service:last-child { border-right: 0; }
.service:hover { background: var(--paper); color: var(--paper-ink); }
.service:hover p { color: inherit; opacity: .7; }
.service svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; margin-bottom: auto; }
.service h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; margin: 40px 0 10px; }
.service p { color: var(--muted); font-size: 13px; }

/* How we work: four steps along a single rule, numbered because they are a sequence */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); counter-reset: none; }
.steps li { position: relative; padding: 28px 20px 8px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: ''; position: absolute; top: -5px; left: 20px; width: 9px; height: 9px; background: var(--ink); }
.steps .n { display: block; font-size: 12px; color: var(--muted); margin-bottom: 36px; }
.steps h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.steps li:last-child h3::before { content: '^'; font-weight: 300; }
.steps p { color: var(--muted); font-size: 13px; max-width: 32ch; }

/* Projects: an inverted white sheet with a black terminal inset */
/* Projects: numbered entries like a portfolio index — title bar, cover, then text beside a fact sheet.
   Each entry links to the live work. */
.projects { display: grid; gap: 72px; }
.project { border-top: 1px solid var(--ink); }
.project-head { display: grid; grid-template-columns: 1fr 5fr auto; align-items: center; gap: 0 20px; padding: 22px 0; }
.project-no { font-size: 14px; color: var(--muted); }
.project-no::before { content: 'Project '; }
.project-head h3 { font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.project-head h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.project-cover { position: relative; display: block; overflow: hidden; background: #000; aspect-ratio: 21 / 9; }
.project-cover svg, .project-cover img { position: absolute; inset: 41px 0 0 0; width: 100%; height: calc(100% - 41px); object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project-cover:hover svg, .project-cover:hover img { transform: scale(1.03); }
.project-path { position: absolute; z-index: 1; top: 0; left: 0; right: 0; padding: 11px 16px; font-size: 12px; color: #8f8f8f; background: #000; border-bottom: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-path::before { content: '\25CF\00a0\25CF\00a0\25CF\00a0\00a0\00a0'; color: #444; }
.project-body { display: grid; grid-template-columns: repeat(6, 1fr); padding-top: 32px; }
.project-text { grid-column: 1 / 4; padding-right: 40px; color: var(--muted); font-size: 14px; }
.project-text p + p { margin-top: 14px; }
.project-lead { color: var(--ink); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.02em; font-weight: 700; }
.project-note { font-size: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-facts { grid-column: 4 / 7; margin: 0; padding-left: 20px; font-size: 13px; }
.project-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.project-facts div:first-child { border-top: 1px solid var(--line); }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }

/* People */
.people-body { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.people-card { padding: 28px 20px 32px; min-height: 240px; display: flex; flex-direction: column; }
.people-card + .people-card { border-left: 1px solid var(--line); }
.people-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.people-card p { color: var(--muted); max-width: 46ch; font-size: 13px; }
.avatars { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.avatars span { width: 52px; height: 52px; border: 1px dashed var(--muted); display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.avatars span::before { content: '?'; }

/* Team: circular greyscale portraits on the grid */
.team { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.member { padding: 40px 20px 36px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.member:nth-child(3n) { border-right: 0; }
/* Portraits sit above the page grid lines (z-index over .grid-lines) */
.member-photo { position: relative; z-index: 41; display: block; width: min(180px, 70%); aspect-ratio: 1; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; background: var(--bg); color: #fff; }
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .4s var(--ease); }
.member-site { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; padding: 16px; background: rgba(0, 0, 0, .62); font-size: 12px; line-height: 1.3; text-align: center; opacity: 0; transition: opacity .2s; word-break: break-all; }
.member-site b { font-weight: 700; font-size: 13px; }
a.member-photo:hover .member-site, a.member-photo:focus-visible .member-site { opacity: 1; }
a.member-photo:hover img, a.member-photo:focus-visible img { transform: scale(1.06); }
a.member-photo:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.member-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.member-url { display: none; margin-top: 4px; font-size: 12px; color: var(--muted); }
@media (hover: none) { .member-url { display: block; } }
.member-role { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Contact */
.contact { border-bottom: 0; }
.contact h2 .cursor { width: .5ch; height: .72em; }
.contact-note { grid-column: 4 / 7; margin: 28px 0 0 20px; padding-top: 18px; border-top: 1px solid var(--ink); }
.contact-note strong { display: block; font-weight: 700; }
.contact-note small { color: var(--muted); font-size: 12px; }

/* Footer: the wordmark once more, edge to edge */
footer { padding: 40px 0 28px; }
.footer-row { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 13px; }
.footer-row nav { grid-column: 3 / 7; justify-content: flex-end; }
.footer-mark { margin: 48px 0 20px; font-weight: 700; font-size: 15.4vw; line-height: .8; letter-spacing: -.07em; white-space: nowrap; }
.footer-mark sup { font-size: .42em; font-weight: 300; vertical-align: .95em; line-height: 0; letter-spacing: -.04em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Everything below the hero sits on white; tokens flip so components invert with it */
.light {
  --bg: #fff; --ink: #000; --muted: #5c5c5c; --line: rgba(0, 0, 0, .16);
  --paper: #000; --paper-ink: #fff;
  background: var(--bg); color: var(--ink);
}
footer { border-top: 1px solid rgba(255, 255, 255, .2); }

/* Header turns white once the black hero has scrolled away */
header { transition: background .25s, color .25s, border-color .25s; }
header.on-light { background: rgba(255, 255, 255, .9); color: #000; border-bottom-color: rgba(0, 0, 0, .16); }
header.on-light .prompt { color: #5c5c5c; }
header.on-light .mobile-toggle { color: #000; border-color: #000; }
@media (max-width: 760px) { header.on-light nav { background: #fff; border-bottom-color: rgba(0, 0, 0, .16); } header.on-light nav a { border-bottom-color: rgba(0, 0, 0, .16); } }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .member:nth-child(3n) { border-right: 1px solid var(--line); }
  .member:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li { padding-bottom: 32px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .grid-lines { background-size: calc(100% / 3) 100%; }
  .nav { position: relative; }
  .mobile-toggle { display: block; }
  header nav { display: none; position: absolute; top: 56px; left: -20px; right: -20px; flex-direction: column; padding: 8px 20px 20px; background: #000; border-bottom: 1px solid var(--line); font-size: 22px; }
  header nav.open { display: flex; }
  header nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  header nav a::before { display: none; }
  .hero-top, .hero-base, .head, .footer-row { grid-template-columns: 1fr; }
  .hero-top .label { display: none; }
  .term-lines, .hero-base .intro, .head p { grid-column: auto; padding-left: 0; }
  .hero-base { row-gap: 18px; }
  .hero-base .lab, .hero-base .intro, .hero-base .actions { grid-column: auto; padding: 0; }
  .hero-base .actions { justify-content: stretch; }
  .hero-base .actions .button { flex: 1 1 100%; justify-content: center; }
  .wm-data { font-size: 27vw; }
  .wm-impact { font-size: 15vw; }
  .head-title, .head > p, .head .label, .head h2 { grid-column: auto; padding: 0; }
  .head { row-gap: 18px; }
  .capabilities ul { grid-template-columns: 1fr 1fr; }
  .capabilities li { padding: 20px 12px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-note { margin-left: 0; }
  section { padding: 80px 0; }
  .head { margin-bottom: 44px; }
  .services, .people-body, .steps, .team { grid-template-columns: 1fr; }
  .member { border-right: 0 !important; padding: 32px 0; }
  .member-photo { width: 150px; margin-bottom: 18px; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0 24px 0; }
  .steps li::before { left: 0; }
  .steps .n { margin-bottom: 12px; }
  .service { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service h3 { margin-top: 28px; }
  .people-card + .people-card { border-left: 0; border-top: 1px solid var(--line); }
  .project-head { grid-template-columns: 1fr; gap: 10px; }
  .project-open { justify-content: center; }
  .project-cover { aspect-ratio: 4 / 3; }
  .project-body { grid-template-columns: 1fr; row-gap: 28px; }
  .project-text, .project-facts { grid-column: auto; padding: 0; }
  .project-facts div { grid-template-columns: 96px 1fr; }
  .contact-note { grid-column: auto; padding-left: 0; }
  .footer-row nav { display: flex; flex-wrap: wrap; justify-content: flex-start; margin-top: 16px; }
  .footer-row nav a { padding: 4px 14px 4px 0; }
  .footer-row nav a::before { display: none; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .blink { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Multi-page additions ===== */
/* In-app browsers such as WeChat enlarge text with their own font-size setting; keep our sizes */
html, body { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }  /* body too: WeChat sets it inline on body */
nav a[aria-current="page"]::before { opacity: 1; }
/* Avatars: circular greyscale portraits, initials when there is no photo */
.authors { display: inline-flex; align-items: center; gap: 12px; }
.avatars-stack { display: inline-flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: #d9d9d9; color: #000; font-size: 14px; font-weight: 700; border: 2px solid var(--bg); flex: none; position: relative; z-index: 41; }
.avatar + .avatar { margin-left: -10px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.author-names { font-size: 13px; }

/* Project index rows */
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.plist li { border-bottom: 1px solid var(--line); }
.plist-row { display: grid; grid-template-columns: .8fr 1.5fr 3fr 1.2fr 1.6fr 32px; align-items: center; gap: 20px; padding: 26px 12px; transition: background .15s, color .15s; }
.plist-no { font-size: 13px; color: var(--muted); }
.plist-no::before { content: 'Project '; }
.plist-main { display: grid; gap: 6px; }
.plist-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.plist-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; filter: grayscale(1); transform: scale(1.06); transition: filter .4s, transform .5s var(--ease); }
.plist-row:hover .plist-thumb img { filter: none; transform: scale(1.1); }
.plist-title { font-size: clamp(22px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.plist-lead { font-size: 13px; color: var(--muted); }
.plist-type { font-size: 12px; color: var(--muted); line-height: 1.6; }
.plist-arrow { font-size: 22px; justify-self: end; transition: transform .2s; }
.plist-row:hover, .plist-row:focus-visible { background: var(--ink); color: var(--bg); }
.plist-row:hover .plist-no, .plist-row:hover .plist-lead, .plist-row:hover .plist-type { color: #a8a8a8; }
.plist-row:hover .avatar { border-color: var(--ink); }
.plist-row:hover .plist-arrow { transform: translateX(6px); }
.plist-more { margin-top: 28px; }

/* Shorter heroes on inner pages */
.hero-page { min-height: min(78svh, 760px); }
.hero-page .wm-data { font-size: min(17vw, 30svh); }
.hero-page .hero-top .label a:hover { color: var(--ink); text-decoration: underline; }
.hero-project { min-height: min(80svh, 780px); }
.project-title { flex: 1; display: flex; align-items: center; font-weight: 700; font-size: clamp(52px, 8.4vw, 150px); line-height: .92; letter-spacing: -.06em; padding: 4vh 0; }
.hero-project .hero-base .lab .author-names { color: var(--ink); font-size: 14px; }
.hero-project .avatar { border-color: #000; }

/* Project detail */
.project-detail { padding-top: 64px; }
.project-detail .project-cover { aspect-ratio: auto; padding-top: 41px; }
/* the screenshot has rounded-corner page background at its edges: trim ~10px all round */
.project-detail .project-cover img { position: static; width: calc(100% + 24px); max-width: none; margin: -9px -12px -10px; height: auto; filter: grayscale(1); transition: filter .5s, transform .6s var(--ease); }
.project-detail .project-cover:hover img { filter: none; transform: none; }
.project-open-row { margin-top: 24px; }
.project-facts .authors { gap: 10px; }
.project-pager { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--ink); font-size: 14px; }
.project-pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1080px) {
  .plist-row { grid-template-columns: .8fr 1.4fr 3fr 1.6fr 32px; }
  .plist-type { display: none; }
}
@media (max-width: 760px) {
  .plist-row { grid-template-columns: 1fr 24px; grid-template-areas: "no arrow" "thumb thumb" "main main" "auth auth"; gap: 12px; padding: 22px 0; }
  .plist-no { grid-area: no; } .plist-thumb { grid-area: thumb; } .plist-main { grid-area: main; } .authors { grid-area: auth; } .plist-arrow { grid-area: arrow; }
  .plist-row:hover { background: none; color: inherit; }
  .hero-page .wm-data { font-size: 19vw; }
  .project-title { font-size: 13vw; }
  /* phone fixes */
  .grid-lines { display: none; }                         /* column lines cut through text on a narrow screen */
  .hero-page .wm-data { font-size: 14.5vw; }               /* ">Projects" fits inside the screen */
  .plist-thumb { aspect-ratio: 1459 / 554; }               /* show the whole cover, not a cropped slice */
  .plist-thumb img { transform: none; object-position: center; }
  .capabilities ul { grid-template-columns: 1fr; }
  .capabilities li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
  .capabilities span { padding-left: 0; text-align: right; }
  .service { padding: 28px 0; }
  .service:hover { background: none; color: inherit; }
  .service svg { width: 44px; height: 44px; }
  .service h3 { margin-top: 20px; }
  .footer-row nav { grid-column: auto; }
}
