/* Real builds and practical work, within the portfolio's existing night-sky palette. */
.work-main { padding-top: 144px; padding-bottom: 96px; }
.work-main > .back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 32px; }
.work-heading { margin-bottom: 48px; }
.work-heading h1 { margin: 0 0 20px; font-size: clamp(40px, 5vw, 68px); line-height: 1.1; font-weight: 550; letter-spacing: -.045em; }
.work-heading p { margin: 0; max-width: 62ch; color: #afbdce; font-size: 17px; line-height: 1.75; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.work-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #9eacbe30; border-radius: 14px; background: #0e121ddd; }
.work-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #080c14; border-radius: 13px 13px 0 0; overflow: hidden; }
.work-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-media-contain { padding: 24px; }
.work-media-contain > img { object-fit: contain; }
.work-photo-open { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: #080c14d9; border: 1px solid #c3d3e744; border-radius: 50%; font-size: 19px; }
.work-copy { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.work-copy h2 { margin: 0 0 16px; font-size: clamp(21px, 2vw, 25px); font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.work-copy > p { margin: 0 0 24px; color: #afbdce; font-size: 15px; line-height: 1.8; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding: 0; list-style: none; }
.work-tags li { padding: 5px 9px; border: 1px solid #aebdd030; border-radius: 5px; font-size: 11px; line-height: 1.5; color: #b3c4da; }
.work-symbol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(ellipse at 50% 60%, #24365055, transparent 75%), #0b111d; color: #b8d0ef; }
.work-symbol > svg, .work-symbol > img { width: 68px; height: 68px; object-fit: contain; }
.work-symbol > svg { stroke-width: 1.1; }
.work-symbol > span { font-size: 13px; color: #aebdd0; }
.work-diagnostics { display: grid; align-content: center; min-height: 200px; padding: 20px; background: radial-gradient(ellipse at 55% 65%, #24365065, transparent 75%), #0b111d; }
.diagnostic-console { min-width: 0; border: 1px solid #718cac50; border-radius: 8px; background: #090f1a; box-shadow: 0 12px 30px #02050b55; }
.diagnostic-toolbar { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #718cac25; color: #aebdd0; font-size: 11px; line-height: 1; }
.diagnostic-symbol { color: #a9c9ef; font: 600 12px Consolas, 'Courier New', monospace; }
.diagnostic-window-mark { width: 8px; height: 6px; margin-left: auto; border: 1px solid #718cac80; border-radius: 1px; }
.diagnostic-body { padding: 14px 12px 12px; color: #cbdcf2; font: 11px/1.8 Consolas, 'Courier New', monospace; white-space: nowrap; }
.diagnostic-command { margin-bottom: 10px; color: #e0e9f5; font-size: 12px; }
.diagnostic-command > span, .diagnostic-prompt > span:first-child { color: #86b5ee; }
.diagnostic-output { display: grid; grid-template-columns: 15ch 1fr; color: #aebdd0; animation: diagnostic-reveal .4s .3s both; }
.diagnostic-result { animation-delay: .8s; }
.diagnostic-result b { color: #afd0ba; font-weight: 400; }
.diagnostic-prompt { display: flex; align-items: center; gap: 8px; margin-top: 10px; animation: diagnostic-reveal .3s 1.1s both; }
.diagnostic-cursor { width: 6px; height: 13px; background: #a9c9ef; animation: diagnostic-caret .8s 1.4s step-end 3; }
@keyframes diagnostic-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes diagnostic-caret { 50% { opacity: 0; } }
.motion-paused .diagnostic-output, .motion-paused .diagnostic-prompt, .motion-paused .diagnostic-cursor { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .diagnostic-output, .diagnostic-prompt, .diagnostic-cursor { animation: none; }
}
.work-ai-tools { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 24px; }
.work-ai-tool { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.work-ai-tool img { width: clamp(44px, 4.5vw, 64px); height: clamp(44px, 4.5vw, 64px); object-fit: contain; }
.work-ai-tool span { font-size: 13px; color: #aebdd0; }
.work-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; list-style: none; padding: 0; margin: 0 0 24px; font-size: 12px; line-height: 1.6; color: #c3d3e7; }
.work-features li { padding-left: 13px; border-left: 1px solid #7b9fca; }
.work-visit { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; align-self: flex-start; margin-top: 16px; font-size: 14px; color: #cbdcf2; }
.work-main a:focus-visible { outline: 2px solid #b6cde9; outline-offset: 5px; }
.work-visit:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .work-main { padding-top: 108px; padding-bottom: 60px; }
  .work-main > .back-link { margin-bottom: 24px; }
  .work-heading { margin-bottom: 32px; }
  .work-heading p { font-size: 16px; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .work-copy { padding: 24px; }
}
