.igor-kokot---logo { color: inherit; text-decoration: none; }
.igor-kokot---logo:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.about-me-container { padding-left: 20px; padding-right: 20px; }
.about-me-heading, .about-me-paragraph { padding-left: 0; padding-right: 0; }
#portfolio, #contact { scroll-margin-top: var(--nav-height, 64px); }

/* Consistent project rows and a muted year panel on the right. */
.portfolio-year {
  grid-template: "projects year" / minmax(0, 2fr) minmax(100px, 1fr);
  align-items: stretch;
  gap: 30px;
}
.portfolio-year > .left-div {
  grid-area: projects;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  padding-left: 0;
}
.portfolio-year > .container-4 {
  grid-area: year;
  background-color: var(--year-color);
  min-width: 0;
}
.portfolio-year .year-heading { position: sticky; top: calc(var(--nav-height, 60px) + 20px); margin: 40px 0; }
.portfolio-year .div-block { min-width: 0; overflow-wrap: anywhere; }
.portfolio-year .image---pulse { width: 100%; height: auto; }
.portfolio-year-empty { grid-column: 1 / -1; padding: 30px 10px; margin: 0; color: #ccc; font-size: 18px; }
@media (max-width: 767px) {
  .portfolio-year { gap: 12px; grid-template-columns: minmax(0, 1fr) 90px; }
  .portfolio-year > .left-div { grid-template-columns: minmax(0, 1fr); }
  .portfolio-year .year-heading { font-size: 28px; }
}

/* Center the contact card and keep the form inside narrow screens. */
.contact-card.form-block {
  justify-self: center;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 24px;
  box-sizing: border-box;
}
.contact-card .form { width: 100%; margin: 0; }
.contact-card .project-title { text-align: center; }
.contact-card .button { width: 100%; }
.contact-card textarea { min-height: 140px; resize: vertical; }
.contact-direct { margin: 16px 0 0; color: #333; text-align: center; overflow-wrap: anywhere; }
.contact-direct a { color: #0d0d40; }
.project-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.portfolio-year .project-entry {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.project-entry > .client { grid-column: 1 / -1; padding: 10px; margin: 0; }
@media (max-width: 767px) {
  .portfolio-year .project-entry { grid-template-columns: minmax(0, 1fr); }
}

/* Vertically center video previews beside each project's text and link. */
.portfolio-year .div-block:has(> .project-video) {
  align-self: center;
}
.portfolio-year .div-block:has(+ .div-block > .project-video) {
  align-self: center;
}

.portfolio-year + .portfolio-year {
  border-top: 1px solid rgba(228, 235, 243, .3);
  margin-top: 28px;
  padding-top: 28px;
}

.video-preview { position: relative; overflow: hidden; background: #101010; }
.video-play { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #101010; color: white; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; border-radius: 12px; background: #c00; color: white; font-size: 24px; line-height: 1; }
.video-play:focus-visible { outline: 3px solid white; outline-offset: -4px; }
.video-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Match the album cover to the video preview proportions. */
.portfolio-year img[src="images/sick7-warp-weft.jpg"] { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: center; border-radius: 10px; }
.portfolio-year .div-block:has(img[src="images/sick7-warp-weft.jpg"]) { align-self: center; }

.navbar .w-nav-link { color: #222; }
.navbar .w-nav-link.is-section-active { color: #0082f3; }
.pending-project-link { cursor: default; opacity: .65; }

.project-thumbnail { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: center; border-radius: 10px; }
.portfolio-year .project-still,
.portfolio-year .div-block:has(+ .project-still) { align-self: center; }

.navbar-container { display: flex; align-items: center; }
.navbar-container::before, .navbar-container::after { display: none; }
.navbar-container > .w-nav-menu { margin-left: auto; }
.navbar-container > .w-nav-button { margin-left: auto; }
.language-switch { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 8px; margin-right: 12px; border-radius: 6px; color: #222; text-decoration: none; font-size: 13px; line-height: 20px; }
.language-switch:hover, .language-switch:focus-visible { color: #0082f3; background: #ffffff80; }
@media (max-width: 479px) {
  .igor-kokot---logo { padding: 16px 10px; font-size: 21px; }
  .language-switch { margin-right: 0; padding: 6px; }
}

/* Polish typography uses the same family as project headings. */
html[lang="pl"] body,
html[lang="pl"] body *:not([class^="w-icon-"]):not([class*=" w-icon-"]) { font-family: Inconsolata, monospace; }

.language-switch { margin-left: 12px; margin-right: 0; }
.navbar .w-nav-link,
.language-switch { border-radius: 6px; transition: color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.navbar .w-nav-link:hover,
.navbar .w-nav-link:focus-visible,
.language-switch:hover,
.language-switch:focus-visible { color: #0082f3; background-color: #ffffff80; box-shadow: inset 0 0 0 1px #0082f340; }
.navbar .w-nav-link.is-section-active { color: #0082f3; }
@media (prefers-reduced-motion: reduce) {
  .navbar .w-nav-link, .language-switch { transition: none; }
}

/* One shared content edge for the header, introduction, filters and every year. */
:root { --content-width: 1240px; --page-gutter: 20px; }
.navbar-container,
.about-me-container,
.portfolio-filters,
.year-container,
.contact-section {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 0;
}
#projects { border: 0; }
.portfolio-year > .left-div,
.portfolio-year .project-entry { column-gap: 20px; }
.portfolio-year .div-block,
.project-entry > .client { padding-inline: 0; }
.navbar-container > .igor-kokot---logo { order: -1; padding-left: 0; }
@media (min-width: 992px) {
  .navbar-container > .w-nav-menu { display: flex; align-items: center; gap: 16px; }

}
.contact-section { margin-top: 40px; margin-bottom: 40px; }
@media (max-width: 479px) {
  :root { --page-gutter: 16px; }
}


/* Compact, matching hover and focus targets for every navigation control. */
.navbar .w-nav-link,
.navbar .language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0;
  min-height: 36px;
  line-height: 20px;
  border-radius: 6px;
}
@media (max-width: 991px) {
  .navbar .w-nav-menu { padding: 12px 20px; }
  .navbar .w-nav-link { display: flex; width: fit-content; }
}

.project-separator { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 10px; color: #a0a7ae; font-size: 12px; }
.project-separator::before, .project-separator::after { content: ""; flex: 1; height: 1px; background: #ffffff20; }
.project-separator[hidden] { display: none; }
#projects > .year-container:has(#contact) { border-top: 1px solid rgba(228, 235, 243, .3); border-radius: 0; margin-top: 28px; padding-top: 36px; }

/* Section dividers share the subtle line and content width of year dividers. */
.footer-divider-two {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
  height: 1px;
  margin-inline: auto;
  background-color: rgba(228, 235, 243, .3);
  border: 0;
  border-radius: 0;
}
.footer-light { padding-inline: 0; border: 0; }
.footer-container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--content-width);
}
.footer-container .footer-divider-two { width: 100%; }

/* Keep the introduction justified and service lists left aligned. */
.about-me-paragraph:not(.about-me-paragraph---start) { text-align: left; }

/* A compact first contact form; visitors can expand the message field. */
#intro-contact.contact-card { padding: 16px 24px; }
#intro-contact .project-title { font-size: 24px; line-height: 1.2; margin-top: 0; margin-bottom: 16px; }
#intro-contact textarea { min-height: 58px; height: 58px; line-height: 20px; padding: 8px 12px; box-sizing: border-box; }
#intro-contact .contact-direct { margin-top: 12px; }
