:root {
  --ink: #06090c;
  --surface: #0d1319;
  --surface-2: #111a22;
  --line: #27313a;
  --paper: #f3f6f8;
  --paper-line: #cbd2d7;
  --muted: #94a1ac;
  --blue: #168bd2;
  --sky: #78d4ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
h1, h2, p, a { overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #071016; }
img { display: block; max-width: 100%; }
.site-shell { width: 100%; background: var(--ink); }
.container { width: min(100% - 144px, 1296px); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.project-hero { padding: 94px 0 72px; border-bottom: 1px solid var(--line); }
.project-kicker { color: var(--sky); }
h1 { margin: 20px 0 0; font-size: clamp(56px, 8vw, 110px); font-weight: 600; line-height: .9; letter-spacing: -.065em; }
.hero-meta { display: grid; grid-template-columns: 5fr 3fr; gap: 72px; align-items: end; margin-top: 64px; }
.hero-copy { max-width: 760px; margin: 0; color: #b8c4cc; font-size: 20px; line-height: 1.65; }
.live-link { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--blue); background: var(--blue); color: #04111a; font-family: Consolas, "Courier New", monospace; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.live-link:hover, .live-link:focus-visible { transform: translateY(-2px); background: var(--sky); }

.cover { padding: 32px 0 0; }
.cover img { width: 100%; height: auto; border: 1px solid var(--line); }
.overview { padding: 108px 0 116px; }
.overview-grid { display: grid; grid-template-columns: 3fr 7fr; gap: 72px; }
.overview-label { color: var(--blue); }
.overview-copy p { max-width: 820px; margin: 0 0 24px; color: #c6cdd3; font-size: 21px; line-height: 1.65; }
.overview-copy p:last-child { margin-bottom: 0; }

.gallery { padding: 104px 0 116px; border-top: 1px solid var(--line); background: #0a0e12; }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
h2 { margin: 0; font-size: clamp(44px, 5vw, 70px); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }
.gallery-count { color: var(--sky); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-item { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .36s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out; }
.gallery-item:hover img, .gallery-item:focus-visible img { opacity: .78; transform: scale(1.012); }
.gallery-item:focus-visible { position: relative; z-index: 1; }

body.lightbox-open { overflow: hidden; }
.lightbox { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,9,12,.97); color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: rgba(6,9,12,.94); }
.lightbox[open] { animation: lightbox-fade-in .2s ease-out both; }
.lightbox-stage { position: relative; display: grid; width: 100%; height: 100%; place-items: center; padding: 72px 112px 56px; }
.lightbox-media { display: grid; width: 100%; height: 100%; place-items: center; }
.lightbox[open] .lightbox-media { animation: lightbox-scale-in .24s cubic-bezier(.16, 1, .3, 1) both; }
.lightbox-image { max-width: 100%; max-height: calc(100dvh - 128px); object-fit: contain; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.lightbox-control { position: absolute; z-index: 2; display: inline-grid; width: 56px; height: 56px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--paper); cursor: pointer; transition: opacity .2s ease-out; }
.lightbox-control:hover { opacity: .72; }
.lightbox-control:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.lightbox-control[hidden] { display: none; }
.lightbox-control svg { width: 26px; height: 26px; }
.lightbox-close { top: 22px; right: 24px; }
.lightbox-previous { top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 24px; transform: translateY(-50%); }
.lightbox-counter { position: absolute; z-index: 2; top: 34px; left: 28px; color: var(--sky); }

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-scale-in {
  from { opacity: .45; transform: scale(.975); }
  to { opacity: 1; transform: scale(1); }
}

.footer { padding: 54px 0 60px; background: var(--ink); }
    .footer-logo { grid-column: 1 / span 3; }
    .footer-logo img { width: 132px; height: auto; padding: 7px; margin: auto;}
    .footer-social { display: flex; gap: 10px; margin-top: 14px; justify-content: center;}
    .footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #5c6b77; color: #c6cdd3; }
    .footer-social a:hover, .footer-social a:focus-visible { border-color: var(--sky); color: var(--sky); }
    .footer-social svg { width: 21px; height: 21px; }
    .footer-main {
    grid-column: 5 / span 4;
    justify-self: center;
    text-align: center;
    }
    .footer-url { font-size: 28px; }
    .footer-note { margin-top: 10px; color: #74818b; font-size: 13px; }
    .footer-contacts { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }
    .footer-contact { display: inline-flex; min-height: 44px; align-items: center; color: #97a3ad; font-size: 14px; margin: auto; }
    .footer-contact:hover, .footer-contact:focus-visible { color: var(--sky); }
    .footer-links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 13px; color: #97a3ad; text-align: right; }
    .footer-links a { display: inline-flex; min-height: 44px; align-items: center; justify-content: flex-end; }


@media (max-width: 900px) {
  .container { width: min(100% - 48px, 1296px); }
  .hero-meta, .overview-grid { grid-template-columns: 1fr; gap: 36px; }
  .live-link { justify-self: start; }
  .footer-logo { grid-column: 1 / span 2; }
  .footer-main { grid-column: 4 / span 6; }
  .footer-links { grid-column: 10 / span 3; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1296px); }
  .project-hero { padding: 68px 0 58px; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-meta { margin-top: 42px; }
  .hero-copy { font-size: 18px; }
  .cover { padding-top: 18px; }
  .overview, .gallery { padding: 76px 0 84px; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .lightbox-stage { padding: 76px 16px 72px; }
  .lightbox-image { max-height: calc(100dvh - 148px); }
  .lightbox-control { width: 48px; height: 48px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-previous { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-counter { top: 30px; left: 18px; }
  .footer-logo, .footer-main, .footer-links { grid-column: 1 / -1; }
  .footer-main { margin-top: 26px; }
  .footer-links { align-items: flex-start; margin-top: 32px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-link, .gallery-item img, .lightbox-control { transition: none; }
  .lightbox[open], .lightbox[open] .lightbox-media { animation: none; }
}

