.project-page { padding-bottom: 80px; }
.project-hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(42px, 7vw, 90px); }
.project-back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 36px; padding: 8px 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; text-decoration: none; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.project-back:hover { color: var(--ink); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.project-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 280px); align-items: end; gap: clamp(30px, 6vw, 90px); }
.project-kind { margin: 0 0 12px; color: var(--accent-2); font-weight: 600; }
.project-heading h1 { max-width: 14ch; margin: 0; font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.project-summary { max-width: 65ch; margin: 26px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); text-wrap: pretty; }
.project-meta { margin: 0; border-top: 1px solid var(--border); }
.project-meta div { padding: 14px 0; border-bottom: 1px solid var(--border); }
.project-meta dt { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.project-meta dt i { width: 14px; color: var(--accent-2); text-align: center; }
.project-meta dd { margin: 3px 0 0; }
.project-cover { width: min(900px, 92vw); margin-bottom: clamp(60px, 9vw, 120px); }
.project-cover-trigger { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 4px; background: #080b10; overflow: hidden; cursor: zoom-in; }
.project-cover-trigger img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .25s ease, filter .25s ease; }
.project-cover-trigger:hover img { transform: scale(1.012); filter: brightness(.82); }
.project-cover-trigger:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.project-cover-action { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(8,11,16,.88); color: var(--ink); font: 600 13px/1.2 "Space Grotesk", sans-serif; }
.project-content { width: min(760px, calc(100% - 36px)); display: grid; gap: 0; }
.project-content section { padding: 38px 0; border-top: 1px solid var(--border); }
.project-content h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: clamp(24px, 3vw, 32px); }
.detail-icon { display: inline-grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(0,194,255,.34); border-radius: 4px; background: rgba(0,194,255,.07); color: var(--accent-2); font-size: 15px; }
.project-content p { max-width: 70ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.project-actions > div { display: flex; flex-wrap: wrap; gap: 12px; }
.project-actions .btn { display: inline-flex; align-items: center; gap: 9px; }
.technology-list { gap: 8px; }
.technology-badge { gap: 6px; padding: 6px 10px; color: var(--muted); background: transparent; }
.technology-badge i { width: 18px; color: currentColor; font-size: 18px; line-height: 1; text-align: center; }
.technical-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.technical-feature { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 10px; border-bottom: 1px solid var(--border); }
.technical-feature:nth-child(odd) { padding-left: 0; padding-right: 20px; }
.technical-feature:nth-child(even) { padding-left: 20px; padding-right: 0; }
.technical-feature > i { padding-top: 3px; color: var(--accent-2); font-size: 20px; text-align: center; }
.technical-feature span { display: grid; gap: 3px; }
.technical-feature strong { color: var(--ink); }
.technical-feature small { color: var(--muted); line-height: 1.45; }
.gallery-dialog { width: min(1100px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); padding: 52px 64px; border: 1px solid var(--border); border-radius: 4px; background: #080b10; color: var(--ink); }
.gallery-dialog::backdrop { background: rgba(0, 0, 0, .84); }
.gallery-dialog[open] { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; }
.gallery-dialog img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-close { position: absolute; top: 12px; right: 12px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 4px; background: #111722; color: var(--ink); }
.gallery-counter { position: absolute; top: 17px; left: 16px; color: var(--muted); font-size: 13px; }
.gallery-nav { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 4px; background: #111722; color: var(--ink); font-size: 20px; }
.gallery-nav[hidden] { display: none; }
footer .container { display: flex; justify-content: space-between; gap: 20px; }
footer a { color: var(--ink); }
@media (max-width: 720px) {
  .project-heading { grid-template-columns: 1fr; }
  .project-heading h1 { font-size: clamp(38px, 13vw, 58px); }
  footer .container { flex-direction: column; }
  .gallery-dialog { padding: 52px 12px 16px; }
  .gallery-dialog[open] { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
  .gallery-nav { width: 36px; height: 42px; }
  .project-cover-trigger { aspect-ratio: 4 / 3; }
  .technical-feature-list { grid-template-columns: 1fr; }
  .technical-feature:nth-child(n) { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
