/* Editorial project collection; original explanatory diagrams are styled separately. */
body .projects-section { padding: 120px 0 90px; background: var(--bg); border-top: 1px solid var(--line); }
.projects-section .section-heading { align-items: end; margin-bottom: 56px; }
.projects-section .section-heading h2 { max-width: 700px; }
.project-collection { display: grid; gap: 36px; }
.project-feature { display: grid; grid-template-columns: 46% 54%; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--section-soft); min-height: 570px; isolation: isolate; }
.project-copy { padding: 44px 42px 34px; display: flex; flex-direction: column; align-items: flex-start; }
.project-brand { width: 100%; height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.project-brand > span { align-self: flex-start; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 8px; }
.project-logo { display: block; max-width: 68%; object-fit: contain; object-position: left; }
.sias-mark { width: 68px; height: 75px; }
.cathay-mark { width: 163px; height: 40px; }
body[data-home-mode="work"] .project-logo { filter: brightness(0) invert(1); }
body[data-home-mode="work"] .sias-mark { filter: url(#project-sias-white); }
.project-category { font-size: 10px; font-weight: 600; letter-spacing: .13em; color: var(--accent); margin: 0 0 17px; }
.project-copy h3 { font-size: clamp(28px, 3.1vw, 43px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; margin: 0 0 20px; }
.project-summary { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 25px; max-width: 390px; }
.project-result { display: flex; align-items: baseline; gap: 13px; margin-top: auto; margin-bottom: 23px; }
.project-result strong { font-size: 48px; font-weight: 550; line-height: 1; letter-spacing: -.055em; }
.project-result > span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.project-open { border: 0; background: transparent; color: var(--ink); width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 0 0; border-top: 1px solid var(--line); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; text-align: left; }
.project-plus { font-size: 23px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-raised); transition: transform .4s, background .4s; }
.project-open:hover .project-plus { transform: rotate(90deg); background: var(--accent); color: var(--accent-ink); }
.project-open:focus-visible, .project-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-media { position: relative; overflow: hidden; margin: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.project-media > img { display: block; width: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project-feature:hover .project-media > img { transform: scale(1.035); }
.project-media figcaption { position: absolute; bottom: 23px; left: 30px; right: 25px; font-size: 9px; line-height: 1.5; letter-spacing: .1em; opacity: .65; z-index: 2; }
.project-media-tags { position: absolute; top: 27px; left: 27px; right: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.project-media-tags span { font-size: 10px; padding: 8px 11px; background: #ffffff10; border: 1px solid #ffffff20; border-radius: 30px; backdrop-filter: blur(8px); }
.sias-media { padding: 28px; background: #182c2c; color: #cfefe6; }
body[data-home-mode="life"] .sias-media { background: #e3f3eb; color: #2c6354; }
.report-preview { width: 100%; padding: 27px 22px 24px; background: #f8faf8; color: #243730; border-radius: 14px; box-shadow: 0 20px 60px #0002; transform: translateY(-10px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project-feature:hover .report-preview { transform: translateY(-18px); }
.report-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #58796b; font-size: 8px; font-weight: 600; letter-spacing: .08em; }
.report-dot { width: 6px; height: 6px; background: #70a38b; border-radius: 50%; box-shadow: 0 0 0 4px #70a38b17; }
.report-preview h4 { font-size: 26px; line-height: 1.2; font-weight: 550; letter-spacing: -.04em; margin: 32px 0 12px; }
.report-preview p { font-size: 11px; line-height: 1.6; color: #688174; margin: 0 0 25px; }
.report-preview > img { width: 100%; height: auto; display: block; background: white; border: 1px solid #e1e8e2; border-radius: 4px; }
.report-preview-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #dce7df; margin-top: 25px; padding-top: 16px; font-size: 9px; color: #4f7362; }
.cathay-media { background: #d4ece9; color: #154c4c; }
.cathay-media > img { height: auto; object-fit: contain; }
.cathay-journey { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 34px 12px 55px; font-size: 13px; font-weight: 500; }
.cathay-journey i { font-style: normal; opacity: .5; font-weight: 300; }
body[data-home-mode="work"] .cathay-media { background: #113c3e; color: #c5e6e4; }
.project-disclosure { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 26px 5px 0; max-width: 760px; }
body .project-dialog { width: min(1040px, calc(100% - 48px)); max-height: 92svh; border-radius: 25px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 0; }
.project-dialog[open] { transform-origin: center; }
.project-dialog::backdrop { background: #030913b5; backdrop-filter: blur(18px); }
.project-dialog[open]::backdrop { animation: project-backdrop-in .5s ease both; }
.project-dialog.is-closing::backdrop { animation: project-backdrop-out .38s ease both; }
@keyframes project-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes project-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media(prefers-reduced-motion:reduce) { .project-dialog[open]::backdrop,.project-dialog.is-closing::backdrop { animation: none; } }
.project-dialog-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 28px; }
.project-dialog-label { font-size: 10px; letter-spacing: .13em; color: var(--muted); }
.project-dialog-close { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface-raised); color: var(--ink); font-size: 25px; line-height: 1; cursor: pointer; }
.project-detail-heading { padding: 50px 64px 36px; }
.project-detail-heading .project-brand { max-width: 300px; height: 72px; margin-bottom: 26px; }
.project-detail-heading h2 { font-size: clamp(34px,4.2vw,56px); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 24px; font-weight: 550; max-width: 790px; }
.project-detail-lead { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 770px; margin: 0; }
.project-detail-result { display: flex; align-items: baseline; gap: 15px; padding: 26px 0 0; }
.project-detail-result strong { font-size: 43px; font-weight: 550; letter-spacing: -.04em; }
.project-detail-result span { font-size: 12px; color: var(--muted); }
.project-detail-body { padding: 0 64px 55px; }
.project-detail-section { display: grid; grid-template-columns: 160px 1fr; gap: 36px; border-top: 1px solid var(--line); padding: 30px 0; }
.project-detail-section h3 { font-size: 14px; margin: 4px 0 0; font-weight: 600; }
.project-detail-section > p { font-size: 16px; line-height: 1.85; margin: 0; color: var(--muted); }
.project-steps { list-style: none; margin: 0; padding: 0; counter-reset: project-step; }
.project-steps li { position: relative; padding: 0 0 25px 37px; counter-increment: project-step; }
.project-steps li:last-child { padding-bottom: 0; }
.project-steps li:before { content: '0' counter(project-step); position: absolute; left: 0; top: 3px; color: var(--accent); font-size: 11px; }
.project-steps h4 { margin: 0 0 8px; font-size: 16px; font-weight: 550; }
.project-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.project-gallery { background: var(--section-soft); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; margin: 6px 0 34px; }
.project-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 24px; }
.project-gallery-title { font-size: 12px; font-weight: 550; }
.project-gallery-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.project-gallery-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-gallery-controls button { background: var(--surface-raised); color: var(--ink); width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; font: inherit; }
.project-gallery-image { margin: 0; padding: 0 24px 22px; }
.project-gallery-image img { width: 100%; height: 390px; object-fit: contain; display: block; background: #fff; border-radius: 8px; animation: project-image-in .4s ease; }
.project-gallery-image figcaption { color: var(--muted); font-size: 11px; line-height: 1.8; padding-top: 17px; }
.project-detail-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.anonymous-brand { font-size:19px; font-weight:550; letter-spacing:.1em; max-width:100%; color:var(--ink); }
.anonymous-brand span { display:block; font-size:10px; margin-top:10px; letter-spacing:.15em; color:var(--muted); }
.case-thesis { border-top:1px solid var(--line); padding:26px 0 0; }
.case-thesis > span { font-size:14px; color:var(--accent); font-weight:500; }
.case-thesis p { font-size:22px; line-height:1.6; letter-spacing:-.015em; margin:15px 0 0; max-width:800px; }
.projects-section .project-category { font-size:12px; line-height:1.7; letter-spacing:.035em; }
.projects-section .project-open { font-size:14px; }
.projects-section .project-summary { font-size:16px; }
.project-detail-note,.project-disclosure { font-size:12px; }
@keyframes project-dialog-in { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes project-image-in { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 950px) {
  .project-feature { grid-template-columns: 48% 52%; min-height: 540px; }
  .project-copy { padding: 30px 27px; }
  .project-copy h3 { font-size: 31px; }
  .project-summary { font-size: 14px; }
  .project-result { flex-wrap: wrap; gap: 9px; }
  .project-result strong { font-size: 40px; }
  .sias-media { padding: 20px; }
  .report-preview { padding: 20px 16px; }
  .report-preview h4 { font-size: 23px; }
  .report-preview-bottom { flex-direction: column; }
  .project-detail-heading { padding: 40px 38px 30px; }
  .project-detail-body { padding: 0 38px 40px; }
}
@media (max-width: 700px) {
  body .projects-section { padding: 75px 0 55px; }
  .projects-section .section-heading { margin-bottom: 32px; }
  .projects-section .section-heading h2 { font-size: 40px; }
  .project-collection { gap: 24px; }
  .project-feature { display: flex; flex-direction: column; border-radius: 22px; min-height: 0; }
  .project-copy { padding: 28px 25px 25px; }
  .project-brand { margin-bottom: 20px; height: 59px; }
  .sias-mark { width: 52px; height: 58px; }
  .project-category { font-size: 9px; margin-bottom: 15px; }
  .project-copy h3 { font-size: 32px; }
  .project-summary { font-size: 15px; margin-bottom: 22px; }
  .project-result strong { font-size: 44px; }
  .project-open { font-size: 12px; padding-top: 15px; }
  .project-media { min-height: 330px; }
  .project-media figcaption { bottom: 17px; left: 23px; font-size: 8px; }
  .project-media-tags { top: 18px; left: 20px; }
  .project-media-tags span { font-size: 9px; padding: 6px 8px; }
  .sias-media { padding: 35px 22px 45px; }
  .report-preview { transform: none; padding: 22px 18px; }
  .report-preview h4 { margin-top: 26px; font-size: 24px; }
  .report-preview-bottom { flex-direction: row; font-size: 8px; }
  .cathay-media { min-height: 260px; padding-top: 22px; }
  .cathay-media > img { height: auto; }
  .cathay-journey { font-size: 12px; gap: 18px; margin: 25px 10px 48px; }
  body .project-dialog { width: calc(100% - 16px); max-height: 94svh; border-radius: 19px; }
  .project-dialog-bar { padding: 12px 20px; min-height: 60px; }
  .project-detail-heading { padding: 29px 24px 27px; }
  .project-detail-heading h2 { font-size: 34px; }
  .project-detail-lead { font-size: 16px; }
  .project-detail-body { padding: 0 24px 35px; }
  .project-detail-section { grid-template-columns: 1fr; gap: 18px; padding: 25px 0; }
  .project-detail-section h3 { font-size: 13px; color: var(--accent); }
  .project-detail-section > p, .project-steps p { font-size: 15px; }
  .project-gallery { margin-inline: -10px; }
  .project-gallery-toolbar { padding: 16px; }
  .project-gallery-title { font-size: 11px; }
  .project-gallery-controls { gap: 8px; }
  .project-gallery-image { padding: 0 14px 18px; }
  .project-gallery-image img { height: 240px; }
  .project-detail-result strong { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) { .project-feature:hover .project-media > img, .project-feature:hover .report-preview { transform: none; } }
