/* Software showcase. Static paper and generous image surfaces; all app artwork
   is captured from the real interfaces. No continuous animation or canvas. */
body.page-projects { background: #e8eee3; }
.page-projects { --project-paper: #f4f0e5; --project-line: #a4b5a7; --project-muted: #49605a; }
.page-projects .corners { --hdr: #e8eee3; --hdr-b: #e8eee3; }
.page-projects .c-nav a[aria-current="page"] { background-size: 100% 1px; }
.projects-intro, .project-section-inner, .projects-outro { width: min(100% - var(--m) * 2, 1320px); margin-inline: auto; }
.projects-intro { padding-block: clamp(130px, 12vw, 182px) 74px; }
.projects-eyebrow { font-size: .75rem; font-weight: 600; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.projects-eyebrow > span:not(.project-number) { margin-inline: .5em; opacity: .65; }
.projects-intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7%; align-items: end; margin-block: 28px 64px; }
.projects-intro h1 { font: 290 clamp(3.9rem, 7.5vw, 7.5rem)/.94 var(--f-display); font-stretch: 77%; letter-spacing: -.035em; }
.projects-intro h1 > span { color: #a75b35; }
.projects-intro-copy { max-width: 32em; padding-bottom: 6px; }
.projects-intro-copy > p:first-child { font: 350 clamp(1.25rem, 1.8vw, 1.75rem)/1.35 var(--f-display); font-stretch: 90%; }
.projects-intro-copy > p + p { margin-top: 16px; color: var(--project-muted); }
.projects-intro-copy .projects-edition { font-size: .75rem; font-weight: 500; margin-top: 30px; }
.projects-edition span { padding-inline: .6em; }
.project-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-index a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 70px; border-block: 1px solid var(--project-line); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.project-index a > span:nth-child(2) { overflow-wrap: anywhere; }
.project-index-number { color: #8c4d2d; font-size: .75rem; font-variant-numeric: tabular-nums; }
.project-index a > span:last-child { font-size: 1.35rem; padding: 12px; transition: transform .2s var(--ease-out); }
.project-section { scroll-margin-top: 95px; background: var(--project-paper); border-top: 1px solid #c2cdbf; padding-block: 70px 86px; }
.project-section-2 { background: #eaddcc; border-top-color: #cab59d; }
.project-section-3 { background: #e3e9dc; border-top-color: #adbfab; --project-line: #9aad96; --project-muted: #465c4b; }
.project-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: end; margin-bottom: 34px; }
.project-number { display: inline-block; color: #91522f; margin-right: 18px; font-variant-numeric: tabular-nums; }
.project-heading h2 { font: 320 clamp(2.5rem, 5vw, 4.7rem)/1.08 var(--f-display); font-stretch: 80%; letter-spacing: -.025em; margin-top: 14px; overflow-wrap: anywhere; }
.project-summary { font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.55; max-width: 35em; justify-self: end; padding-bottom: 4px; text-wrap: pretty; }
.project-cover { margin: 0; border: 1px solid #31504b; box-shadow: 0 18px 36px -24px #092a3066; }
.project-cover-link { display: block; text-decoration: none; color: #edf3e8; background: #103b39; }
.project-cover-mat { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: clamp(12px, 2.5vw, 40px); background: radial-gradient(ellipse at 20% 0, #347467 0, #143f40 48%, #0a232d 100%); }
.project-section-2 .project-cover-mat { background: radial-gradient(ellipse at 70% 0, #6b5a48 0, #3a393d 45%, #172d33 100%); }
.project-section-3 .project-cover-mat { background: radial-gradient(ellipse at 30% 0, #697e56 0, #344f42 48%, #163333 100%); }
.project-cover-mat img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 12px 35px #0005; }
.project-cover.is-portrait .project-cover-mat img { width: auto; max-width: 100%; max-height: 680px; }
.project-cover-label { display: flex; justify-content: space-between; gap: 20px; padding: 14px 22px; font-size: .8125rem; line-height: 1.4; }
.project-cover-label > span:last-child { color: #d4e9da; white-space: nowrap; }
.project-cover-label > span:last-child > span { margin-left: 8px; }
.project-about { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; padding-block: 38px 58px; }
.project-description { font: 350 clamp(1.1875rem, 1.5vw, 1.5rem)/1.45 var(--f-display); font-stretch: 92%; text-wrap: pretty; }
.project-features { display: grid; align-content: start; gap: 0; }
.project-features li { border-bottom: 1px solid #afbbab; position: relative; padding: 11px 0 11px 20px; line-height: 1.45; }
.project-features li:first-child { padding-top: 0; }
.project-features li::before { content: ""; position: absolute; left: 1px; top: 20px; width: 5px; height: 5px; background: #9a5837; transform: rotate(45deg); }
.project-features li:first-child::before { top: 9px; }
.project-film { margin: 0 0 58px; }
.project-film-heading { display: flex; align-items: baseline; gap: 26px; border-top: 1px solid var(--project-line); padding-top: 24px; margin-bottom: 22px; }
.project-film-heading > .projects-eyebrow { flex: none; color: #8c4d2d; }
.project-film h3 { font: 350 clamp(1.65rem, 2.8vw, 2.5rem)/1.2 var(--f-display); font-stretch: 85%; text-wrap: pretty; }
.project-film-frame { overflow: hidden; border: 1px solid #31504b; background: #071d25; box-shadow: 0 18px 36px -24px #092a304d; }
.project-film-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; color: #edf3e8; background: #071d25; }
.project-film-player:focus-visible { outline: 3px solid #bbd8b7; outline-offset: -4px; }
.project-film figcaption { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-top: 17px; }
.project-film figcaption > p { max-width: 65em; color: var(--project-muted); font-size: .8125rem; line-height: 1.6; }
.project-film-download { display: inline-flex; flex: none; align-items: center; gap: 9px; min-height: 44px; margin-top: -9px; font-size: .75rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-film-download > span:first-child { color: var(--project-muted); font-size: .6875rem; letter-spacing: .04em; }
.project-film-download > span:last-child { font-size: 1.1rem; }
.project-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--project-line); padding-top: 24px; margin-bottom: 26px; }
.project-gallery-heading h3 { font: 350 clamp(1.8rem, 2.8vw, 2.5rem)/1.15 var(--f-display); font-stretch: 85%; }
.project-gallery-heading p { font-size: .75rem; color: var(--project-muted); text-align: right; }
.project-gallery-heading p > span { margin-inline: .6em; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
.project-shot { margin: 0; min-width: 0; }
.project-shot-link { display: block; text-decoration: none; border: 1px solid #9eafa2; background: #d9dfd4; }
.project-shot-image { display: flex; align-items: center; justify-content: center; padding: clamp(8px, 1.4vw, 22px); aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #d4e1d5, #c2d0c9); }
.project-section-2 .project-shot-image { background: linear-gradient(145deg, #d6c7b6, #c5b6a7); }
.project-section-3 .project-shot-image { background: linear-gradient(145deg, #d4e1c8, #bdcebd); }
.project-shot-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-shot.is-portrait .project-shot-image img { width: auto; max-width: 100%; }
.project-shot-open { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 9px 13px; font-size: .75rem; font-weight: 500; background: #eef0e6; }
.project-shot-open > span { font-size: 1.1rem; transition: transform .2s var(--ease-out); }
.project-shot figcaption { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding-top: 14px; }
.project-shot-number { color: #875037; font-size: .6875rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.project-shot h4 { font-size: .9375rem; line-height: 1.35; font-weight: 600; }
.project-shot figcaption p { font-size: .8125rem; color: var(--project-muted); line-height: 1.5; margin-top: 5px; max-width: 43em; }
.project-more { margin-top: 34px; }
.project-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; border-block: 1px solid #9eafa2; font-weight: 500; }
.project-more > summary::-webkit-details-marker { display: none; }
.project-more-sign { display: block; font-size: 1.65rem; font-weight: 300; padding-inline: 10px; }
.project-more[open] > summary { margin-bottom: 30px; }
.project-more[open] .project-more-sign { transform: rotate(45deg); }
.project-capture-note { font-size: .75rem; color: var(--project-muted); max-width: 64em; margin-top: 28px; }
.projects-outro { padding-block: 76px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 8%; }
.projects-outro > .projects-eyebrow { grid-column: 1 / -1; }
.projects-outro h2 { font: 320 clamp(2.2rem, 4vw, 3.5rem)/1.08 var(--f-display); font-stretch: 80%; letter-spacing: -.02em; }
.projects-outro > div { align-self: end; max-width: 34em; }
.projects-outro > div > p { margin-bottom: 15px; color: var(--project-muted); }
.projects-outro-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--project-line); text-decoration: none; font-weight: 500; }
.project-viewer { width: min(1600px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 1px solid #5c7c76; color: #edf4e9; background: #0b242c; border-radius: 6px; box-shadow: 0 20px 80px #0009; overflow: auto; }
.project-viewer:not([open]) { display: none; }
.project-viewer::backdrop { background: #020e16e8; }
.project-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #39565a; }
.project-viewer-top .projects-eyebrow { color: #a6cbc3; font-size: .6875rem; margin-bottom: 4px; }
.project-viewer h2 { font: 500 clamp(.9375rem, 1.4vw, 1.125rem)/1.35 var(--f-text); }
.project-viewer button, .project-viewer a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: inherit; font-size: .875rem; text-decoration: none; border: 1px solid #52766e; border-radius: 3px; padding: 10px 16px; background: #163936; }
.project-viewer button:disabled { cursor: default; opacity: .4; }
.project-viewer-close { flex: none; }
.project-viewer-close > span { font-size: 1.4rem; line-height: .7; }
.project-viewer-figure { margin: 0; }
.project-viewer-image { position: relative; min-height: 140px; display: flex; align-items: center; justify-content: center; padding: 12px 20px; background: #03121a; }
.project-viewer-image img { width: auto; max-width: 100%; max-height: calc(100vh - 245px); max-height: calc(100dvh - 245px); object-fit: contain; }
.project-viewer-status { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); text-align: center; padding: 16px; font-size: .875rem; background: #0b242ce8; }
.project-viewer-status[hidden] { display: none; }
.project-viewer-figure figcaption { padding: 10px 22px 4px; font-size: .8125rem; line-height: 1.45; color: #c5ddd5; }
.project-viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 22px 18px; }
.project-viewer-controls { display: flex; align-items: center; gap: 16px; }
#project-viewer-count { min-width: 58px; text-align: center; font-size: .75rem; font-variant-numeric: tabular-nums; color: #c5ddd5; }
.project-viewer :focus-visible { outline-color: #b9f2d5; outline-offset: 3px; }
html.project-viewer-open { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .project-index a:hover > span:last-child { transform: translateY(3px); }
  .project-shot-link:hover, .project-cover-link:hover { outline: 2px solid #9e6840; outline-offset: 3px; }
  .project-shot-link:hover .project-shot-open > span { transform: translate(2px, -2px); }
  .project-more > summary:hover, .projects-outro-link:hover { color: #8d4727; }
  .project-viewer button:not(:disabled):hover, .project-viewer a:hover { background: #285044; }
}
@media (min-width: 760px) and (max-width: 999px) {
  .project-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-index a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .projects-intro { padding-block: 130px 48px; }
  .projects-intro-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .projects-intro h1 { font-size: clamp(3.5rem, 12vw, 5.5rem); }
  .projects-intro-copy { max-width: 33em; }
  .projects-intro-copy > p:first-child { font-size: 1.375rem; }
  .projects-intro-copy .projects-edition { margin-top: 22px; }
  .project-index { grid-template-columns: 1fr; gap: 0; }
  .project-index a { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; font-size: .9375rem; min-height: 64px; }
  .project-index a + a { border-top: 0; }
  .project-index a > span:last-child { padding: 4px; }
  .project-heading { grid-template-columns: 1fr; gap: 20px; }
  .project-heading h2 { font-size: clamp(2.5rem, 8.6vw, 3.6rem); }
  .project-summary { justify-self: start; }
  .project-section { padding-block: 46px 56px; }
  .project-cover-mat { padding: 12px; }
  .project-cover-label { padding: 12px; gap: 12px; font-size: .75rem; }
  .project-about { grid-template-columns: 1fr; gap: 22px; padding-block: 26px 38px; }
  .project-description { font-size: 1.25rem; }
  .project-film { margin-bottom: 38px; }
  .project-film-heading { flex-direction: column; align-items: start; gap: 10px; padding-top: 20px; margin-bottom: 20px; }
  .project-film figcaption { flex-direction: column; gap: 8px; padding-top: 13px; }
  .project-film-download { margin-top: 0; }
  .project-gallery-heading { align-items: start; gap: 14px; }
  .project-gallery-heading p { max-width: 15em; line-height: 1.6; }
  .project-gallery-grid { gap: 26px 16px; }
  .project-shot-image { padding: 7px; }
  .project-shot figcaption { grid-template-columns: 1fr; gap: 4px; }
  .project-shot-number { display: none; }
  .project-shot h4 { font-size: .875rem; }
  .project-shot figcaption p { font-size: .75rem; }
  .project-shot-open { padding-inline: 9px; }
  .projects-outro { grid-template-columns: 1fr; padding-block: 50px 60px; gap: 22px; }
  .project-viewer { width: calc(100% - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .project-viewer-top { padding: 12px; gap: 10px; }
  .project-viewer button, .project-viewer a { padding: 10px 12px; }
  .project-viewer-close { gap: 6px; }
  .project-viewer-image { padding: 8px; }
  .project-viewer-image img { max-height: calc(100vh - 290px); max-height: calc(100dvh - 290px); }
  .project-viewer-figure figcaption { padding: 10px 12px 4px; }
  .project-viewer-bottom { padding: 10px 12px 14px; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .project-viewer-controls { justify-content: space-between; width: 100%; gap: 8px; }
  .project-viewer-bottom > a { min-height: 40px; border: 0; background: none; padding: 7px 12px; text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 399px) {
  .project-index { grid-template-columns: 1fr; gap: 0; }
  .project-index a + a { border-top: 0; }
  .project-cover-label { flex-direction: column; gap: 4px; }
  .project-gallery-heading { flex-direction: column; gap: 8px; }
  .project-gallery-heading p { max-width: none; text-align: left; }
}
@media (max-height: 499px) and (min-width: 600px) {
  .project-viewer-top { padding: 8px 14px; }
  .project-viewer-image img { max-height: calc(100dvh - 180px); }
  .project-viewer-bottom { padding: 8px 14px; }
  .project-viewer-figure figcaption { padding: 5px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-index a > span:last-child, .project-shot-open > span { transition: none; }
}
@media (forced-colors: active) {
  .page-projects, .project-section, .project-cover-link, .project-cover-mat, .project-shot-image, .project-shot-open, .project-viewer, .project-viewer-image, .project-viewer button, .project-viewer a { background: Canvas; color: CanvasText; }
  .project-shot-link, .project-cover, .project-viewer, .project-viewer button, .project-viewer a { border-color: CanvasText; }
  .project-capture-note, .project-shot figcaption p, .project-viewer-figure figcaption, #project-viewer-count { color: CanvasText; }
  .project-film-frame { border-color: CanvasText; }
  .project-film-heading > .projects-eyebrow, .project-film figcaption > p, .project-film-download > span:first-child { color: CanvasText; }
}
@media print {
  .project-index, .project-viewer, .project-shot-open, .project-cover-label > span:last-child, .projects-outro { display: none !important; }
  .page-projects, .project-section { background: white; color: black; }
  .projects-intro { padding-top: 12px; }
  .project-section { padding-block: 24px; }
  .projects-intro h1 { font-size: 42pt; }
  .project-cover, .project-shot { break-inside: avoid; box-shadow: none; }
  .project-more { display: none; }
  .project-film-player { display: none; }
  .project-film-frame { border: 0; box-shadow: none; }
  .project-film { break-inside: avoid; margin-bottom: 24px; }
  .project-cover-mat, .project-shot-image { background: #eee; padding: 6px; }
}
