/* ============ Проекты строками ============ */
.works { border-top: 1px solid var(--fg); }
.work { border-bottom: 1px solid var(--rule); }
.work__open {
  display: grid; width: 100%; text-align: left;
  grid-template-columns: clamp(34px,4vw,60px) minmax(0,1fr) clamp(84px,10vw,146px);
  gap: clamp(8px, 2vw, 26px); align-items: center;
  padding: clamp(11px, 1.5vw, 20px) clamp(8px, 2vw, 20px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.work__open:hover, .work__open:focus-visible { background: var(--fg); color: var(--bg); }
.work__n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.work__t {
  font-weight: 900; font-size: clamp(17px, 2.4vw, 38px); line-height: 1;
  letter-spacing: -.04em; text-transform: uppercase;
}
.work__c { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.work__open:hover .work__c, .work__open:focus-visible .work__c { color: var(--red-on-fg); }
.work__thumbs { display: flex; gap: 5px; justify-content: flex-end; }
.work__thumbs img {
  width: clamp(24px, 3vw, 42px); aspect-ratio: 3/4; object-fit: cover;
  filter: grayscale(1) contrast(1.1); opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), filter .4s var(--ease);
}
.work__open:hover .work__thumbs img,
.work__open:focus-visible .work__thumbs img { opacity: 1; transform: none; filter: grayscale(0) contrast(1); }
.work__open:hover .work__thumbs img:nth-child(2) { transition-delay: .05s; }
.work__open:hover .work__thumbs img:nth-child(3) { transition-delay: .1s; }
/* Креативная строка видна сразу — это главное в кейсе, прятать её под ховер нечестно. */
.work__head { display: grid; gap: 5px; }
.work__idea {
  grid-column: 2 / -1; margin-top: 10px; max-width: 46ch;
  font-weight: 500; font-size: clamp(15px, 1.5vw, 22px); line-height: 1.2;
  letter-spacing: -.025em; color: var(--red-on-bg);
  transition: color var(--dur) var(--ease);
}
.work__open:hover .work__idea,
.work__open:focus-visible .work__idea { color: var(--red-on-fg); }
@media (max-width: 700px) {
  .work__open { grid-template-columns: 30px 1fr; }
  .work__thumbs { display: none; }
}

/* ============ Ещё из event ============ */
.more-label { display: block; margin-top: clamp(38px, 6vw, 82px); }
.more { margin-top: 14px; border-top: 1px solid var(--rule); }
.more__item { border-bottom: 1px solid var(--rule); }
.more__item > a, .more__item > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: clamp(11px, 1.4vw, 17px) clamp(8px, 2vw, 20px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.more__item > a:hover, .more__item > a:focus-visible { background: var(--fg); color: var(--bg); }
.more__t { font-weight: 500; font-size: clamp(14px, 1.4vw, 20px); letter-spacing: -.02em; }
.more__cta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-soft); flex: 0 0 auto;
}
.more__item > a:hover .more__cta { color: var(--red-on-fg); }

/* ============ Оверлей кейса ============ */
.ov { position: fixed; inset: 0; z-index: 200; }
.ov[hidden] { display: none; }
.ov__scrim { position: absolute; inset: 0; background: rgba(18, 17, 16, .78); }
.ov__panel {
  position: absolute; inset: var(--frame); margin: auto;
  width: min(1180px, 100%); max-height: 100%;
  background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column;
}
.ov__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px var(--gutter); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.ov__close {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .25s var(--ease);
}
.ov__close::before { content: '[ '; } .ov__close::after { content: ' ]'; }
.ov__close:hover { color: var(--red-dark); }
.ov__body { overflow-y: auto; padding: clamp(24px,4vw,56px) var(--gutter) clamp(40px,6vw,88px); }
.ov__title {
  font-weight: 900; font-size: clamp(30px, 6.4vw, 96px); line-height: .9;
  letter-spacing: -.05em; text-transform: uppercase; margin-block: 10px 6px;
}
.ov__sub { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ov__idea {
  margin-top: clamp(20px, 3vw, 38px); font-weight: 500;
  font-size: clamp(19px, 2.4vw, 40px); line-height: 1.14; letter-spacing: -.035em;
  text-transform: uppercase; max-width: 22ch; color: var(--red);
}
.ov__row { display: grid; gap: 4px 30px; padding-block: 15px; border-top: 1px solid var(--line); }
@media (min-width: 780px) { .ov__row { grid-template-columns: 150px 1fr; } }
.ov__row .tag { color: var(--muted); }
.ov__rowbody { max-width: 62ch; }
.ov__results {
  display: grid; gap: 20px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.ov__num { display: block; font-weight: 900; font-size: clamp(26px, 3vw, 46px); line-height: 1; letter-spacing: -.045em; color: var(--red); }
.ov__numlabel { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); max-width: 24ch; }
.ov__note { margin-top: 20px; font-size: 13px; color: var(--muted); }
.ov__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.ov__gallery {
  display: grid; gap: 10px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.ov__gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .5s var(--ease); }
.ov__gallery img:hover { filter: grayscale(0); }
.ov__panel .tag--red { color: var(--red-dark); }
.ov__panel .tag { color: var(--muted); }

