@charset "UTF-8";

/* ========================================
   Fonts
   ======================================== */

@font-face {
  font-family: 'Headline Bold';
  src: url('../fonts/fonts/headlines/Headline-Bold.woff2') format('woff2'),
       url('../fonts/fonts/headlines/Headline-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-ExtraBold';
  src: url('../fonts/onest/Onest-ExtraBold.woff2') format('woff2'),
       url('../fonts/onest/Onest-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Bold';
  src: url('../fonts/onest/Onest-Bold.woff2') format('woff2'),
       url('../fonts/onest/Onest-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-SemiBold';
  src: url('../fonts/onest/Onest-SemiBold.woff2') format('woff2'),
       url('../fonts/onest/Onest-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Medium';
  src: url('../fonts/onest/Onest-Medium.woff2') format('woff2'),
       url('../fonts/onest/Onest-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Regular';
  src: url('../fonts/onest/Onest-Regular.woff2') format('woff2'),
       url('../fonts/onest/Onest-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Base
   ======================================== */

* {
  box-sizing: border-box;
}

html.lenis,
html.lenis body {
  height: auto;
}

html {
  scroll-behavior: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  padding: 2rem;
  color: #222;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Onest-Regular", Arial, sans-serif;
  line-height: 1.45;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body p,
body li,
body a,
body span {
  max-width: 46em;
  letter-spacing: clamp(-1.75px, calc(.583333px - .0364583em), 0px);
}

a {
  color: #000;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: absolute;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: .5rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #DCE3FA;
}

/* ========================================
   Navigation
   ======================================== */

.main-nav {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: #222;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 220ms ease;
}

.nav-phone {
  font-family: "Onest-Bold", Arial, sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.masthead {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.masthead header {
  position: relative;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button,
.nav-close {
  display: block;
  padding: .25rem;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.nav-close {
  font-size: 2rem;
}

.nav-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: #fff;
}


.nav-toggle:checked ~ .nav-modal {
  display: flex;
}

.nav-modal-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 100%;
  padding: 2rem;
}

.nav-modal-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-modal-content li {
  max-width: none;
  margin-bottom: 0;
  font-size: max(2rem, min(10vw, 10vh));
  font-weight: 300;
  line-height: 1;
}

.nav-modal-content ul ul li {
  padding-left: 1em;
}

.nav-modal-content a {
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs ol {
  display: flex;
  gap: 1ch;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Onest-Bold", Arial, sans-serif;
}

.breadcrumbs li:not(:first-child)::before {
  content: "—";
  margin-right: 1ch;
  color: #222;
}

.breadcrumbs a {
  text-decoration: none;
}


/* Логотип в хлебных крошках */
.breadcrumbs ol {
  display: flex;
  gap: 1ch;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Onest-Bold", Arial, sans-serif;
  align-items: center;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.breadcrumb-with-logo {
  flex-direction: row;
  gap: 0.75rem;
}

.breadcrumb-logo {
  display: block;
  width: 48px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ========================================
   Home page
   ======================================== */

.home-header {
  margin-top: 8rem;
  margin-bottom: 2rem;
}

.home-header h1 {
  max-width: 48rem;
  margin: 0 0 2rem;
  font-size: 1.35rem;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: balance;
}

.intro-primary {
  display: block;
}

.intro-primary__accent {
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

.home-header .clause {
  font-weight: 300;
}

.home-header strong {
  font-weight: 700;
}

.home-header img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* ========================================
   Кнопка "Скачать резюме в PDF" (button-up)
   ======================================== */

.hero-actions {
  margin: 0 0 2rem;
}

.resume-button.button-up {
  position: relative;
  display: inline-flex;
  overflow: hidden;                 /* второй слой текста обрезается */
  border: 1px solid #222;
  border-radius: 4px;
  background-color: #fff;
  text-decoration: none;
  transition: background-color 250ms ease;
}

/* Матрица: в ней два слоя текста, двигаем её целиком */
.resume-button.button-up .btn-matrix {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Оба слоя должны быть идентичными по размерам */
.resume-button.button-up .btn-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-family: "Onest-Medium", Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  color: #222;
}

/* Дубликат — строго под кнопкой */
.resume-button.button-up .btn-text--hover {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  color: #fff;
}

.resume-button.button-up .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

/* Hover / Focus */
.resume-button.button-up:hover,
.resume-button.button-up:focus-visible {
  background-color: #222;
}

.resume-button.button-up:hover .btn-matrix,
.resume-button.button-up:focus-visible .btn-matrix {
  transform: translateY(-100%);
}

.resume-button.button-up:hover .btn-text--hover .arrow,
.resume-button.button-up:focus-visible .btn-text--hover .arrow {
  transform: translateX(4px);
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .resume-button.button-up .btn-matrix,
  .resume-button.button-up .arrow {
    transition: none;
  }
}

/* ========================================
   Логотипы компаний на главной
   ======================================== */

/* Скрываем мобильную версию по умолчанию */
.company-logos-mobile {
  display: none;
}

/* Десктоп: 4 колонки (от 992px и выше) */
.company-logos {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.company-logo {
  display: grid;
  width: 100%;
  min-height: 120px;
  padding: 2rem;
  place-items: center;
  border: none;
  background: none;
}

.company-logo-image {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
}

/* Планшет: 2 колонки (от 768px до 992px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .company-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 2.5rem;
  }

  .company-logo {
    min-height: 100px;
    padding: 1.5rem;
  }

  .company-logo-image {
    height: 56px;
    max-width: 150px;
  }
}

/* Мобильный телефон: скрываем карточки, показываем SVG (менее 768px) */
@media screen and (max-width: 767px) {
  .company-logos {
    display: none;
  }

  .company-logos-mobile {
    display: block;
    width: 100%;
    margin: 1.5rem 0 2rem;
  }

  .company-logos-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ========================================
   Compact project grid (внешние проекты)
   ======================================== */

.project-grid-compact {
  grid-area: contents;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-content: start;
}

.project-grid-compact .project-thumb {
  aspect-ratio: 16 / 5;
  background: #d9d9d9;
  transition: background-color 220ms ease, transform 220ms ease;
}

.project-grid-compact .project-card-link:hover .project-thumb,
.project-grid-compact .project-card-link:focus-visible .project-thumb {
  background: #c0c0c0;
  transform: translateY(-2px);
}

.project-grid-compact .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Адаптив для компактной сетки */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .project-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .project-grid-compact {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-card-caption {
  margin: 0.75rem 0 0;
  color: #555;
  font-size: 0.85rem;
  line-height: 1.4;
  font-family: "Onest-Regular", Arial, sans-serif;
}

.project-grid-compact .project-card-caption {
  max-width: 100%;
}

/* ========================================
   Section grid
   ======================================== */

.section {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(var(--subsections, 1), auto);
  grid-template-areas: "heading subheading contents contents contents";
  gap: 1rem;
  margin: 4rem 0;
  padding-top: 3rem;
  border-top: 1px solid #c8cbd3;
}


.section > header {
  grid-row: 1 / -1;
}

.section > header h2,
.subsection > header h3 {
  position: sticky;
  top: 2rem;
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Onest-SemiBold", Arial, sans-serif;
  line-height: 1.55;
  text-transform: uppercase;
}

.section > header h2 {
  grid-area: heading;
}

.subsection {
  position: relative;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
  margin-bottom: 1rem;
}

.subsection > header {
  grid-column: 1;
}

.section-contents {
  grid-column: 2 / -1;
}

.section p,
.section ul {
  margin-top: 10px;
  margin-bottom: .5rem;
  line-height: 1.55;
}

.section ul {
  padding-left: 1.1rem;
}

.section li {
  margin-bottom: 0.5rem;
}

.section h3 a {
  text-decoration: none;
}

.fw3 {
  font-weight: 300;
}

abbr {
  text-decoration: none;
  font-family: "Onest-Bold", Arial, sans-serif;
  margin-bottom: 30px;
}

/* ========================================
   Опыт работы
   ======================================== */

.experience-duration {
  margin: 0;
  color: #666;
  font-family: "Onest-Regular", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.experience-section .section-contents > h3 {
  margin: 0;
  font-family: "Onest-Bold", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.experience-company-details {
  margin: 0.25rem 0 1.5rem;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.45;
}

.experience-company-details a {
  color: inherit;
}

.experience-section .section-contents ul {
  margin-top: 1.5rem;
}

/* На главной: закрепляем только h2, все h3 прокручиваются */
.home .subsection > header h3 {
  position: static;
}

/* ========================================
   Увеличенные отступы между пунктами только в секции опыта
   ======================================== */

#experience .section-contents ul {
  margin-bottom: 1.2em;
}

#experience .section-contents ul li {
  margin-bottom: 0.9em;
}

#experience .section-contents ul li:last-child {
  margin-bottom: 0;
}



/* ========================================
   Дипломы и сертификаты (карусель)
   ======================================== */

.certificates {
  grid-column: 2 / -1;
  min-width: 0;                 /* иначе широкая лента разорвёт сетку */
}

.certificates__viewport {
  overflow: hidden;
}

.certificates__track {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* 4 видимые миниатюры; формула учитывает gap */
.certificates__item {
  flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
  min-width: 0;
  margin: 0;                    /* сброс .section li */
}

.certificates__link {
  display: block;
  aspect-ratio: 16 / 10;        /* пропорция миниатюры */
  overflow: hidden;             /* зум не вылезет за рамки */
  border-radius: 0px;
}

.certificates__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition:
    filter 400ms ease,
    transform 400ms ease;
}

.certificates__link:hover img,
.certificates__link:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.06);       /* лёгкое приближение в пределах контейнера */
}

.certificates__link:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

/* Стрелки — справа под лентой */
.certificates__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.certificates__arrow {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #222;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.certificates__arrow:hover:not(:disabled) {
  background: #222;
  color: #fff;
}

.certificates__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Планшет: 3 миниатюры */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .certificates__track { gap: 1rem; }
  .certificates__item { flex-basis: calc((100% - 2 * 1rem) / 3); }
}

/* Мобильный: 2 миниатюры */
@media screen and (max-width: 767px) {
  .certificates__track { gap: 1rem; }
  .certificates__item { flex-basis: calc((100% - 1 * 1rem) / 2); }
}

/* Уважаем reduced motion */
@media (prefers-reduced-motion: reduce) {
  .certificates__track,
  .certificates__link img,
  .certificates__arrow {
    transition: none;
  }
}












/* ========================================
   Footer
   ======================================== */

#page > footer {
  margin-top: 8rem;
  padding-top: 1rem;
  border-top: 1px solid #c8cbd3;
}

.authorship {
  max-width: 34em;
  color: #333;
  font-size: 1rem;
  line-height: 1.25;
}

.footer-site-link {
  font-family: "Onest-Bold", Arial, sans-serif;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.footer-site-link:hover,
.footer-site-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================
   Scroll to top button
   ======================================== */

.scrolltotop {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 20;

  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;

  border: 1px solid #222;
  border-radius: 50%;
  color: #222;
  background: #fff;

  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    color 220ms ease,
    background-color 220ms ease;
}

.scrolltotop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scrolltotop:hover,
.scrolltotop:focus-visible {
  color: #fff;
  background: #222;
  outline: none;
}

.scrolltotop:focus-visible {
  outline: 2px solid #222;
  outline-offset: 4px;
}

/* ========================================
   Projects page
   ======================================== */


.projects-header {
  margin-top: 8rem;
  margin-bottom: 2rem;
}

.projects-header h1 {
  max-width: 48rem;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 400;
  text-wrap: balance;
}

.project-category {
  grid-template-areas: "heading contents contents contents contents";
}

.project-category > header {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-category > header h2 {
  font-size: 1.2rem;
  position: static;
  background-color: #ffffff;
  margin: 0;
}

.project-subtitle {
  margin: 0;
  color: #888;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-cta {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  align-self: flex-start;
  color: #000;
}

.project-cta .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

/* Для «Смотреть все работы» */
.project-cta:not(.is-back) .arrow {
  margin-left: 0.25rem;
}

.project-cta:not(.is-back):hover .arrow,
.project-cta:not(.is-back):focus .arrow {
  transform: translateX(6px);
}

/* Для «Назад» */
.project-cta.is-back .arrow {
  margin-right: 0.25rem;
}

.project-cta.is-back:hover .arrow,
.project-cta.is-back:focus .arrow {
  transform: translateX(-6px);
}

.project-cta:hover,
.project-cta:focus {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-grid {
  grid-area: contents;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-content: start;
}

.project-card {
  position: relative;
}

.project-card-link {
  display: block;
  text-decoration: none;
}

.project-card-link:hover,
.project-card-link:focus {
  background: transparent;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #d9d9d9;
  transition: background-color 220ms ease, transform 220ms ease;
}

.project-card-link:hover .project-thumb,
.project-card-link:focus-visible .project-thumb {
  background: #c0c0c0;
  transform: translateY(-2px);
}

/* ========================================
   Projects toolbar: heading + filter chips
   ======================================== */

.projects-toolbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 8rem;
  margin-bottom: 2rem;
}

.projects-toolbar h1 {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 400;
  text-wrap: balance;
}

.project-filters {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1px solid #222;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-family: "Onest-Medium", Arial, sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.chip:hover,
.chip:focus-visible {
  background: #DCE3FA;
  color: #000;
  border-color: #000;
  outline: none;
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: #222;
  color: #fff;
  border-color: #222;
}

.chip.is-active:hover,
.chip[aria-pressed="true"]:hover {
  background: #000;
  border-color: #000;
}

/* ========================================
   Sticky header только для одной категории
   ======================================== */

body.is-category-page .project-category > header {
  position: sticky;
  top: 2rem;
  align-self: start;
  height: fit-content;
}

body.is-category-page .project-category > header h2 {
  position: sticky;
  top: 2rem;
}

@media screen and (min-width: 768px) {
  body.is-category-page .project-category > header {
    position: sticky;
    top: 4rem;
    align-self: start;
    height: fit-content;
  }

  body.is-category-page .project-category > header h2 {
    position: sticky;
    top: 4rem;
  }
}

/* ========================================
   Project category full grid (project-item.html)
   ======================================== */

.project-category-full {
  grid-template-areas: "heading contents contents contents contents";
}

.project-category-full > header {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-category-full > header h2 {
  position: sticky;
  top: 2rem;
  margin: 0;
}

.project-grid-full {
  grid-area: contents;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-content: start;
}


/* ========================================
   Responsive: Desktop
   ======================================== */

@media screen and (min-width: 992px) {
  body {
    padding: 4rem;
  }

  .nav-modal-content {
    padding: 4rem;
  }

  .main-nav {
    display: flex;
  }

  .nav-button {
    display: none;
  }

  .home-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-areas: "text text text image image";
    gap: 2rem;
  }

  .home-header h1 {
    grid-area: text;
    margin-bottom: 0;
    font-size: 2.25rem;
    line-height: 1;
  }

  .home-header > div {
    position: relative;
    grid-area: image;
  }

  .home-header img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .projects-toolbar h1 {
    font-size: 2.25rem;
    line-height: 1;
  }

  .projects-header h1 {
    font-size: 2.25rem;
    line-height: 1;
  }
}

@media screen and (min-width: 1200px) {
  .home-header {
    padding-top: 4rem;
  }

  .home-header h1 {
    font-size: 2.7rem;
  }

  .section,
  .section h2,
  .section h3,
  .section p,
  .section li {
    line-height: 1.55;
  }

  .projects-toolbar {
    padding-top: 4rem;
  }

  .projects-toolbar h1 {
    font-size: 3rem;
  }

  .projects-header {
    padding-top: 4rem;
  }

  .projects-header h1 {
    font-size: 3rem;
  }
}

/* ========================================
   Responsive: Tablet
   ======================================== */

@media screen and (min-width: 768px) and (max-width: 991px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive: Mobile
   ======================================== */

@media screen and (max-width: 767px) {
  body {
    padding: 2rem;
  }

  .home-header {
    margin-top: 8rem;
  }

  .home-header h1 {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .home-header img {
    height: calc(50vw - 4rem);
  }

  .section {
    display: block;
    margin: 4rem 0;
    padding-top: 2rem;
  }

  .section > header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .5rem;
  }

  .section > header::after {
    content: "";
    display: block;
    width: 100%;
    border-top: 1px solid #000;
  }

  .section > header h2 {
    position: static;
  }

  .subsection {
    display: block;
    margin-top: 2rem;
  }

  .subsection > header h3 {
    position: static;
  }

  .section-contents {
    margin-top: 1rem;
  }

  .scrolltotop {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 38px;
    height: 38px;
  }

  .scrolltotop svg {
    width: 16px;
    height: 16px;
  }

  .projects-toolbar {
    display: block;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
  }

  .projects-toolbar h1 {
    margin-bottom: 1.25rem;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .project-category > header {
    display: block;
    margin-bottom: 1.5rem;
  }

  .project-category > header h2 {
    position: static;
  }

  .project-subtitle {
    margin-top: 0.25rem;
  }

  .project-cta {
    display: inline-block;
    margin-top: 1rem;
    padding-top: 0;
  }

  .project-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-category-full > header {
    display: block;
    margin-bottom: 1.5rem;
  }

  .project-category-full > header h2 {
    position: static;
  }

  .project-grid-full {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrolltotop {
    transition: none;
  }
}

.see-all-projects-wrapper.is-hidden {
  display: none !important;
}

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