.page-content img,
.article-image-link img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 15px;
}

.article-image-link {
  display: block;
}

.mermaid {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.figure-caption {
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.plug {
  display: grid;
  gap: 0.35rem;
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary-color);
  background: var(--secondary-background-color);
}

.plug a {
  width: max-content;
  font-weight: 600;
}

#content a,
footer a {
  color: var(--text-link-color) !important;
}

#content a:hover,
footer a:hover {
  color: var(--primary-color) !important;
}

.btn-outline-info {
  border-color: var(--primary-color) !important;
  border-radius: 15px !important;
  color: var(--primary-color) !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--secondary-color) !important;
}

#profileHeader .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.1;
  white-space: nowrap;
}

#profileHeader .navbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0;
}

#profileHeader .navbar-nav,
#profileHeader .navbar-text,
#profileHeader .navbar-text > .text-center {
  align-items: center;
}

#profileHeader .navbar-text {
  display: flex;
}

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

#theme-toggle svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

#about .image img,
body #about .image img.img-thumbnail.rounded-circle {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
}

#about {
  padding-bottom: 1.5rem !important;
}

#about .row {
  padding-bottom: 2rem !important;
}

#recent-posts {
  padding-top: 1.5rem !important;
}

#recent-posts .card,
#list-page .card {
  border-radius: 15px !important;
  overflow: hidden;
}

#recent-posts .card-body,
#recent-posts .card-footer,
#list-page .card-body,
#list-page .post-footer {
  border-radius: 0;
}

#recent-posts .card-img-top,
#list-page .card-img-top {
  display: block;
  width: 100%;
  height: 180px !important;
  object-fit: cover;
  border-radius: 15px;
}

#recent-posts .article-image-link img,
#list-page .article-image-link img {
  border-radius: 15px;
}

#recent-posts .card-text *,
#list-page .card-text * {
  background-color: transparent !important;
}

.project-category {
  margin-top: 2.5rem;
}

.project-category:first-of-type {
  margin-top: 1.5rem;
}

.project-category-title {
  margin-bottom: 0.75rem;
  color: var(--text-secondary-color);
  font-size: 1.5rem;
  text-align: center;
}

body.dark #recent-posts .card,
body.dark #list-page .card {
  background-color: #1f2937;
  color: var(--text-color);
}

body.dark #recent-posts .card .card-body,
body.dark #recent-posts .card .card-footer,
body.dark #list-page .card .card-body,
body.dark #list-page .card .post-footer {
  background-color: #1f2937 !important;
}

body.dark #recent-posts .card-text,
body.dark #recent-posts .card-footer,
body.dark #list-page .card-text,
body.dark #list-page .post-footer {
  color: var(--text-color);
}

body.dark #recent-posts .card-title,
body.dark #list-page .card-title {
  color: var(--text-color);
}

.contact-socials,
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contact-socials a,
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.contact-socials svg,
.footer-socials svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.contact-socials a:hover,
.footer-socials a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

#single aside.toc:has(nav#TableOfContents:empty) {
  display: none;
}

@media (max-width: 420px) {
  #profileHeader .navbar-brand {
    font-size: 1.05rem;
  }

  #profileHeader .navbar-brand img {
    width: 36px;
    height: 36px;
  }
}

/* FLEXEEVSKY editorial system */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Unbounded:wght@400;500;600&display=swap');

@font-face {
  font-family: "Poiret One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poiret-one-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Poiret One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poiret-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --lab-ink: #11110f;
  --lab-paper: #f2f0e9;
  --lab-acid: #ff6a4d;
  --lab-orange: #ff7457;
  --lab-line: color-mix(in srgb, currentColor 18%, transparent);
  --lab-display: "Unbounded", sans-serif;
  --lab-body: "Manrope", sans-serif;
  --lab-page-gutter: clamp(1.75rem, 4vw, 4rem);
}

html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--lab-body) !important;
  background: var(--lab-paper) !important;
}
body.light, body.light > *, body.light #content { background-color: var(--lab-paper) !important; }
body.dark { --lab-paper: #121212; --lab-ink: #f4f1e8; }
body.dark, body.dark > *, body.dark #content { background-color: var(--lab-paper) !important; }

.primary-font, h1, h2, h3, h4, h5, h6 { font-family: var(--lab-display) !important; }
.secondary-font, p, a, span { font-family: var(--lab-body); }
.lab-shell { width: 100%; max-width: 1508px; margin-inline: auto; padding-inline: var(--lab-page-gutter); }

#profileHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--lab-line);
  background: color-mix(in srgb, var(--lab-paper) 88%, transparent) !important;
  backdrop-filter: blur(18px);
  transform: translateY(0);
  opacity: 1;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, box-shadow .35s ease, background-color .35s ease;
  will-change: transform, opacity;
}
#profileHeader.showHeaderOnTop { position: sticky; box-shadow: 0 12px 40px color-mix(in srgb, var(--lab-paper) 65%, transparent); }
#profileHeader.header-hidden { transform: translateY(calc(-100% - 2px)); opacity: 0; pointer-events: none; }
#profileHeader .navbar { min-height: 104px; padding: 0 !important; }
#profileHeader .navbar > div { max-width: 1508px; margin-inline: auto !important; padding-inline: var(--lab-page-gutter); }
#profileHeader .navbar-brand { gap: 0; color: var(--lab-ink) !important; font-family: "Poiret One", Arial, Helvetica, sans-serif !important; font-size: 0 !important; font-weight: 600; letter-spacing: 0; }
#profileHeader .navbar-brand img { width: 80px; height: 80px; }
#profileHeader .navbar-nav { column-gap: 1rem; }
#profileHeader .nav-link { position: relative; color: var(--lab-ink) !important; font-size: 1.05rem; font-weight: 600; }
#profileHeader .nav-link:has(.telegram-nav-icon) { display: inline-flex; align-items: center; gap: 5px; }
#profileHeader .navbar-text:has(.telegram-nav-icon) { margin-left: -.35rem; }
#profileHeader .telegram-nav-icon { width: 16px; height: 16px; flex: 0 0 auto; color: #6ab0e6; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), filter .3s; }
#profileHeader .nav-link:hover .telegram-nav-icon { transform: translate(3px, -3px) rotate(-15deg); filter: drop-shadow(-2px 2px 2px rgba(0, 96, 160, .15)); }
#profileHeader .nav-link::after { content: ""; position: absolute; inset: auto .5rem .25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.22,1,.36,1); }
#profileHeader .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
#theme-toggle { color: var(--lab-ink) !important; background: transparent !important; }

.portfolio-home { color: var(--lab-ink); }
.lab-hero { min-height: calc(100svh - 82px); display: grid; align-items: center; padding: clamp(3.5rem, 8vw, 7rem) 0; }
.lab-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .55fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.lab-kicker, .lab-section-index { margin: 0 0 clamp(2.5rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 600; }
.lab-kicker { display: flex; align-items: center; gap: .7rem; }
.lab-kicker-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lab-acid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lab-acid) 25%, transparent); }
.lab-hero h1 { max-width: 1050px; margin: 0; color: var(--lab-ink) !important; font-size: clamp(2.8rem, 6vw, 6.4rem); font-weight: 500; line-height: .94; letter-spacing: -.075em; text-wrap: balance; }
.lab-hero h1 em, .lab-manifesto h2 em { font-family: Georgia, serif; font-weight: 400; }
.lab-hero h1 .lab-accent, .lab-manifesto h2 em { color: var(--lab-acid); }
.lab-hero-bottom { display: grid; grid-template-columns: minmax(230px, 460px) auto; gap: 2rem; align-items: end; margin-top: clamp(3rem, 7vw, 7rem); }
.lab-hero-bottom p { margin: 0; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.65; }
.lab-arrow-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 190px; padding: .9rem 0; border-bottom: 1px solid; color: var(--lab-ink) !important; text-decoration: none; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.lab-arrow-link span { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.lab-arrow-link:hover span { transform: translate(6px, -6px); }
.lab-portrait { margin: 0 0 clamp(5rem, 10.5vw, 7rem); }
.lab-portrait-frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; background: #cbc8bd; }
.lab-portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--lab-orange) 16%, transparent), transparent 45%, color-mix(in srgb, var(--lab-acid) 24%, transparent)); mix-blend-mode: soft-light; pointer-events: none; }
.lab-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: saturate(1.08) contrast(1.03); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .7s ease; }
.lab-portrait:hover img { transform: scale(1.035); filter: saturate(1.2) contrast(1.03); }

.lab-marquee { overflow: hidden; padding: 1.15rem 0; color: #11110f; background: var(--lab-acid) !important; }
.lab-marquee-track { display: flex; width: max-content; align-items: center; animation: lab-marquee 34s linear infinite; will-change: transform; }
.lab-marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: 2rem; padding-right: 2rem; }
.lab-marquee span { font-family: var(--lab-display); font-size: clamp(1.2rem, 2vw, 2rem); text-transform: uppercase; letter-spacing: -.04em; white-space: nowrap; }
.lab-marquee i { font-style: normal; }
@keyframes lab-marquee { to { transform: translateX(-50%); } }

.lab-manifesto { display: grid; grid-template-columns: 1fr 4fr; gap: 2rem; padding-top: clamp(8rem, 15vw, 14rem); padding-bottom: clamp(8rem, 15vw, 14rem); }
.lab-manifesto h2 { max-width: 1150px; margin: 0; color: var(--lab-ink) !important; font-size: clamp(2.1rem, 4.7vw, 4.8rem); font-weight: 400; line-height: 1.04; letter-spacing: -.065em; }
.lab-manifesto-meta { display: grid; grid-template-columns: minmax(220px, 440px) auto; align-items: end; justify-content: space-between; gap: 2rem; margin-top: clamp(3rem, 7vw, 7rem); }
.lab-manifesto-meta p { margin: 0; line-height: 1.7; }
.lab-text-link { color: var(--lab-ink) !important; font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: .4rem; }
.lab-text-link span { display: inline-block; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.lab-text-link:hover span { transform: translate(6px, -6px); }
.lab-manifesto-meta .lab-text-link { align-self: start; font-size: 1rem; }

.lab-work { --lab-work-ink: #111827; --lab-work-muted: #5f6875; --lab-work-line: #b8c1cc; padding: clamp(6rem, 11vw, 10rem) 0; color: var(--lab-work-ink); background: #e8edf4 !important; }
body.dark .lab-work { --lab-work-ink: #f5f1e8; --lab-work-muted: #aaa79f; --lab-work-line: #344050; background: #121212 !important; }
.lab-section-head { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(5rem, 10vw, 10rem); }
.lab-section-head .lab-section-index { margin: 0; }
.lab-section-head h2 { margin: 0; color: inherit !important; font-size: clamp(2.8rem, 6.2vw, 6.5rem); font-weight: 500; line-height: .92; letter-spacing: -.075em; }
.lab-section-head > p:last-child { margin: 0; color: var(--lab-work-muted); font-size: .98rem; line-height: 1.6; }
.lab-projects { display: flex; flex-direction: column; gap: clamp(3.5rem, 6vw, 6rem); }
.lab-project { width: min(100%, 560px); }
.lab-project:nth-child(even) { align-self: flex-end; }
.lab-project:nth-child(even) .lab-project-media { min-height: 300px; }
.lab-project-media { position: relative; display: grid; min-height: 310px; aspect-ratio: 16 / 10; overflow: hidden; place-items: center; color: #11110f !important; background: var(--lab-acid); }
.lab-project:nth-child(2n) .lab-project-media { background: #ff5c35; }
.lab-project:nth-child(3n) .lab-project-media { background: #c5b9ff; }
.lab-project-media img { width: 100%; height: 100%; margin: 0; object-fit: cover; filter: saturate(.75); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .6s; }
.lab-project-media:hover img { transform: scale(1.045); filter: saturate(1); }
.lab-project-placeholder { font-family: var(--lab-display); font-size: clamp(7rem, 17vw, 17rem); font-weight: 600; line-height: 1; letter-spacing: -.1em; }
.lab-project-open { position: absolute; top: 1.2rem; right: 1.2rem; display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; color: #11110f; background: #f5f1e8; font-size: 1.4rem; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.lab-project-media:hover .lab-project-open { transform: translate(6px, -6px); }
.lab-project-info { display: grid; grid-template-columns: 1fr 4fr; gap: 1.5rem; padding-top: 1.5rem; }
.lab-project-info > p:first-child { margin: .25rem 0 0; color: var(--lab-work-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.lab-category-link, .lab-year-link { color: inherit !important; text-decoration: none; }
.lab-category-link:hover, .lab-year-link:hover { color: var(--lab-acid) !important; }
.lab-project-info h3 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 3rem); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.lab-project-info h3 a { color: var(--lab-work-ink) !important; text-decoration: none; }
.lab-project-description { grid-column: 2; max-width: 560px; margin: .25rem 0 0; color: var(--lab-work-muted); line-height: 1.6; }
.lab-all-work { display: flex; justify-content: flex-end; padding-top: clamp(6rem, 12vw, 12rem); }
.lab-all-work a { display: flex; width: min(100%, 560px); justify-content: space-between; padding: 1.5rem 0; border-block: 1px solid var(--lab-work-line); color: var(--lab-work-ink) !important; font-family: var(--lab-display); font-size: clamp(1.3rem, 2vw, 2rem); text-decoration: none; }
.lab-all-work span { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.lab-all-work a:hover span { transform: translate(6px, -6px); }

.portfolio-home #contact { padding: clamp(6rem, 11vw, 11rem) 0 !important; color: #11110f; background: var(--lab-acid) !important; }
.lab-home-contact-head { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(5rem, 10vw, 10rem); }
.lab-home-contact-head .lab-section-index { margin: 0; }
.lab-home-contact-head h3 { margin: 0; color: #11110f !important; font-size: clamp(2.8rem, 6.2vw, 6.2rem); font-weight: 500; line-height: .92; letter-spacing: -.075em; }
.lab-home-contact-head h3 em { font-family: Georgia, serif; font-weight: 400; }
.lab-home-contact-head > div { color: #11110f; font-size: .9rem; line-height: 1.65; }
.lab-home-contact-head > div p { margin: 0; }
#content .lab-home-contact-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; border-block: 1px solid color-mix(in srgb, #11110f 35%, transparent); color: #11110f !important; font-family: var(--lab-display); font-size: clamp(2.2rem, 5.2vw, 5.5rem); line-height: .95; letter-spacing: -.07em; text-decoration: none; transition: color .35s ease, border-color .35s ease; }
.lab-home-contact-link span { flex: 0 0 auto; font-size: .55em; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.lab-home-contact-link:hover span { transform: translate(6px, -6px); }
#content .lab-home-contact-link:hover { color: #fff !important; border-color: color-mix(in srgb, #fff 70%, transparent); }

[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform 1.05s cubic-bezier(.16,1,.3,1); }
[data-reveal-delay="1"] { transition-delay: .14s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 991px) {
  .lab-hero-grid { grid-template-columns: 1fr; }
  .lab-portrait { width: min(72vw, 460px); margin: 0 0 0 auto; }
  .lab-manifesto { grid-template-columns: 1fr; }
  .lab-section-head { grid-template-columns: 1fr; }
  .lab-section-head > p:last-child { max-width: 420px; }
  .lab-project { width: min(100%, 560px); }
}

@media (max-width: 767px) {
  :root { --lab-page-gutter: 1.5rem; }
  #profileHeader .navbar { min-height: 96px; }
  #profileHeader .navbar-collapse { padding: 1rem 0 1.5rem; }
  #profileHeader .navbar-text { justify-content: center; }
  .lab-hero { min-height: auto; padding-top: 3rem; }
  .lab-hero h1 { font-size: clamp(2.3rem, 10vw, 3.8rem); }
  .lab-hero-bottom { grid-template-columns: 1fr; }
  .lab-arrow-link { width: 100%; }
  .lab-portrait { width: 82vw; }
  .lab-manifesto-meta { grid-template-columns: 1fr; }
  .lab-project { width: 100%; }
  .lab-project-info { grid-template-columns: 1fr; }
  .lab-project-description { grid-column: auto; }
  .lab-project-media, .lab-project:nth-child(even) .lab-project-media { min-height: 230px; }
  .lab-home-contact-head { grid-template-columns: 1fr; margin-bottom: 4rem; }
  #content .lab-home-contact-link { align-items: center; font-size: clamp(2rem, 10vw, 3.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Project archive */
.archive-page { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(7rem, 12vw, 12rem); color: var(--lab-ink); }
.archive-hero { display: grid; justify-items: center; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.archive-hero .lab-section-index { margin: 0; }
.archive-hero h1 { margin: 0; color: var(--lab-ink) !important; font-size: clamp(3.5rem, 8.5vw, 8rem); font-weight: 500; line-height: .85; letter-spacing: -.09em; }
.archive-hero > p:last-child { max-width: 460px; margin: 0; color: var(--text-secondary-color); font-size: .98rem; line-height: 1.6; }
.archive-list { border-top: 1px solid var(--lab-line); }
.archive-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 1rem; }
.archive-categories a { padding: .7rem 1rem; border: 1px solid var(--lab-line); border-radius: 999px; color: var(--lab-ink) !important; font-size: .82rem; font-weight: 600; text-decoration: none; transition: color .25s, background-color .25s, border-color .25s; }
.archive-categories a:hover { border-color: var(--lab-ink); color: var(--lab-paper) !important; background: var(--lab-ink); }
.archive-years { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; margin: 0 0 clamp(5rem, 9vw, 9rem); }
.archive-years span { margin-right: .35rem; color: var(--text-secondary-color); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.archive-years a { padding: .45rem .75rem; border-bottom: 1px solid var(--lab-line); color: var(--lab-ink) !important; font-size: .82rem; text-decoration: none; }
.archive-years a:hover, .archive-years a.is-active { border-color: var(--primary-color); color: var(--primary-color) !important; }
.archive-item[hidden], .archive-category[hidden] { display: none !important; }
.archive-meta a { color: inherit !important; text-decoration: none; }
.archive-meta a:hover { color: var(--primary-color) !important; }
.archive-category { scroll-margin-top: 7rem; margin-top: clamp(5rem, 9vw, 9rem); }
.archive-category:first-of-type { margin-top: 0; }
.archive-category-head { display: grid; grid-template-columns: clamp(6.5rem, 10vw, 8rem) 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.archive-category-head p { margin: 0; color: var(--text-secondary-color); font-family: var(--lab-display); font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1; letter-spacing: -.06em; }
.archive-category-head span { margin: 0; color: var(--text-secondary-color); font-size: .68rem; }
.archive-category-head h2 { margin: 0; color: var(--lab-ink) !important; font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 500; letter-spacing: -.06em; }
.archive-item { border-bottom: 1px solid var(--lab-line); }
.archive-item > a { display: grid; grid-template-columns: clamp(6.5rem, 10vw, 8rem) minmax(0, 4fr) minmax(120px, 1.2fr) .35fr; gap: 1.5rem; align-items: center; min-height: 210px; padding: 1.5rem 0; color: var(--lab-ink) !important; text-decoration: none; }
.archive-number, .archive-meta { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.archive-number, .archive-meta, .archive-description { color: var(--text-secondary-color); }
.archive-title-wrap { display: grid; gap: .65rem; }
.archive-title { font-family: var(--lab-display); font-size: clamp(1.5rem, 3vw, 3.2rem); line-height: 1.04; letter-spacing: -.05em; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.archive-description { max-width: 650px; font-size: .86rem; }
.archive-thumb { height: 140px; overflow: hidden; display: grid; place-items: center; color: #11110f; background: var(--lab-acid); }
.archive-item:nth-child(3n + 2) .archive-thumb:not(:has(img)) { background: var(--lab-orange); }
.archive-item:nth-child(3n) .archive-thumb:not(:has(img)) { background: #c5b9ff; }
.archive-thumb img { width: 100%; height: 100%; margin: 0; object-fit: cover; filter: grayscale(1); transition: transform .7s cubic-bezier(.16,1,.3,1), filter .5s; }
.archive-thumb i { font-family: var(--lab-display); font-size: 2rem; font-style: normal; }
.archive-arrow { font-size: 1.6rem; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.archive-item a:hover .archive-title { transform: translateX(10px); }
.archive-item a:hover .archive-thumb img { transform: scale(1.06); filter: grayscale(0); }
.archive-item a:hover .archive-arrow { transform: translate(6px, -6px); }

/* Services */
.services-page { padding: clamp(4rem, 8vw, 8rem) var(--lab-page-gutter) clamp(7rem, 12vw, 12rem); color: var(--lab-ink); }
.services-hero { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; align-items: end; padding-bottom: clamp(6rem, 11vw, 11rem); }
.services-hero .lab-section-index { margin: 0; }
.services-hero h1 { margin: 0; color: var(--lab-ink) !important; font-size: clamp(3rem, 6.5vw, 7rem); font-weight: 500; line-height: .92; letter-spacing: -.08em; }
.services-hero h1 em { font-family: Georgia, serif; font-weight: 400; }
.services-hero > p:last-child { max-width: 260px; margin: 0; color: var(--text-secondary-color); font-size: .9rem; line-height: 1.6; }
.services-content { display: grid; gap: clamp(6rem, 11vw, 11rem); }
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 8rem); padding-top: 2rem; border-top: 1px solid var(--lab-line); }
.services-intro p { max-width: 600px; margin: 0; font-size: clamp(1.25rem, 2.2vw, 2.25rem); line-height: 1.35; letter-spacing: -.035em; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--lab-line); border-left: 1px solid var(--lab-line); }
.service-card { min-height: 390px; padding: clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid var(--lab-line); border-bottom: 1px solid var(--lab-line); }
.service-card > span { display: block; margin-bottom: clamp(3rem, 7vw, 7rem); color: var(--text-secondary-color); font-size: .78rem; letter-spacing: .1em; }
.service-card h2 { max-width: 620px; margin: 0 0 1.5rem; color: var(--lab-ink) !important; font-size: clamp(1.8rem, 3.4vw, 3.8rem); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; }
.service-card p { max-width: 580px; margin: 0; color: var(--text-secondary-color); font-size: .92rem; line-height: 1.75; }
.services-format { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; align-items: start; }
.services-format .lab-section-index { margin: .5rem 0 0; }
.services-format h2 { margin: 0; color: var(--lab-ink) !important; font-size: clamp(2.5rem, 5vw, 5.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.065em; }
.services-format > p:last-child { margin: .5rem 0 0; color: var(--text-secondary-color); font-size: .88rem; line-height: 1.7; }
.services-cta { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(4rem, 8vw, 8rem) max(clamp(2rem, 8vw, 8rem), calc((100vw - 1380px) / 2 + 1.5rem)); color: #11110f; background: var(--lab-acid) !important; }
.services-cta p { margin: 0 0 clamp(3rem, 8vw, 7rem); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#content .services-cta a { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; color: #11110f !important; font-family: var(--lab-display); font-size: clamp(2.2rem, 5.2vw, 5.5rem); line-height: .95; letter-spacing: -.07em; text-decoration: none; transition: color .35s ease; }
.services-cta a span { flex: 0 0 auto; font-size: .55em; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.services-cta a:hover span { transform: translate(6px, -6px); }
#content .services-cta a:hover { color: #fff !important; }

/* Long-form reading */
#single { padding-top: clamp(4rem, 8vw, 8rem); color: var(--lab-ink); }
#single .container { width: 100%; max-width: 1448px; padding-inline: var(--lab-page-gutter); }
#single .title h1 { max-width: 1050px; margin-inline: auto; color: var(--lab-ink) !important; font-size: clamp(2.35rem, 5.2vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.07em; text-align: left !important; }
#single .title > div { text-align: left !important; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.post-byline > * + *::before { content: "|"; display: inline-block; margin-inline: .6rem; color: var(--text-secondary-color); }
.post-categories { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; }
.post-categories a + a { margin-left: .4rem; }
#single .post-categories a { color: var(--lab-ink) !important; text-decoration: none; }
#single .post-categories a:hover { text-decoration: underline; text-underline-offset: .2em; }
#single .project-year a { color: var(--lab-ink) !important; text-decoration: none; }
#single .project-year a:hover { text-decoration: underline; text-underline-offset: .2em; }
#single .featured-image img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: 0; }
#single .page-content { font-family: Georgia, serif; font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.75; }
#single .page-content h2, #single .page-content h3 { margin-top: 2.5em; color: var(--lab-ink) !important; font-family: var(--lab-display) !important; letter-spacing: -.04em; }
#single .page-content a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
#single .sticky-sidebar { border-left: 1px solid var(--lab-line); padding-left: 1.25rem; }

/* Telegram comments — Behance-inspired editorial grid */
.telegram-comments { padding: clamp(4rem, 8vw, 8rem) 0 clamp(6rem, 11vw, 11rem); color: var(--lab-ink); background: #fff !important; }
body.dark .telegram-comments { background: #121212 !important; }
.telegram-comments .container { width: 100%; max-width: 1448px; padding-inline: var(--lab-page-gutter); }
.telegram-comments-head { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; align-items: end; padding: 1.25rem 0 clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--lab-line); }
.telegram-comments-index { align-self: start; color: var(--text-secondary-color); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.telegram-comments h2 { margin: 0; color: var(--lab-ink) !important; font-family: var(--lab-display); font-size: clamp(2.6rem, 5.2vw, 5.5rem); font-weight: 500; line-height: .9; letter-spacing: -.07em; }
.telegram-comments-head p { margin: 0; color: var(--text-secondary-color); font-size: .92rem; line-height: 1.65; }
.telegram-comments-head p a { color: inherit; text-decoration: none; }
.telegram-comments-head p a:hover { color: var(--primary-color); }
.telegram-comments-grid { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: 2rem; }
.telegram-comments-rule { grid-column: 1; border-top: 1px solid var(--lab-line); }
#tg-comments { grid-column: 2; width: 100%; min-width: 0; min-height: 180px; }

@media (max-width: 767px) {
  .archive-hero { grid-template-columns: 1fr; }
  .archive-item > a { grid-template-columns: 2.5rem 1fr 2rem; min-height: 150px; }
  .archive-thumb { display: none; }
  .archive-description { display: none; }
  .archive-category-head { grid-template-columns: 2.5rem 1fr; }
  #single .sticky-sidebar { border-left: 0; padding-left: 0; }
  .telegram-comments-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .telegram-comments-head p { max-width: 320px; }
  .telegram-comments-grid { display: block; }
  .telegram-comments-rule { display: none; }
  #tg-comments { width: 100%; }
  .services-hero, .services-format { grid-template-columns: 1fr; }
  .services-hero { padding-bottom: 5rem; }
  .services-hero > p:last-child { max-width: 420px; }
  .services-intro, .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .services-cta { padding: 3rem 1.5rem; }
  #content .services-cta a { align-items: center; }
}
