.work-masthead { height: auto; padding: 100px var(--work-gutter) 0; }
.work-masthead p { font-size: clamp(60px, 12vw, 190px); letter-spacing: -.025em; line-height: 1.05; transform: none; animation: none; -webkit-text-stroke: 0; }
.work-editorial { margin-top: 44px; padding: 0 var(--work-gutter) 100px; }
.work-editorial-categories { display: flex; gap: 36px; margin-bottom: 36px; }
.work-editorial-categories button { padding: 0 0 10px; color: #999b94; background: none; border: 0; border-bottom: 1px solid transparent; font: inherit; font-size: 18px; cursor: pointer; }
.work-editorial-categories button[aria-pressed="true"] { color: var(--work-green); border-bottom-color: var(--work-green); }
.work-editorial-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 30px 0; border-top: 1px solid #3a3c36; color: #fff; text-decoration: none; }
.work-editorial-media { aspect-ratio: 16/9; overflow: hidden; }
.work-editorial-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
a.work-editorial-row:hover img { transform: scale(1.025); }
.work-editorial-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-right: 34px; }
.work-editorial-number { color: var(--work-green); font-size: 13px; margin-bottom: 16px; }
.work-editorial-title { margin: 0 0 18px; font-size: clamp(23px, 2.4vw, 38px); font-weight: 500; line-height: 1.35; }
.work-editorial-summary { margin: 0 0 22px; color: #b9bab5; font-size: 16px; line-height: 1.8; max-width: 44ch; }
.work-editorial-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .42em; margin: 0 0 24px; color: #a9aba4; font-size: 13px; }
.work-editorial-tag-separator { flex: 0 0 .18em; height: .18em; border-radius: 50%; background: currentColor; }
.work-editorial-meta { margin: auto 0 0; padding-top: 12px; color: #a9aba4; font-size: 13px; }
.work-editorial-action { position: absolute; right: 0; top: 32px; font-size: 28px; }
article .work-editorial-action { position: static; margin-top: 12px; font-size: 12px; color: #8c8e87; }
a.work-editorial-row:focus-visible { outline: 2px solid var(--work-green); outline-offset: 8px; }

@media (prefers-reduced-motion: reduce) { .work-editorial-media img { transition: none; } }

/* Card directory with the original full-width masthead. */
.work-masthead { padding: 100px 52px 0; }
.work-masthead p { font-size: clamp(108px, calc(13.56vw - 14.1px), 330px); letter-spacing: .015em; line-height: 1; -webkit-text-stroke: 2px currentColor; }
[data-editorial-list] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 80px 28px; }
.work-editorial-row { display: flex; flex-direction: column; gap: 24px; padding: 0; border: 0; min-width: 0; }
.work-editorial-copy { flex: 1; padding-right: 26px; }
.work-editorial-title { font-size: clamp(23px, 2vw, 30px); }
.work-editorial-summary { font-size: 15px; margin-bottom: 16px; }
.work-editorial-tags { margin-bottom: 16px; }
.work-editorial-meta { font-size: 12px; }
.work-editorial-action { font-size: 23px; top: 30px; }
@media (max-width: 1150px) {
  [data-editorial-list] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.work-editorial-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; min-height: 18px; }
.work-editorial-heading .work-editorial-number,
.work-editorial-heading .work-editorial-tags { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.5; }
.work-editorial-title { font-size: 26px; font-weight: 500; line-height: 1.35; min-height: 0; margin-bottom: 22px; }
.work-editorial-summary { font-size: 15px; font-weight: 400; line-height: 1.85; min-height: 5.1em; margin-bottom: 28px; }
.work-editorial-meta { font-size: 12px; font-weight: 400; }
.work-editorial-action { top: 30px; }

.work-editorial-copy { padding-right: 0; width: 100%; }
.work-editorial-title { font-weight: 700; padding-right: 30px; }
.work-editorial-summary { width: 100%; max-width: none; }

[data-editorial-list] { grid-template-columns: repeat(3, minmax(0, 400px)); justify-content: space-between; column-gap: 36px; }
@media (max-width: 1150px) {
  [data-editorial-list] { grid-template-columns: repeat(2, minmax(0, 400px)); }
}


[data-editorial-list] { grid-template-columns: repeat(2, minmax(0, 700px)); }
@media (min-width: 2300px) {
  [data-editorial-list] { grid-template-columns: repeat(3, minmax(0, 700px)); }
}


[data-editorial-list] { grid-template-columns: repeat(3, minmax(0, 550px)); }


.work-editorial-action { position: static; display: inline-flex; align-items: center; align-self: flex-start; margin: 0 0 24px; padding: 10px 16px; border: 1px solid #777b70; font-size: 14px; line-height: 1.4; color: #fff; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
a .work-editorial-action:hover,
a.work-editorial-row:focus-visible .work-editorial-action { background: var(--work-green); border-color: var(--work-green); color: #111210; transform: translateY(-2px); }
article .work-editorial-action { margin: 0 0 24px; padding: 10px 0; border-color: transparent; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .work-editorial-action { transition: none; transform: none; } }

.work-editorial-action { align-self: flex-end; border: 0; padding: 8px 0; background: transparent; }
a .work-editorial-action:hover,
a.work-editorial-row:focus-visible .work-editorial-action { background: transparent; color: var(--work-green); transform: translateX(3px); }
article .work-editorial-action { border: 0; padding: 8px 0; }
.work-editorial-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; padding-top: 12px; }
.work-editorial-footer .work-editorial-meta { margin: 0; padding: 0; }
.work-editorial-footer .work-editorial-action { position: static; flex-shrink: 0; align-self: auto; margin: 0; }

/* Readable directory typography, with quieter but legible supporting information. */
.work-editorial-heading .work-editorial-number,
.work-editorial-heading .work-editorial-tags{font-size:14px;}
.work-editorial-title{font-size:28px;line-height:1.4;}
.work-editorial-summary{font-size:17px;line-height:1.85;}
.work-editorial-footer .work-editorial-meta{font-size:14px;line-height:1.6;}
.work-editorial-footer .work-editorial-action{font-size:15px;}

/* Recover a little title space while preserving the shared directory typography. */
.work-editorial-row[href="https://byhaocheng.com/zh/projects/ai-agent-lead-stratification/"] .work-editorial-title{padding-right:0;letter-spacing:-.04em;}

/* The directory uses available space rather than a minimum desktop canvas. */
[data-editorial-list]{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:48px;row-gap:100px;}
.work-editorial-title{font-size:clamp(24px,2.083333vw,30px);font-weight:800;}
.work-editorial-row[href="https://byhaocheng.com/zh/projects/toparts/"] .work-editorial-title,
.work-editorial-title__latin{font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-weight:700;}
.work-editorial-summary{font-size:clamp(15px,1.18vw,17px);}
@media(max-width:800px){
 .work-editorial{padding-inline:var(--work-gutter); }
 .work-masthead{height:auto;padding:140px var(--work-gutter) 32px;}
 .work-masthead p{font-size:13vw;}
 .work-editorial-categories{gap:20px;flex-wrap:wrap;}
 .work-editorial-categories button{font-size:16px;}
}

/* The approved outside gutter is fixed in visible pixels, independent of height scaling. */
:root{--work-gutter:var(--portfolio-fixed-gutter,52px);}
.work-masthead{padding-inline:var(--work-gutter);}

/* One entrance sequence; transforms never change the directory geometry. */
.work-masthead p{animation:none;}
[data-work-enter="pending"]{opacity:0;}
@media(prefers-reduced-motion:reduce){[data-work-enter]{opacity:1!important;translate:none!important;}}

.work-editorial-title:has(+ .work-editorial-project-title){margin-bottom:3px;}
.work-editorial-project-title{margin:0 0 14px;color:#dedbd2;font:italic 17px/1.4 Georgia,serif;}
