﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@900&family=Inter:wght@400;500;600&display=swap");

:root{
  --bg:#050505;
  --panel:#080808;
  --line:#1a1a1a;
  --text:#f2f2f2;
  --muted:#8a8a8a;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.viewer-open{
  overflow:hidden;
}

img{
  display:block;
  max-width:100%;
}

button{
  font:inherit;
}

.container{
  width:min(1320px, calc(100% - 64px));
  margin:0 auto;
}

.sticky-line{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(5,5,5,.98);
  border-bottom:1px solid var(--line);
  opacity:0;
  transform:translateY(-100%);
  transition:transform .22s ease, opacity .22s ease;
}

.sticky-line__inner{
  font-family:"Montserrat", Arial, sans-serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  text-transform:uppercase;
  white-space:nowrap;
}

body.scrolled .sticky-line{
  opacity:1;
  transform:translateY(0);
}

.hero{
  min-height:30vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 0 14px;
}

.hero__inner{
  text-align:center;
}

.hero__title{
  margin:0;
  font-family:"Montserrat", Arial, sans-serif;
  font-size:clamp(44px, 10vw, 132px);
  line-height:1;
  letter-spacing:0;
  font-weight:900;
  text-transform:uppercase;
  white-space:nowrap;
}

.main{
  padding-bottom:64px;
}

.works{
  padding-top:4px;
}

.works__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:40px 32px;
}

.work-card{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}

.work-card__preview{
  position:relative;
  aspect-ratio:1 / 1;
  background:var(--panel);
  border:1px solid var(--line);
  overflow:hidden;
}

.work-card__preview.has-image{
  background-color:#0b0b0b;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.work-card__placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  font-size:13px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#666666;
  text-align:center;
}

.work-card__meta{
  padding-top:14px;
  text-align:center;
}

.work-card__label{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  line-height:1.5;
}

.viewer{
  position:fixed;
  inset:0;
  z-index:100;
  background:#050505;
}

.viewer[hidden]{
  display:none;
}

.viewer__top{
  height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 18px;
  border-bottom:1px solid var(--line);
  background:#050505;
}

.viewer__title{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.viewer__actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.viewer__action,
.viewer__close{
  min-width:72px;
  height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  background:#0b0b0b;
  color:var(--text);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  cursor:pointer;
}

.viewer__body{
  height:calc(100vh - 54px);
}

.viewer__frame{
  width:100%;
  height:100%;
  border:0;
  background:#000;
}

@media (max-width: 1100px){
  .works__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .container{
    width:min(1320px, calc(100% - 28px));
  }

  .hero{
    min-height:24vh;
    padding:26px 0 10px;
  }

  .hero__title{
    font-size:clamp(32px, 12vw, 72px);
  }

  .sticky-line{
    height:42px;
  }

  .sticky-line__inner{
    font-size:11px;
  }

  .works__grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .viewer__top{
    padding:0 12px;
  }

  .viewer__actions{
    gap:8px;
  }

  .viewer__action,
  .viewer__close{
    min-width:auto;
    padding:0 10px;
  }
}
