body {
    background: #FFFFFF;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

body.page-no-hero header {
    background: rgba(26,26,24,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

footer {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    padding: var(--sp-100) 0 var(--sp-25);
  }

.footer-bottom a:hover {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.6);
  }

.bio-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: var(--sp-100);
    align-items: start;
  }

.portrait-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--panel);
  }

.portrait-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

.portrait-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 1px dashed var(--line);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--ink-soft);
    text-align: center;
    padding: 20px;
  }

.portrait-placeholder svg { width: 40px; height: 40px; opacity: 0.5; }

.portrait-placeholder span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

.bio-text p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--ink-soft);
    font-weight: 300;
    max-width: 560px;
  }

.bio-text p + p { margin-top: var(--sp-25); }

.edu-list { margin-top: var(--sp-100); border-top: 1px solid var(--line); }

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--sp-50);
  }

.skill-tag {
    border: 1px solid var(--line);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    transition: border-color 0.25s ease, color 0.25s ease;
  }

.skill-tag:hover {
    border-color: var(--ink);
    color: var(--ink);
  }

.edu-item {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-25) 0;
    border-bottom: 1px solid var(--line);
    gap: var(--sp-50);
  }

.edu-year {
    font-size: calc(12px + 2pt);
    letter-spacing: 0.1em;
    color: var(--ink-soft);
    white-space: nowrap;
    padding-top: 3px;
  }

.edu-title {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-soft);
    text-align: right;
    white-space: nowrap;
  }

.edu-title b, .edu-title strong { font-weight: 400; color: var(--ink); }

.edu-link {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
  }

.edu-link:hover { border-bottom-color: var(--ink); }

.pull-quote {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 32px;
    line-height: 1.5;
    color: var(--ink);
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
  }

.cta-center { text-align: center; padding: var(--sp-100) 0; }

.project-nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

.project-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.25s ease;
  }

.project-nav a:hover { color: var(--ink); }

.project-nav svg { width: 16px; height: 16px; flex-shrink: 0; }

.quotes-carousel {
    position: relative;
    background: var(--panel);
    overflow: hidden;
    transition: height 0.6s ease;
  }

.quote-mark { display: none; }

.quote-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--sp-75) var(--sp-100);
    opacity: 0;
    transition: opacity 1s ease;
  }

.quote-slide.active { opacity: 1; }

.quote-inner {
    position: relative;
  }

.quote-slide p {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.25;
    color: var(--ink);
    max-width: 720px;
    text-align: center;
  }

.quote-slide p::before,
  .quote-slide p::after {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 170px;
    line-height: 1;
    color: var(--beige);
    pointer-events: none;
  }

.quote-slide p::before {
    content: '\201C';
    top: -70px;
    left: -60px;
  }

.quote-slide p::after {
    content: '\201D';
    bottom: -110px;
    right: -60px;
  }

.quote-slide span {
    display: block;
    margin-top: var(--sp-50);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
  }

.project-hero {
    position: relative;
    padding-top: 140px;
  }

.project-wrap {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--sp-100);
  }

.project-panel {
    position: relative;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 25px 60px rgba(30,28,22,0.16);
    max-width: 1900px;
    margin: 0 auto;
    z-index: 2;
  }

.project-panel-gutter {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 100px;
    margin-left: -50px;
    background: linear-gradient(to right,
      rgba(151,151,151,0) 0%,
      rgba(151,151,151,0.08) 25%,
      rgba(151,151,151,0.18) 40%,
      rgba(151,151,151,0.32) 50%,
      rgba(151,151,151,0.18) 60%,
      rgba(151,151,151,0.08) 75%,
      rgba(151,151,151,0) 100%
    );
    z-index: 10;
    pointer-events: none;
  }

.project-panel-gutter::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: #B0AFAE;
  }

.project-num-wrap {
    position: relative;
  }

.slide2-images-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

.slide2-desc {
    text-align: right;
    max-width: 560px;
  }

.slide2-desc .title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: var(--ink-soft);
  }

.slide2-desc .desc {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--ink-soft);
  }

.project-slide-num {
    position: absolute;
    right: 100%;
    bottom: 0;
    display: inline-block;
    width: 190px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 260px;
    line-height: 1;
    color: #DCDDDD;
    margin-right: -45px;
    z-index: 1;
    user-select: none;
    pointer-events: none;
  }

.project-slide-num-alt {
  }

.project-hero-row {
    display: grid;
    grid-template-columns: 68% 32%;
    min-width: 0;
  }

.project-cover-img img { width: 100%; height: 100%; object-fit: cover; }

.project-specs {
    padding: var(--sp-75) var(--sp-75);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: break-word;
  }

.project-name-index {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: var(--sp-75);
    padding-bottom: var(--sp-25);
    border-bottom: 1px solid var(--line);
  }

.project-name-sub {
    display: block;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    margin-top: 4px;
  }

.spec-row { margin-bottom: 50px; }

.spec-row:last-child { margin-bottom: 0; }

.spec-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 4px;
  }

.spec-value {
    display: block;
    font-weight: 300;
    font-size: 14px;
    color: var(--ink-soft);
  }

.project-slide {
    position: relative;
    padding: 60px 0;
  }

@media (max-width: 860px) {
    /* Падинг над "За контакт" - намален наполовина на мобилни устройства. */
    footer { padding-top: 50px; }


    .project-hero { padding-top: 20px; }
    .project-wrap { padding: 0 var(--sp-25); }

    /* Слайдовете с 2 снимки задават фиксирана височина/ширина чрез inline
       стил (изчислена от реалните пропорции на снимките за desktop) - на
       мобилни устройства снимките трябва да се наредят една под друга с
       естествена височина, затова тук изрично презаписваме inline
       стойностите (!important е необходим, защото inline стилът иначе
       винаги би имал по-висок приоритет от външния CSS файл). */
    .slide2-images-row {
      height: auto !important;
      flex-direction: column;
      overflow: visible !important;
    }
    .slide2-images-row > div {
      flex: 1 1 auto !important;
      width: 100% !important;
      height: auto !important;
    }
    .slide2-images-row img {
      height: auto !important;
      object-fit: contain !important;
    }
    .project-panel-gutter { display: none; }

    .project-hero-row { grid-template-columns: 1fr; }
    .project-cover-img { aspect-ratio: 16 / 10; }

    .project-specs { padding: var(--sp-50) var(--sp-25); }

    /* Гигантският декоративен номер (260px на desktop) би преляла извън
       екрана на мобилни устройства - смалява се и се "прибира" в потока
       на страницата вместо да стои абсолютно позициониран отляво. */
    .project-slide-num {
      position: static;
      display: block;
      width: auto;
      text-align: left;
      font-size: 64px;
      margin: 0 0 10px;
      right: auto;
    }

    .slide2-images-row { gap: var(--sp-25); }
    .slide2-desc { text-align: left; max-width: 100%; }

    .spec-row { margin-bottom: var(--sp-25); }

    .project-slide { padding: 30px 0; }

    .project-nav svg { width: 14px; height: 14px; }

    /* "Следващ проект" - текстът да е дясно подравнен и близо до
       стрелката (симетрично на "Предишен проект", където текстът е
       ляво подравнен и близо до своята стрелка отляво). */
    .project-nav a.nav-next {
      text-align: right;
      gap: 6px;
    }
    .project-nav a.nav-prev {
      gap: 6px;
    }
  }