.portfolio { --font: var(--body, Inter, sans-serif); }
.portfolio { scroll-margin-top: 90px; }
.portfolio-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 60px; }
.portfolio-heading h2 { margin-top: 16px; font-size: 46px; line-height: 1.12; letter-spacing: 0; }
.portfolio-heading > p { max-width: 470px; color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.portfolio-industries { margin-top: 38px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(120deg, rgba(62, 121, 210, .09), rgba(14, 16, 21, .75)); }
.portfolio-industries > p { margin: 0 0 15px; color: var(--silver); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.industry-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-filters button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 43px; padding: 11px 14px; border: 1px solid rgba(180, 195, 220, .17); border-radius: 7px; background: rgba(6, 10, 17, .45); color: var(--text-soft); font: 600 11px var(--font); cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.industry-filters button:hover { border-color: rgba(145, 195, 255, .55); color: #fff; background: rgba(42, 74, 116, .28); }
.industry-filters button[aria-pressed="true"] { border-color: #628dd0; background: #e3ecfa; color: #163962; box-shadow: 0 0 20px rgba(55, 116, 199, .13); }
.industry-filters [data-industry-count] { min-width: 20px; padding: 2px 5px; border-radius: 4px; color: inherit; background: rgba(126, 155, 197, .14); text-align: center; font-size: 10px; }
.portfolio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 35px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.portfolio-filters button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--text-soft); font: 600 12px var(--font); cursor: pointer; }
.portfolio-filters button[aria-pressed="true"] { background: var(--brand-blue); color: #ffffff; border-color: var(--brand-blue); }
.portfolio-filters button span { font-size: 11px; opacity: .7; }
.portfolio-filters button[aria-pressed="true"] span { opacity: 1; }
.portfolio-toolbar > p { color: var(--muted); font-size: 12px; margin: 0; white-space: nowrap; }
.industry-groups { display: grid; gap: 46px; }
.industry-group[hidden], .portfolio-empty[hidden], .project-dialog [hidden] { display: none; }
.industry-group-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.industry-group-number { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid rgba(129, 167, 222, .33); border-radius: 8px; color: #a9c9f2; background: rgba(37, 70, 116, .17); font-size: 11px; font-weight: 650; }
.industry-group-head h3 { margin: 0; color: #f2f5fa; font: 650 23px/1.3 var(--heading); letter-spacing: -.01em; }
.industry-group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.industry-group-head > p { order: 1; margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.industry-group[data-visible-projects="2"] .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industry-group[data-visible-projects="1"] .portfolio-grid { grid-template-columns: 1fr; }
.industry-group[data-visible-projects="1"] .project-card:not([hidden]) { display: grid; grid-template-columns: 1.12fr 1fr; }
.industry-group[data-visible-projects="1"] .project-image { aspect-ratio: 1.7; height: 100%; min-height: 280px; }
.industry-group[data-visible-projects="1"] .project-body { padding: 30px; }
.portfolio-empty { padding: 36px 24px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(27, 42, 63, .12); text-align: center; }
.portfolio-empty strong { display: block; color: var(--silver); font-size: 19px; }
.portfolio-empty p { margin: 12px auto 0; max-width: 500px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #101114; display: flex; flex-direction: column; }
.project-card[hidden] { display: none; }
.project-image { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1.44; background: #e3e7eb; cursor: pointer; overflow: hidden; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; transition: transform .25s; filter: none; }
.project-image:hover img { transform: scale(1.025); }
.project-status { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 4px; background: #dce8ff; color: #183a77; font: 700 10px var(--font); }
.project-status--preview { background: #f6dce1; color: #7d1828; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.project-body small { color: var(--cyan); font-size: 10px; letter-spacing: 0; }
.project-body h4 { margin: 10px 0 0; color: #f4f6f8; font: 650 21px/1.3 var(--heading); letter-spacing: 0; overflow-wrap: anywhere; }
.project-body > p { margin: 13px 0 20px; color: var(--text-soft); font-size: 12px; line-height: 1.75; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: auto; color: var(--silver); font-size: 10px; }
.project-link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 15px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: #e2e8ee; font: 650 12px var(--font); text-align: left; cursor: pointer; }
.project-link span { font-size: 18px; }
.project-link:hover { color: var(--cyan); }
.portfolio-note { margin: 24px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.portfolio-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 25px; }
.portfolio-next p { margin: 0; font-size: 15px; }
.project-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid #454a52; border-radius: 8px; background: #111316; color: #f4f6f8; }
.project-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.project-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.project-dialog-head .eyebrow { margin: 0 0 10px; font-size: 10px; }
.project-dialog h2 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: 0; }
.project-dialog-close { width: 40px; height: 40px; flex: none; border: 1px solid #494e57; border-radius: 4px; background: transparent; color: #f4f6f8; font-size: 25px; cursor: pointer; }
.project-dialog > img { display: block; width: 100%; height: auto; max-height: 62dvh; object-fit: contain; background: #07090c; }
.project-dialog > p { margin: 22px 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.project-dialog-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid #333c44; padding-top: 18px; }
.project-dialog-foot > span { color: var(--muted); font-size: 11px; }
.portfolio-filters button:focus-visible, .industry-filters button:focus-visible, .project-image:focus-visible, .project-link:focus-visible, .project-dialog-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.concept-browser { margin-top: 28px; border-block: 1px solid var(--line); }
.concept-browser > summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 0; font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.concept-browser > summary::-webkit-details-marker { display: none; }
.concept-browser > summary::after { content: "+"; font-size: 22px; }
.concept-browser[open] > summary::after { content: "−"; }
.concept-browser .showcase-grid { margin-top: 0; margin-bottom: 24px; }
@media (max-width: 1000px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portfolio-heading { gap: 30px; } .industry-group[data-visible-projects="1"] .project-body { padding: 24px; } }
@media (max-width: 700px) { .portfolio-heading { grid-template-columns: 1fr; gap: 12px; } .portfolio-heading h2 { font-size: 34px; } .portfolio-heading > p { font-size: 13px; } .portfolio-industries { margin-top: 26px; padding: 18px; } .industry-filters { gap: 7px; } .industry-filters button { flex: 1 1 auto; gap: 10px; padding: 10px 12px; font-size: 10px; } .portfolio-toolbar { align-items: start; flex-direction: column; gap: 14px; margin: 18px 0 28px; } .portfolio-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; } .portfolio-filters button { min-height: 48px; padding: 9px 5px; flex-wrap: wrap; gap: 4px; font-size: 10px; } .industry-groups { gap: 34px; } .industry-group-head { gap: 10px; margin-bottom: 16px; flex-wrap: wrap; } .industry-group-head h3 { font-size: 19px; flex: 1; } .industry-group-head::after { display: none; } .industry-group-head > p { font-size: 10px; padding-left: 44px; flex-basis: 100%; } .portfolio-grid, .industry-group[data-visible-projects="2"] .portfolio-grid { grid-template-columns: 1fr; gap: 18px; } .industry-group[data-visible-projects="1"] .project-card:not([hidden]) { display: flex; } .industry-group[data-visible-projects="1"] .project-image { height: auto; min-height: 0; aspect-ratio: 1.44; } .project-body, .industry-group[data-visible-projects="1"] .project-body { padding: 22px; } .project-dialog { padding: 18px; } .project-dialog h2 { font-size: 23px; } .project-dialog-foot .text-link { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .project-image img, .industry-filters button { transition: none; } }
