
.project-row + .project-row { margin-top: clamp(18px, 2.5vh, 34px); }

.project-row--gate {
  display: flex;
  align-items: flex-start;
}

.ozon-trigger {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.thing-image {
  width: auto;
  height: 0.78em;
  margin-left: 0.12em;
  object-fit: contain;
  vertical-align: -0.04em;
}

.thing-image--artlebedev { height: 0.88em; }

.ozon-protected { visibility: hidden; }

.ozon-inline-access {
  position: relative;
  display: inline-block;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-0.2em);
  white-space: nowrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(36px, 5.2vw, 88px);
  line-height: 0.98;
  text-align: center;
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ozon-access-code {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ozon-code-slots {
  display: grid;
  grid-template-columns: repeat(4, 0.72em);
  gap: 0.12em;
  color: var(--accent);
}

.ozon-code-slot {
  position: relative;
  display: grid;
  min-height: 0.98em;
  place-items: center;
  border-bottom: 1px solid currentColor;
  line-height: 0.98;
}

.ozon-code-slot.is-current::after {
  position: absolute;
  top: 0.08em;
  bottom: 0.12em;
  left: 50%;
  width: 1px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
  animation: ozon-caret 900ms steps(1, end) infinite;
}

@keyframes ozon-caret {
  50% { opacity: 0; }
}

.ozon-inline-access:focus-within .ozon-code-slot { border-color: #e96820; }
.ozon-inline-access.is-invalid .ozon-code-slot { color: #c84328; }

.ozon-password-hint {
  display: block;
  margin-top: 0.22em;
  color: #b8b8b3;
  font-size: 0.19em;
  letter-spacing: 0.04em;
  line-height: 1;
}

.project-row--gate.is-open .ozon-inline-access {
  width: 3.25em;
  margin-left: 0.55em;
  opacity: 1;
  transform: translateX(0);
}

.project-page {
  max-width: 920px;
  padding-bottom: 80px;
}

.project-title {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(36px, 5.2vw, 88px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.98;
}

.project-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-intro {
  max-width: 690px;
  margin-top: 42px;
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.25;
}

.project-intro p { margin: 0; }

.project-draft {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.project-cases {
  max-width: 690px;
  margin-top: 52px;
}

.project-case + .project-case {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
}

.project-case h2 {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.14;
}

.project-case p {
  margin: 0;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.48;
}

.project-metric {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.project-art-story {
  max-width: 690px;
  margin-top: 52px;
}

.project-art-story p {
  margin: 0;
  font-size: 18px;
  line-height: 1.48;
}

.project-art-story a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.back-link {
  display: inline-block;
  margin-top: 42px;
  color: var(--muted);
  font-size: 18px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: var(--accent); }

@media (max-width: 680px) {
  .project-row + .project-row { margin-top: 18px; }
  .project-title { font-size: clamp(31px, 8vw, 52px); }
  .project-meta { margin-top: 16px; font-size: 16px; }
  .project-intro { margin-top: 32px; }
  .project-draft { font-size: 13px; }
  .project-cases { margin-top: 38px; }
  .project-case + .project-case { margin-top: 30px; padding-top: 30px; }
  .project-case p { font-size: 16px; }
  .project-art-story { margin-top: 38px; }
  .project-art-story p { font-size: 16px; }
  .back-link { margin-top: 28px; }
  .project-row--gate { align-items: flex-start; flex-wrap: wrap; }
  .ozon-inline-access { font-size: clamp(31px, 8vw, 52px); }
  .project-row--gate.is-open .ozon-inline-access { margin-left: 0.35em; }
}
