/* 03 — poster. The mark at the scale of the page: Т is drawn in ink,
   the photograph takes the place of Э, and every block below is set as a sheet. */
html[data-cover=poster] .home-cover {
  --gut: max(var(--margin), calc((100vw - 1680px) / 2 + var(--margin)));
  --pd: min(46svh, 29vw, 540px);
  --pu: calc(var(--pd) / 138);
  display: grid; align-content: start;
  grid-template-columns: var(--gut) calc(var(--pu) * 301.694) minmax(0, 1fr) var(--gut);
  grid-template-rows: auto auto auto 1fr;
  padding: 24px 0 72px;
}
html[data-cover=poster] body .home-cover { padding-top: 24px; }
html[data-cover=poster] :is(.cover-inner, .cover-copy) { display: contents; }
html[data-cover=poster] .cover-edition { grid-column: 2 / 4; grid-row: 1; margin-bottom: clamp(20px, 3.2svh, 36px); }
html[data-cover=poster] .home-cover::before,
html[data-cover=poster] .home-cover::after {
  content: ''; grid-column: 2; grid-row: 2 / 4; justify-self: start; align-self: start; background: currentColor;
}
html[data-cover=poster] .home-cover::before {
  width: calc(var(--pu) * 154.396); height: calc(var(--pu) * 9.839); margin-top: calc(var(--pu) * 2.358);
  transform-origin: left;
}
html[data-cover=poster] .home-cover::after {
  width: calc(var(--pu) * 9.839); height: calc(var(--pu) * 108.488);
  margin: calc(var(--pu) * 25.299) 0 0 calc(var(--pu) * 72.276); transform-origin: top;
}
html[data-cover=poster] .cover-media {
  position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 2 / 4; justify-self: end;
  width: var(--pd); height: var(--pd); border-radius: 50%; overflow: hidden;
}
html[data-cover=poster] .cover-media img { object-position: 62% 50%; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
/* The stroke of Э is cut out of the photograph. */
html[data-cover=poster] .cover-media::after {
  display: block; inset: auto; left: 0; top: 46.43%; width: 54.02%; height: 7.13%; background: var(--paper);
}
html[data-cover=poster] .home-cover:has(h1 a:hover, .text-link:hover) .cover-media img { transform: scale(1.06); }
html[data-cover=poster] .cover-copy .meta { display: block; grid-column: 3; grid-row: 2; align-self: start; padding-left: clamp(24px, 3vw, 56px); }
html[data-cover=poster] .cover-copy .lead {
  grid-column: 3; grid-row: 2; align-self: end; padding-left: clamp(24px, 3vw, 56px);
  font-size: clamp(16px, 1.35vw, 22px); line-height: 1.4; max-width: 520px;
}
html[data-cover=poster] .cover-copy > .text-link { grid-column: 3; grid-row: 3; justify-self: start; margin: 20px 0 0 clamp(24px, 3vw, 56px); }
html[data-cover=poster] .cover-copy h1 {
  grid-column: 2 / 4; grid-row: 4; align-self: end; max-width: none; margin-top: clamp(28px, 4.4svh, 56px);
  font-size: clamp(44px, 5.7vw, 104px); line-height: .98; letter-spacing: -.05em; text-wrap: balance;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-cover=poster][data-cover-enter] .home-cover::before { animation: te-poster-bar 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  html[data-cover=poster][data-cover-enter] .home-cover::after { animation: te-poster-stem 1s cubic-bezier(.16, 1, .3, 1) .18s both; }
  html[data-cover=poster][data-cover-enter] .cover-media { animation: te-poster-disc 1.4s cubic-bezier(.16, 1, .3, 1) .12s both; }
}
@keyframes te-poster-bar { from { transform: scaleX(0); } to { transform: none; } }
@keyframes te-poster-stem { from { transform: scaleY(0); } to { transform: none; } }
@keyframes te-poster-disc { from { clip-path: circle(0%); } to { clip-path: circle(50%); } }

/* The sheets below the cover. */
html[data-cover=poster] body.is-home .home-flow { gap: clamp(72px, 9vw, 150px); padding-top: clamp(40px, 6vw, 96px); }
html[data-cover=poster] body.is-home .section-heading { align-items: end; border-top: 1px solid var(--text); padding-top: 18px; }
html[data-cover=poster] body.is-home .section-heading h2 {
  font-size: clamp(64px, 12.4vw, 216px); line-height: .84; letter-spacing: -.055em; font-weight: 300; margin-left: -.03em;
}
html[data-cover=poster] body.is-home .story-card.type-feature {
  background: var(--accent); color: var(--on-accent); border: 0; justify-content: flex-end;
  padding: clamp(24px, 3.4vw, 56px); min-height: clamp(360px, 40vw, 640px);
}
html[data-cover=poster] body.is-home .type-feature :is(.meta, .meta a, .card-deck, .text-link, h2 a) { color: inherit; }
html[data-cover=poster] body.is-home .type-feature a:hover { color: inherit; text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
html[data-cover=poster] body.is-home .type-feature h2 { font-size: clamp(36px, 4.6vw, 80px); line-height: 1; letter-spacing: -.045em; }
html[data-cover=poster] body.is-home .home-laboratory { display: block; }
html[data-cover=poster] body.is-home .lab-heading h2 { font: inherit; font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--secondary); margin-bottom: 18px; }
html[data-cover=poster] body.is-home .lab-story,
html[data-cover=poster] body.is-home .lab-story:first-child,
html[data-cover=poster] body.is-home .lab-story:last-child {
  grid-template-columns: minmax(0, 1fr) auto; padding: clamp(16px, 2.2vw, 34px) 0; border-bottom: 1px solid var(--text);
}
html[data-cover=poster] body.is-home .lab-story:first-child { border-top: 1px solid var(--text); }
html[data-cover=poster] body.is-home .lab-story h3 {
  font-size: clamp(30px, 5.4vw, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 300;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), color .35s;
}
html[data-cover=poster] body.is-home .type-text h2 { font-size: clamp(34px, 4.8vw, 84px); line-height: 1; letter-spacing: -.045em; }
@media (hover: hover) and (pointer: fine) {
  html[data-cover=poster] body.is-home .lab-story:hover h3 { transform: translateX(clamp(12px, 2vw, 32px)); }
}
@media (min-width: 1024px) {
  html[data-cover=poster] body.is-home .story-grid:is(.two, .three) { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
  html[data-cover=poster] body.is-home .story-card .image-link { height: auto; }
  /* Sheet one: a wide plate and a disc that echoes the cover. */
  html[data-cover=poster] body.is-home .two:not(.mixed) > :nth-child(1) { grid-column: 1 / 8; margin-top: 0; }
  html[data-cover=poster] body.is-home .two:not(.mixed) > :nth-child(1) .image-link { aspect-ratio: 16/10; }
  html[data-cover=poster] body.is-home .two:not(.mixed) > :nth-child(1) h2 { font-size: clamp(40px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -.04em; }
  html[data-cover=poster] body.is-home .two:not(.mixed) > :nth-child(2) { grid-column: 9 / 13; margin-top: clamp(120px, 17vw, 280px); }
  html[data-cover=poster] body.is-home .two:not(.mixed) > :nth-child(2) .image-link { aspect-ratio: 1; border-radius: 50%; }
  /* Sheet two: a colour field beside a tall photograph. */
  html[data-cover=poster] body.is-home .two.mixed { align-items: stretch; }
  html[data-cover=poster] body.is-home .mixed > .type-feature { grid-column: 1 / 7; grid-row: 1; }
  html[data-cover=poster] body.is-home .mixed > :not(.type-feature) { grid-column: 8 / 13; grid-row: 1; align-self: end; margin-top: 0; }
  html[data-cover=poster] body.is-home .mixed > :not(.type-feature) .image-link { aspect-ratio: 4/5; }
  /* Sheet three: three steps down the page. */
  html[data-cover=poster] body.is-home .three > :nth-child(1) { grid-column: 1 / 5; margin-top: clamp(80px, 10vw, 170px); }
  html[data-cover=poster] body.is-home .three > :nth-child(1) .image-link { aspect-ratio: 3/4; }
  html[data-cover=poster] body.is-home .three > :nth-child(2) { grid-column: 5 / 10; }
  html[data-cover=poster] body.is-home .three > :nth-child(3) { grid-column: 10 / 13; margin-top: clamp(160px, 21vw, 340px); }
  html[data-cover=poster] body.is-home .three > :nth-child(3) .image-link { aspect-ratio: 1; border-radius: 50%; }
}
@media (max-width: 1023px) {
  html[data-cover=poster] .home-cover { --pd: min(34svh, 29vw); }
  html[data-cover=poster] body.is-home .story-grid > :nth-child(even) .image-link { aspect-ratio: 1; height: auto; border-radius: 50%; width: 78%; }
}
@media (max-width: 760px) {
  html[data-cover=poster] .home-cover {
    --gut: var(--margin); --pd: calc((100vw - 2 * var(--margin)) / 2.18619);
    grid-template-columns: var(--gut) minmax(0, 1fr) var(--gut); grid-template-rows: none; padding: 16px 0 88px;
  }
  html[data-cover=poster] .cover-edition { grid-column: 2; }
  html[data-cover=poster] .home-cover::before, html[data-cover=poster] .home-cover::after,
  html[data-cover=poster] .cover-media { grid-row: 2; }
  html[data-cover=poster] .cover-copy h1 { grid-column: 2; grid-row: 3; margin-top: 32px; font-size: clamp(34px, 10.4vw, 64px); }
  html[data-cover=poster] .cover-copy .meta { grid-column: 2; grid-row: 4; padding: 0; margin-top: 22px; }
  html[data-cover=poster] .cover-copy .lead { grid-column: 2; grid-row: 5; padding: 0; margin-top: 12px; font-size: 17px; }
  html[data-cover=poster] .cover-copy > .text-link { grid-column: 2; grid-row: 6; margin: 20px 0 0; }
  html[data-cover=poster] body.is-home .section-heading h2 { font-size: clamp(56px, 19vw, 120px); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-cover=poster] .cover-media img, html[data-cover=poster] body.is-home .lab-story h3 { transition: none; }
}

/* Poster with the final mark «Мост» (2026-11-14, Max: «убери анимацию… только форму, на весь экран в край, и
   прямоугольник, и полукруг фоткой»). One photograph fills the silhouette of the mark from edge to edge of the window:
   the frame of Т as a solid rectangle and the arch of Э as a solid half-ellipse, standing on one baseline. Proportions
   come from the mark (506.584 x 93.477; frame 262.052 wide from 4.912 below the top, arch 261.014 x 92.21). Still: no
   entrance, no lean towards the pointer, no zoom on hover. */
html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .home-cover::before, html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .home-cover::after { content: none; }
html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-media {
  grid-column: 1 / -1; grid-row: 2; justify-self: stretch; align-self: start; width: 100%; height: auto; margin: 0;
  aspect-ratio: 506.584 / 93.477; border-radius: 0; overflow: hidden; cursor: pointer; animation: none;
  clip-path: polygon(0.00% 100.00%, 0.00% 5.25%, 51.73% 5.25%, 51.73% 52.01%, 52.34% 48.02%, 53.01% 44.13%, 53.72% 40.37%, 54.47% 36.74%, 55.27% 33.26%, 56.11% 29.91%, 56.99% 26.73%, 57.91% 23.70%, 58.86% 20.85%, 59.85% 18.17%, 60.87% 15.67%, 61.92% 13.36%, 63.00% 11.24%, 64.10% 9.31%, 65.23% 7.59%, 66.37% 6.07%, 67.53% 4.75%, 68.71% 3.65%, 69.90% 2.76%, 71.10% 2.09%, 72.30% 1.63%, 73.51% 1.39%, 74.72% 1.37%, 75.93% 1.57%, 77.14% 1.98%, 78.34% 2.61%, 79.53% 3.46%, 80.71% 4.52%, 81.88% 5.79%, 83.02% 7.27%, 84.15% 8.96%, 85.26% 10.84%, 86.34% 12.92%, 87.40% 15.20%, 88.43% 17.66%, 89.42% 20.31%, 90.38% 23.13%, 91.31% 26.12%, 92.20% 29.27%, 93.04% 32.58%, 93.85% 36.04%, 94.62% 39.64%, 95.33% 43.38%, 96.01% 47.24%, 96.63% 51.22%, 97.20% 55.30%, 97.73% 59.48%, 98.20% 63.76%, 98.62% 68.11%, 98.98% 72.53%, 99.29% 77.02%, 99.55% 81.55%, 99.74% 86.13%, 99.89% 90.74%, 99.97% 95.36%, 100.00% 100.00%);
}
html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-media::after { display: none; }
html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; translate: none !important; scale: none !important; transform: none !important; transition: none !important; }
@media (min-width: 761px) {
  html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .home-cover { grid-template-columns: var(--gut) minmax(0, 1.5fr) minmax(0, 1fr) var(--gut); grid-template-rows: auto auto auto auto auto 1fr; }
  html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-copy h1 { grid-column: 2; grid-row: 3 / 7; align-self: start; margin-top: clamp(28px, 4.4svh, 56px); font-size: clamp(34px, 3.7vw, 68px); line-height: 1.02; }
  html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-copy .meta { grid-column: 3; grid-row: 3; align-self: start; margin-top: clamp(32px, 4.8svh, 62px); }
  html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-copy .lead { grid-column: 3; grid-row: 4; align-self: start; margin-top: 14px; }
  html[data-cover=poster]:is([data-mark=bridge], [data-mark=off]) .cover-copy > .text-link { grid-column: 3; grid-row: 5; }
}

/* On the poster the title takes the active colour when the pointer is on it or on the photograph. */
html[data-cover=poster] .cover-copy h1 a { transition: color .3s; }
html[data-cover=poster] .cover-copy h1 a:hover,
html[data-cover=poster] .home-cover:has(.cover-media:hover) .cover-copy h1 a { color: var(--accent-text, var(--accent)); text-decoration: none; }
html[data-cover=poster] .cover-media { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { html[data-cover=poster] .cover-copy h1 a { transition: none; } }
