/* v0.7 portfolio screens. Scoped to preserve the approved desktop shell. */
.portfolio7 { font-size: 1rem; }
.portfolio7 .appToolbar5 { padding: 10px 16px; gap: 10px; }
.portfolio7 .appHeading5 b { font-size: .9375rem; }
.portfolio7 .appHeading5 small { font-size: .75rem; }
.portfolio7 .appToolbar5 button { min-height: 34px; font-size: .875rem; white-space: nowrap; }
.portfolio7 .appSearch5 { width: 34%; max-width: 220px; font-size: .875rem; min-height: 35px; }
.projectShell7 { display: grid; grid-template-columns: 146px minmax(0, 1fr); flex: 1; min-height: 0; overflow: hidden; }
.projectSide7 { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 18px 9px; overflow: auto; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 2.5%, var(--paper)); }
.projectSide7 > small, .projectSide7 .sideCaption5 { display: block; padding: 7px 9px; font-size: .75rem; line-height: 1.4; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.projectSide7 button { padding: 9px; border-radius: 7px; text-align: left; font-size: .875rem; line-height: 1.4; }
.projectSide7 button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.projectSide7 button.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-weight: 650; }
.projectSideMore7 { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.projectPane7 { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 27px; scroll-padding-top: 20px; }
.projectPane7 h1 { margin: 8px 0 12px; font-size: clamp(1.625rem, 3cqi, 2.125rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 720; }
.projectPane7 h2 { margin: 0 0 11px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; }
.projectPane7 h3 { margin: 0 0 7px; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.projectPane7 p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.projectPane7 .overline5 { font-size: .75rem; line-height: 1.4; letter-spacing: .075em; }
.projectPane7 h1:focus, .projectPane7 h2:focus { outline: none; }
.projectCatalogHead7 { max-width: 580px; margin-bottom: 26px; }
.projectCatalogHead7 p { max-width: 520px; }
.projectGrid7 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.projectCard7 { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-decoration: none; overflow: hidden; box-shadow: 0 2px 5px #00000004; transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease; }
.projectCard7:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #13223812; border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); }
.projectCard7:focus-visible { outline-offset: 4px; }
.projectCover7 { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 3%, var(--paper)); border-bottom: 1px solid var(--line); }
.projectCover7 > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.projectCover7 > img.isWebsite7 { object-fit: contain; }
.projectNoImage7 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; min-height: 150px; color: #fff; background: var(--project-color, #51466e); font-size: 3.5rem; line-height: 1; font-weight: 650; letter-spacing: -.065em; }
.projectNoImage7 small, .projectNoImage7 span { font-size: .875rem; line-height: 1.4; font-weight: 450; letter-spacing: 0; color: #ffffffd9; }
.projectCardBody7 { display: flex; flex-direction: column; flex: 1; gap: 13px; padding: 17px; }
.projectCardTop7 { display: flex; align-items: center; gap: 11px; min-width: 0; }
.projectCardTop7 > div { flex: 1; min-width: 0; }
.projectCardTop7 h2 { margin: 0 0 3px; font-size: 1rem; line-height: 1.25; letter-spacing: -.02em; }
.projectCardTop7 small { display: block; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.projectCardBody7 > p { font-size: 1rem; line-height: 1.55; }
.projectMark7 { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; background: var(--project-color, #31425b); color: #fff; font-size: 1.0625rem; line-height: 1; font-weight: 650; letter-spacing: -.03em; box-shadow: inset 0 0 0 1px #ffffff1a, 0 2px 4px #0000000d; overflow: hidden; }
.projectMark7 img { display: block; width: 80%; height: 80%; object-fit: contain; }
.projectView7 { flex-shrink: 0; padding: 5px 11px; border-radius: 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: .875rem; font-weight: 650; }
.projectHeader7 { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 18px; }
.projectHeader7 > .projectMark7 { flex-basis: 68px; width: 68px; height: 68px; border-radius: 16px; font-size: 1.625rem; }
.projectIdentity7 { flex: 1; min-width: 0; }
.projectIdentity7 > small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.projectIdentity7 h1 { margin: 5px 0 9px; }
.projectActions7 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.projectActions7 a, .projectActions7 button, .projectNext7 a, .projectNext7 button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 550; line-height: 1.4; }
.projectActions7 .primary { color: #fff; background: #176ad1; border-color: #176ad1; }
.projectActions7 a:hover, .projectActions7 button:hover, .projectNext7 a:hover, .projectNext7 button:hover { filter: brightness(.97); }
.projectFacts7 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.projectFacts7 > div { min-width: 0; padding: 0 15px; border-right: 1px solid var(--line); }
.projectFacts7 > div:first-child { padding-left: 0; }
.projectFacts7 > div:last-child { border-right: 0; padding-right: 0; }
.projectFacts7 dt { margin-bottom: 6px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.projectFacts7 dd { margin: 0; font-size: .875rem; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.projectTabs7 { display: flex; gap: 24px; margin: 8px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.projectTabs7 button { position: relative; flex-shrink: 0; padding: 15px 0 13px; color: var(--muted); font-size: .875rem; line-height: 1.4; border-radius: 0; border-bottom: 2px solid transparent; }
.projectTabs7 button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.projectSection7 { min-width: 0; }
.projectLeadMedia7, .projectGallery7 figure { margin: 0; min-width: 0; }
.projectImageOpen7 { display: block; width: 100%; padding: 0; overflow: hidden; border-radius: 11px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, var(--paper)); cursor: zoom-in; }
.projectImageOpen7 img { display: block; width: 100%; max-height: 460px; aspect-ratio: 16 / 10; object-fit: cover; }
.projectImageOpen7 img.isWebsite7 { object-fit: contain; }
.projectLeadMedia7 figcaption, .projectGallery7 figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 10px 1px 0; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.projectLeadMedia7 figcaption > span, .projectGallery7 figcaption > span { flex: 1; min-width: 120px; }
.projectLeadMedia7 figcaption a, .projectGallery7 figcaption a { color: var(--muted); text-underline-offset: 3px; }
.projectStory7 { max-width: 680px; margin: 28px 0; }
.projectStory7 p + p { margin-top: 15px; }
.projectStory7 h2:not(:first-child) { margin-top: 28px; }
.projectSteps7 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 28px; }
.projectSteps7 > div { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--ink) 1.5%, var(--paper)); }
.projectSteps7 small { display: block; margin-bottom: 12px; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.projectSteps7 h3 { margin-bottom: 8px; }
.projectSteps7 p { font-size: 1rem; line-height: 1.6; }
.projectGallery7 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.projectGallery7 figure:only-child { grid-column: 1 / -1; }
.projectGallery7 .projectImageOpen7 img { max-height: 340px; }
.projectNext7 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 23px; margin-top: 32px; border-top: 1px solid var(--line); }
.projectNext7 p { font-size: .875rem; }
.projectNext7 small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.projectLinkFeedback7 { margin: -10px 0 18px; min-width: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.projectLinkFeedback7:empty { display: none; }
.projectLinkFeedback7 input { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-size: .875rem; }
.projectViewer7 { position: fixed; inset: 0; margin: auto; width: min(1100px, 90vw); height: min(820px, 85vh); max-width: 90vw; max-height: 85vh; padding: 0; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: 0 26px 100px #0008; overflow: hidden; }
.projectViewer7:not([open]) { display: none; }
.projectViewer7[open] { display: flex; flex-direction: column; }
.projectViewer7::backdrop { background: #1018209c; backdrop-filter: blur(8px); }
.projectViewer7 > header { position: static; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; min-height: 52px; height: auto; width: 100%; max-width: none; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--paper); backdrop-filter: none; }
.projectViewer7 > header b { flex: 1; min-width: 0; font-size: .9375rem; }
.projectViewer7 > header button, .projectViewer7 > footer button { min-width: 38px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: .875rem; }
.projectViewerStage7 { display: grid; place-items: center; flex: 1; min-width: 0; min-height: 0; padding: 20px; overflow: hidden; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.projectViewerStage7 img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.projectViewer7 > footer { display: flex; align-items: center; flex-wrap: wrap; flex: 0 0 auto; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); }
.projectViewer7 > footer p { flex: 1; min-width: 120px; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.projectViewer7 > footer button:disabled { opacity: .4; cursor: default; }
.homeActions7 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.homeActions7 a, .homeActions7 button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border-radius: 8px; font-size: .875rem; line-height: 1.4; text-decoration: none; }
.homeActions7 .primary { color: #fff; background: #176ad1; }
.homeActions7 .textlink { padding-inline: 7px; }
.homeProject7 { display: block; text-decoration: none; color: inherit; }
.homeProject7 > img { display: block; width: 100%; height: 120px; object-fit: cover; object-position: center; border-bottom: 1px solid var(--line); }
.homeProject7 > div { display: flex; align-items: center; gap: 10px; padding: 12px 13px; }
.homeProject7 b { display: block; font-size: .875rem; line-height: 1.4; }
.homeProject7 small { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.homeProject7:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.projectSideLabel7 { color: var(--muted); font-size: .75rem; padding: 7px 9px; letter-spacing: .04em; }
.projectNext7 > a { flex-direction: column; align-items: flex-end; border: 0; padding: 0; }
.projectImageOpen7 { position: relative; }
.projectZoom7 { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 6px; color: #fff; background: #17212ed9; backdrop-filter: blur(8px); font-size: .75rem; line-height: 1.4; box-shadow: 0 1px 6px #0002; }
.projectImageFallback7 { display: grid; place-items: center; width: 100%; min-height: 180px; padding: 24px; background: var(--paper); color: var(--muted); font-size: 1rem; }
.projectStory7 .projectSummary7 { font-size: 1.125rem; color: var(--ink); line-height: 1.65; }
.projectContext7 { display: flex; flex-direction: column; gap: 5px; padding: 18px 0; border-top: 1px solid var(--line); }
.projectContext7 span { font-size: .875rem; font-weight: 600; }
.projectContext7 small { font-size: .75rem; color: var(--muted); }
.projectLinks7 { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.projectLinks7 a { display: flex; flex-direction: column; gap: 5px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.projectLinks7 b { font-size: 1rem; color: var(--accent); }
.projectLinks7 span { font-size: .875rem; color: var(--ink); }
.projectLinks7 small { font-size: .75rem; color: var(--muted); }
.projectLinks7 a:hover { background: color-mix(in srgb, var(--accent) 4%, var(--paper)); }
.projectEmpty7 { padding: 24px 0; }
.projectEmpty7 button { margin-top: 16px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; }
.projectViewerCaption7 { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.projectViewerCaption7 b { font-size: .875rem; }
.projectViewerCaption7 p { margin: 0; font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.projectViewerCaption7 a { font-size: .75rem; color: var(--muted); text-underline-offset: 3px; }
.projectViewerControls7 { display: flex; align-items: center; gap: 10px; }
.projectViewerControls7 span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.projectViewerControls7 button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; }
.projectViewerControls7 button:disabled { opacity: .4; cursor: default; }
.homeActions7 { margin-top: 0; }
.homeProject7 > img { height: 96px; object-fit: cover; object-position: center 32%; }
.homeProject7 > div { padding: 8px 13px; }
.homeProject7 .projectMark7 { width: 30px; height: 30px; flex-basis: 30px; border-radius: 7px; font-size: .875rem; }
.homeProject7 small { font-size: .75rem; }
.homeProjectList7 a { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-top: 1px solid var(--line); font-size: .8125rem; text-decoration: none; }
.homeProjectList7 a:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.homeProjectList7 .projectMark7 { width: 24px; height: 24px; flex-basis: 24px; border-radius: 6px; font-size: .625rem; }
.homeProjectList7 a > span:last-child { margin-left: auto; color: var(--muted); font-size: .75rem; }
.homeProjectBrowse7 { width: 100%; padding: 9px 13px; text-align: left; border-top: 1px solid var(--line); color: var(--accent); font-size: .8125rem; font-weight: 600; }
@media(max-width:650px) { .projectViewerCaption7 { flex-basis: 100%; } .projectViewerControls7 { margin-left: auto; } }
@container (max-width: 750px) {
  .projectPane7 { padding: 22px; }
  .projectGrid7 { gap: 14px; }
  .projectCardBody7 { padding: 14px; }
  .projectCardTop7 { gap: 9px; }
  .projectView7 { padding: 4px 8px; }
  .projectSteps7 { grid-template-columns: 1fr; }
  .projectSteps7 > div { padding: 16px 18px; }
  .projectSteps7 small { margin-bottom: 7px; }
}
@container (max-width: 650px) {
  .portfolio7 .appToolbar5 { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .portfolio7 .appHeading5 { flex-basis: 100%; }
  .portfolio7 .appSearch5 { flex: 1; width: auto; max-width: none; }
  .projectShell7 { display: flex; flex-direction: column; }
  .projectSide7 { flex: 0 0 auto; flex-direction: row; gap: 5px; padding: 8px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .projectSide7 > small, .projectSide7 .sideCaption5, .projectSideMore7 { display: none; }
  .projectSide7 button { flex-shrink: 0; padding: 7px 10px; white-space: nowrap; }
  .projectPane7 { flex: 1; padding: 21px 18px 28px; }
  .projectPane7 h1 { font-size: 1.75rem; }
  .projectCatalogHead7 { margin-bottom: 22px; }
  .projectGrid7 { grid-template-columns: 1fr; gap: 20px; }
  .projectCover7 { aspect-ratio: 16 / 9; }
  .projectCardBody7 { padding: 17px; }
  .projectCardTop7 h2 { font-size: 1.125rem; }
  .projectCardTop7 small { font-size: .8125rem; }
  .projectHeader7 { gap: 13px; }
  .projectHeader7 > .projectMark7 { flex-basis: 50px; width: 50px; height: 50px; border-radius: 12px; font-size: 1.25rem; }
  .projectFacts7 { gap: 13px; padding: 16px 0; }
  .projectFacts7 > div { padding: 0; border: 0; }
  .projectFacts7 dd { font-size: .875rem; }
  .projectTabs7 { gap: 23px; margin-bottom: 20px; }
  .projectGallery7 { grid-template-columns: 1fr; }
  .projectImageOpen7 img { max-height: 330px; }
  .projectNext7 { align-items: flex-start; }
}
@container (max-width: 380px) {
  .projectPane7 { padding-inline: 14px; }
  .projectHeader7 { flex-wrap: wrap; }
  .projectIdentity7 { flex-basis: 100%; }
  .projectFacts7 { grid-template-columns: 1fr; }
  .projectFacts7 > div { display: flex; gap: 14px; align-items: baseline; }
  .projectFacts7 dt { flex: 0 0 85px; margin: 0; }
  .projectActions7 { gap: 7px; }
}
@media (max-width: 650px) {
  .projectViewer7 { width: 96vw; max-width: 96vw; height: 84dvh; max-height: 84dvh; border-radius: 11px; }
  .projectViewerStage7 { padding: 8px; }
  .projectViewer7 > header, .projectViewer7 > footer { padding: 10px 12px; }
  .projectViewer7 > footer p { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .projectCard7 { transition: none; }
  .projectCard7:hover { transform: none; }
}
