﻿/* =========================================================
   PERSON PAGE (single-person)
========================================================= */
.person-page {
  background-color: #faf8f5;
}

/* ---- CONTACT BLOCK (Join Our Team variant) alignment ----
   Match header exactly: max-width 1440px centered, no horizontal padding
   above 1460px, 20px below 1460px. */
.person-page .company-contact .container {
  max-width: 1440px;
}

.person-page .company-contact .wrapper {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (max-width: 1460px) {
  .person-page .company-contact .wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---- HERO ---- */
.person-hero {
  overflow: hidden;
}

.person-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 72px;
  min-height: 500px;
}

/* Cause: fixed desktop-like offsets made the cubes drift past the left edge on narrower widths. Keep them anchored near the photo column instead of the full hero width. */
.person-hero__inner::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 450px;
  width: 453px;
  height: 439px;
  background: url("../img/five-back-cubes.svg") no-repeat center / contain;
  pointer-events: none;
  z-index: 0;
}

.person-hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 510px;
  position: relative;
  z-index: 1;
}

.person-hero__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.person-hero__name {
  font-size: 48px;
  font-weight: 600;
  color: #07121f;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.person-hero__job {
  font-size: 40px;
  font-weight: 600;
  color: #2b353f;
  margin: 0;
  line-height: 1.5;
}

.person-hero__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.person-hero__email-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.person-hero__email,
.person-hero__phone {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #0c1e34;
  text-decoration: none;
  line-height: 1.5;
}

.person-hero__email:hover,
.person-hero__phone:hover {
  text-decoration: underline;
}

.person-hero__email-feedback {
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6f7a89;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.person-hero__email-feedback.is-visible {
  opacity: 1;
}

.person-hero__bio {
  font-size: 18px;
  font-weight: 400;
  color: #2b353f;
  line-height: 1.5;
}

.person-hero__bio p,
.person-hero__bio li,
.person-hero__bio span,
.person-hero__bio a {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  line-height: inherit;
}

.person-hero__bio strong,
.person-hero__bio b {
  font-weight: 600;
}

/* Cause: the previous padded background frame kept square corners. Draw the frame with the same clipped geometry used on card media. */
.person-hero__photo-wrap {
  position: relative;
  width: 400px;
  height: 392px;
  margin-left: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: visible;
  z-index: 1;
}

.person-hero__photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(#cd6f47, #cd6f47) left top / calc(100% - 8px) 4px no-repeat,
    linear-gradient(#cd6f47, #cd6f47) right top / 8px 100% no-repeat,
    linear-gradient(#cd6f47, #cd6f47) left bottom / 100% 8px no-repeat;
  clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%);
}

.person-hero__photo-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #faf8f5;
  transform: translate(50%, -50%) rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 3;
}

.person-hero__img {
  position: absolute;
  top: 4px;
  left: 0;
  width: calc(100% - 8px);
  height: calc(100% - 12px);
  object-fit: cover;
  display: block;
  z-index: 1;
}

.person-hero__img--placeholder {
  position: absolute;
  top: 4px;
  left: 0;
  width: calc(100% - 8px);
  height: calc(100% - 12px);
  background-color: #c4cdd8;
  background-image: url(../img/five-back-cubes.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  z-index: 1;
}

/* ---- YELLOW DIVIDER ---- */
.person-divider__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.person-divider__line {
  border-top: 2px solid #ffbf00;
}

/* ---- CONTENT SECTIONS ---- */
.person-content__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.person-content__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.person-content__title {
  font-size: 24px;
  font-weight: 600;
  color: #0c1e34;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ---- TAG LIST (tech_stack / industries) ---- */
.person-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.person-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 2px solid #e0cfb7;
  font-size: 18px;
  font-weight: 600;
  color: #2b353f;
  line-height: 1.5;
  white-space: nowrap;
}

.person-tag--industry {
  font-size: 20px;
  letter-spacing: -0.011em;
}

/* ---- CERTIFICATES ---- */
.person-cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-cert {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 13px;
  font-size: 18px;
  font-weight: 400;
  color: #2b353f;
  line-height: 1.5;
}

.person-cert::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: #ffbf00;
  margin-top: 8px;
}

/* ---- BLOG POSTS ---- */
.person-content__section--posts {
  gap: 40px;
}

.person-posts__heading {
  font-size: 40px;
  font-weight: 600;
  color: #07121f;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.person-posts__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Cause: person-page forked the blog card CSS and drifted from the already tested hit-area, frame, and pagination behavior. */
.person-posts.blog-page {
  --inactive-bg: transparent;
  --inactive-color: #c4cdd8;
}

.person-posts.blog-page .blog-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0;
}

.person-posts.blog-page .post-card:nth-child(5n + 1) {
  --person-post-accent: #cd6f47;
}

.person-posts.blog-page .post-card:nth-child(5n + 2) {
  --person-post-accent: #cdc747;
}

.person-posts.blog-page .post-card:nth-child(5n + 3) {
  --person-post-accent: #519872;
}

.person-posts.blog-page .post-card:nth-child(5n + 4) {
  --person-post-accent: #516c99;
}

.person-posts.blog-page .post-card:nth-child(5n + 5) {
  --person-post-accent: #985151;
}

.person-posts.blog-page .post-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  min-height: 240px;
  padding: 0;
}

.person-posts.blog-page .post-card__media {
  position: relative;
  flex: 0 0 350px;
  width: 350px;
  height: 240px;
  padding: 4px 8px 8px 0;
  overflow: visible !important;
  background: transparent !important;
}

.person-posts.blog-page .post-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
}

/* Cause: blog-page skews only the decorative frame. Clipping the actual image on person page made media look visibly broken on tablet/mobile. */
.person-posts.blog-page .post-card__img,
.person-posts.blog-page .post-card__img--placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-posts.blog-page .post-card__img--placeholder {
  background-color: #c4cdd8;
}

.person-posts.blog-page .post-card__media::before {
  border: 0 !important;
  background:
    linear-gradient(var(--person-post-accent), var(--person-post-accent)) left top / calc(100% - 8px) 4px no-repeat,
    linear-gradient(var(--person-post-accent), var(--person-post-accent)) right top / 8px 100% no-repeat,
    linear-gradient(var(--person-post-accent), var(--person-post-accent)) left bottom / 100% 8px no-repeat !important;
  clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%) !important;
}

.person-posts.blog-page .post-card__content {
  flex: 1;
  min-width: 0;
  min-height: 240px !important;
  height: auto;
  overflow: visible;
  padding-top: 0;
}

.person-posts.blog-page .post-card__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #07121f;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.person-posts.blog-page .post-card__title .post-card__title-link {
  display: inline !important;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  color: inherit !important;
  text-decoration: none !important;
}

.person-posts.blog-page .post-card__title .post-card__title-link:hover {
  color: #ffbf00 !important;
}

.person-posts.blog-page .post-card__excerpt-link,
.person-posts.blog-page .post-card__excerpt-link:hover,
.person-posts.blog-page .post-card__excerpt-link:hover .post-card__excerpt {
  text-decoration: none !important;
}

.person-posts.blog-page .post-card__meta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0;
  margin-bottom: 8px !important;
  color: #2b353f;
}

.person-posts.blog-page .post-card__by {
  display: flex;
  align-items: center;
  gap: 4px;
}

.person-posts.blog-page .post-card__by-label,
.person-posts.blog-page .post-card__date {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #2b353f;
}

.person-posts.blog-page .post-card__date {
  color: #6f7a89;
  letter-spacing: -0.02em;
}

.person-posts.blog-page .post-card__by-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #2b353f;
  text-decoration: none;
}

.person-posts.blog-page .post-card__excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: #2b353f;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4;
}

.person-posts.blog-page .post-card__excerpt p,
.person-posts.blog-page .post-card__excerpt span,
.person-posts.blog-page .post-card__excerpt a {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: inherit;
}

.person-posts.blog-page .post-card__excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.person-posts.blog-page .post-card__cats {
  margin-top: auto;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.08em;
}

.person-posts.blog-page .post-card__cat-link {
  color: #6f7a89;
  text-decoration: none;
  font-weight: 500;
}

.person-posts.blog-page .pagination {
  margin: 40px 0 0;
  padding: 0 !important;
}

.person-posts.blog-page .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.person-posts.blog-page .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 43px;
  font-size: 18px !important;
}

.person-posts.blog-page .pagination .page-numbers.current {
  background: #ffbf00 !important;
}

.person-posts.blog-page .pagination span.page-numbers.prev,
.person-posts.blog-page .pagination span.page-numbers.next {
  color: #c4cdd8 !important;
  background: transparent !important;
}

.person-post-card:nth-child(5n + 1) {
  --person-post-accent: #cd6f47;
}

.person-post-card:nth-child(5n + 2) {
  --person-post-accent: #cdc747;
}

.person-post-card:nth-child(5n + 3) {
  --person-post-accent: #519872;
}

.person-post-card:nth-child(5n + 4) {
  --person-post-accent: #516c99;
}

.person-post-card:nth-child(5n + 5) {
  --person-post-accent: #985151;
}

/* Blog card вЂ“ horizontal layout */
.person-post-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  min-height: 240px;
}

.person-post-card__img-wrap {
  position: relative;
  width: 350px;
  height: 240px;
  flex-shrink: 0;
  background: var(--person-post-accent, #cd6f47);
  padding: 4px 8px 8px 0;
  box-sizing: border-box;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.person-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-post-card__img--placeholder {
  width: 100%;
  height: 100%;
  background-color: #c4cdd8;
}

.person-post-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 240px;
}

.person-post-card__category {
  font-size: 16px;
  font-weight: 500;
  color: #6f7a89;
  text-transform: uppercase;
  line-height: 1.25;
}

.person-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.person-post-card__title {
  font-size: 24px;
  font-weight: 600;
  color: #07121f;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.person-post-card__title-link {
  color: inherit;
  text-decoration: none;
}

.person-post-card__title-link:hover {
  color: #ffbf00;
}

.person-post-card__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.person-post-card__author {
  font-size: 18px;
  font-weight: 400;
  color: #2b353f;
  line-height: 1.5;
}

.person-post-card__author strong {
  font-weight: 600;
}

.person-post-card__date {
  font-size: 18px;
  font-weight: 400;
  color: #6f7a89;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.person-post-card__excerpt {
  font-size: 18px;
  font-weight: 400;
  color: #2b353f;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.person-post-card__excerpt p {
  margin: 0;
}

.person-post-card__excerpt p,
.person-post-card__excerpt span,
.person-post-card__excerpt a {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  line-height: inherit;
}

.person-post-card__excerpt strong,
.person-post-card__excerpt b {
  font-weight: 600;
}

.person-post-card__excerpt-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.person-post-card__excerpt-link:hover .person-post-card__excerpt {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.person-post-card__cat-link {
  color: inherit;
  text-decoration: none;
}

.person-post-card__cat-link:hover {
  text-decoration: underline;
}

/* ---- PAGINATION ---- */
.person-posts__pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.person-posts__pages {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.person-posts__pages .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-width: 43px;
  height: 43px;
  font-size: 18px;
  font-weight: 600;
  color: #07121f;
  text-decoration: none;
  line-height: 1.5;
}

.person-posts__pages .page-numbers.current {
  background: #ffbf00;
}

.person-posts__pages .page-numbers.dots {
  min-width: 18px;
  padding-left: 6px;
  padding-right: 6px;
}

.person-posts__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #07121f;
  line-height: 1.5;
  text-decoration: none;
}

.person-posts__nav--prev {
  min-width: 109px;
}

.person-posts__nav--next {
  min-width: 75px;
}

.person-posts__nav.is-disabled {
  color: #c4cdd8;
  pointer-events: none;
}

.person-posts__nav:not(.is-disabled):hover {
  color: #ffbf00;
}

.person-posts__nav,
.person-posts__pages .page-numbers {
  color: #07121f;
}

/* ---- REQUEST CV ---- */
.person-cv-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: #faf8f5;
}

.person-cv-section .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 120px 20px 320px;
  box-sizing: border-box;
}

.person-cv-section .wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  background-color: #faf8f5;
}

.person-cv-section .information {
  width: 100%;
  max-width: 510px;
  min-width: 0;
  z-index: 2;
}

.person-cv-section__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 510px;
}

.person-cv-section__title {
  font-size: 48px;
  font-weight: 600;
  color: #07121f;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.person-cv-section__desc {
  font-size: 18px;
  font-weight: 400;
  color: #2b353f;
  line-height: 1.5;
  margin: 0;
  max-width: 510px;
}

.person-cv-section .form {
  width: 100%;
  max-width: 620px;
  padding-right: 110px;
  box-sizing: border-box;
  z-index: 2;
}

.person-cv-section__form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 510px;
  margin-left: auto;
}

.person-cv-section__decor {
  position: absolute;
  left: max(20px, calc(50% - 720px));
  bottom: 0;
  display: block;
  width: min(600px, 100%);
  max-width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* CF7 form styling inside Request CV */
.person-cv-section .wpcf7 {
  width: 100%;
}

.person-cv-section .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.person-cv-section .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.person-cv-section .wpcf7-form p {
  margin: 0;
}

.person-cv-section .wpcf7-form > p > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.person-cv-section label {
  font-size: 18px;
  font-weight: 600;
  color: #0c1e34;
  line-height: 1.5;
}

.person-cv-section .hidden-fields-container,
.person-cv-section .akismet-fields-container,
.person-cv-section .maspik-field {
  display: none !important;
}

.person-cv-section .file-image {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  cursor: pointer;
}

.person-cv-section .file-image:focus-visible {
  outline: 2px solid #e0cfb7;
  outline-offset: 4px;
}

.person-cv-section .file-image::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: url("../img/file.svg") center/contain no-repeat;
}

.person-cv-section .file-image p:not(.attach-text) {
  display: none;
}

.person-cv-section .file-image .attach-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0c1e34;
  line-height: 1.5;
}

.person-cv-section input[type="email"],
.person-cv-section input[type="text"],
.person-cv-section textarea {
  width: 100%;
  border: 2px solid #ece6d5;
  border-radius: 0;
  padding: 16px;
  font-size: 18px;
  font-weight: 400;
  font-family: inherit;
  color: #0c1e34;
  background: transparent;
  box-sizing: border-box;
  outline: none;
}

.person-cv-section input[type="email"],
.person-cv-section input[type="text"] {
  height: 60px;
  min-height: 60px;
}

.person-cv-section textarea {
  min-height: 234px;
  resize: none;
}

.person-cv-section input[type="email"]:focus,
.person-cv-section input[type="text"]:focus,
.person-cv-section textarea:focus {
  border-color: #e0cfb7;
}

.person-cv-section input[type="email"]::placeholder,
.person-cv-section input[type="text"]::placeholder,
.person-cv-section textarea::placeholder {
  color: #939ca6;
}

.person-cv-section .wpcf7-checkbox {
  display: block;
}

.person-cv-section .wpcf7-list-item {
  margin: 0;
  display: flex;
}

.person-cv-section .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.person-cv-section .wpcf7-list-item input[type="checkbox"] {
  position: relative;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  border: 2px solid #e0cfb7;
  background: transparent;
}

.person-cv-section .wpcf7-list-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #07121f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.person-cv-section .wpcf7-list-item-label {
  font-size: 18px;
  font-weight: 600;
  color: #0c1e34;
  line-height: 1.5;
}

.person-cv-section .wpcf7-form > p.m.normal {
  font-size: 14px;
  font-weight: 400;
  color: #6f7a89;
  line-height: 1.5;
}

.person-cv-section .wpcf7-form > p.m.normal a {
  color: #0c1e34;
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #ffbf00;
}

.person-cv-section .wpcf7-form > p.m.normal a:hover {
  background: #ffbf00;
}

.person-cv-section input[type="submit"] {
  min-height: 59px;
  border: 2px solid #ffbf00;
  border-radius: 0;
  background: transparent;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  color: #07121f;
  cursor: pointer;
  line-height: 1.5;
  align-self: flex-start;
  margin-top: 0;
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.person-cv-section input[type="submit"]:disabled {
  border-color: #ffbf00;
  background: transparent;
  color: #07121f;
  cursor: not-allowed;
}

.person-cv-section input[type="submit"].button-primary,
.person-cv-section input[type="submit"]:not(:disabled) {
  border-color: #ffbf00;
  background: transparent;
  color: #07121f;
  cursor: pointer;
}

.person-cv-section input[type="submit"]:not(:disabled):hover {
  background: #ffbf00;
}

.person-cv-section .wpcf7-form label br {
  display: none;
}

.person-cv-section .wpcf7-spinner {
  margin: 0 0 0 12px;
}

.person-cv-section .wpcf7-response-output {
  margin: 0;
  padding: 12px 16px;
  border-width: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #2b353f;
}

/* ---- RESPONSIVE ---- */

/* Match header: padding-left/right 20px at ≤1460px, 0 above */
@media screen and (max-width: 1460px) {
  .person-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .person-divider__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .person-content__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 1100px) {
  .person-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 43.8vw);
    padding: 140px 20px 40px;
    min-height: auto;
    gap: 24px;
    align-items: start;
  }

  .person-hero__inner::before {
    top: 8px;
    right: calc(clamp(220px, 43.8vw, 338px) - 36px);
    width: 320px;
    height: 310px;
  }

  .person-hero__content {
    max-width: 366px;
  }

  .person-hero__photo-wrap {
    width: min(100%, 338px);
    height: auto;
    aspect-ratio: 338 / 331;
    margin-left: 0;
  }

  .person-posts.blog-page .post-card {
    gap: 20px;
    min-height: 215px;
  }

  .person-posts.blog-page .post-card__media {
    flex: 0 0 295px;
    width: 295px;
    height: 215px;
  }

  .person-posts.blog-page .post-card__content {
    min-height: 215px !important;
  }

  .person-posts.blog-page .post-card__title {
    font-size: 20px;
    line-height: 1.2;
  }

  .person-content__inner {
    padding: 80px 20px;
  }

  .person-divider__inner {
    padding: 0 20px;
  }

  .person-post-card {
    gap: 20px;
    min-height: 212px;
  }

  .person-post-card__img-wrap {
    width: clamp(240px, 41vw, 295px);
    height: auto;
    aspect-ratio: 295 / 212;
  }

  .person-post-card__content {
    min-height: auto;
  }

  .person-post-card__title {
    font-size: 20px;
  }

  .person-post-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .person-post-card__excerpt {
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }

  .person-cv-section {
    overflow: hidden;
  }

  .person-cv-section .container {
    padding: 96px 40px 280px;
  }

  .person-cv-section .wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .person-cv-section .information,
  .person-cv-section .form,
  .person-cv-section__form,
  .person-cv-section__text,
  .person-cv-section__desc {
    max-width: 100%;
  }

  .person-cv-section .form {
    padding-right: 0;
  }

  .person-cv-section__decor {
    left: 40px;
    width: min(720px, calc(100vw - 80px));
  }
}

@media screen and (max-width: 768px) {
  .person-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 44vw);
    min-height: 0;
    padding: 104px 20px 40px;
    gap: 16px;
  }

  .person-hero__inner::before {
    top: -8px;
    right: calc(clamp(180px, 44vw, 338px) - 24px);
    width: 240px;
    height: 233px;
  }

  .person-hero__content {
    max-width: none;
  }

  .person-hero__name {
    font-size: 40px;
  }

  .person-hero__job {
    font-size: 30px;
    line-height: 1.35;
  }

  .person-hero__email,
  .person-hero__phone,
  .person-hero__bio {
    font-size: 16px;
  }

  .person-divider__inner {
    padding: 0 20px;
  }

  .person-content__inner {
    padding: 60px 20px 0;
    gap: 32px;
  }

  .person-posts.blog-page .post-card__meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .person-posts.blog-page .post-card__excerpt {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3;
  }

  .person-posts.blog-page .post-card__excerpt p {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3;
  }

  .person-post-card {
    gap: 16px;
  }

  .person-post-card__content {
    gap: 12px;
  }

  .person-post-card__title {
    font-size: 18px;
  }

  .person-post-card__category {
    font-size: 12px;
  }

  .person-post-card__author,
  .person-post-card__date,
  .person-post-card__excerpt {
    font-size: 14px;
  }

  .person-cv-section {
    overflow: hidden;
  }

  .person-cv-section .container {
    padding: 80px 24px 280px;
  }

  .person-cv-section__title {
    font-size: 40px;
  }

  .person-cv-section .wpcf7-form {
    gap: 20px;
  }

  .person-cv-section__decor {
    left: 24px;
    width: min(560px, calc(100vw - 48px));
  }
}

@media screen and (max-width: 560px) {
  .person-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 20px 32px;
    row-gap: 16px;
  }

  .person-hero__inner::before {
    top: -2px;
    right: 4px;
    width: 188px;
    height: 182px;
  }

  .person-hero__content {
    display: contents;
  }

  .person-hero__name-block {
    order: 1;
    max-width: none;
    padding-right: 0;
  }

  .person-hero__details {
    order: 3;
    width: 100%;
    gap: 12px;
  }

  .person-hero__name {
    font-size: 28px;
  }

  .person-hero__job {
    font-size: 22px;
    line-height: 1.4;
  }

  .person-hero__contacts {
    gap: 6px;
  }

  .person-hero__email,
  .person-hero__phone,
  .person-hero__bio {
    font-size: 12px;
  }

  .person-hero__photo-wrap {
    order: 2;
    justify-self: start;
    width: calc(100% - 12px);
    max-width: none;
    height: auto;
    aspect-ratio: 330 / 319;
  }

  .person-hero__img {
    object-position: center top;
  }

  .person-divider__inner {
    padding: 0 20px;
  }

  .person-content__inner {
    padding: 32px 20px 0;
    gap: 32px;
  }

  .person-content__title {
    font-size: 18px;
  }

  .person-tag-list {
    gap: 8px;
  }

  .person-tag {
    padding: 6px 10px;
    border-width: 1px;
    font-size: 12px;
  }

  .person-tag--industry {
    font-size: 12px;
    letter-spacing: 0;
  }

  .person-cert {
    gap: 10px;
    font-size: 12px;
  }

  .person-cert::before {
    width: 6px;
    height: 6px;
    margin-top: 6px;
  }

  .person-posts__heading {
    font-size: 32px;
  }

  .person-posts__list {
    gap: 0;
  }

  .person-posts.blog-page .blog-grid {
    gap: 0;
  }

  .person-posts.blog-page {
    --inactive-bg: #f1efeb;
    --inactive-color: #b0b0b0;
  }

  /* Cause: person-page drifted from the working mobile blog-card geometry in two places: it moved the decorative frame off the media box and tried to space cards with container gap instead of the card itself. Keep the frame on the media box and use card bottom margin so the category always has more air before the next post. */
  .person-posts.blog-page .post-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    gap: 16px !important;
    min-height: auto !important;
    padding-bottom: 56px !important;
  }

  .person-posts.blog-page .post-card:last-child {
    padding-bottom: 0 !important;
  }

  .person-posts.blog-page .post-card .post-card__media,
  .person-posts.blog-page .post-card .post-card__thumb {
    display: block !important;
    position: relative !important;
    flex: none !important;
    width: 100% !important;
    height: 240px !important;
    aspect-ratio: auto;
    margin: 0 auto 12px auto !important;
    box-sizing: border-box !important;
  }

  .person-posts.blog-page .post-card .post-card__media {
    padding: 0 !important;
  }

  .person-posts.blog-page .post-card .post-card__thumb {
    padding: 0 !important;
  }

  .person-posts.blog-page .post-card .post-card__thumb {
    z-index: 2 !important;
  }

  .person-posts.blog-page .post-card .post-card__media::before,
  .person-posts.blog-page .post-card .post-card__thumb::before,
  .person-posts.blog-page .post-card .post-card__thumb::after {
    content: none !important;
    display: none !important;
  }

  .person-posts.blog-page .post-card .post-card__media::after {
    content: none !important;
    display: none !important;
  }

  .person-posts.blog-page .post-card .post-card__media img,
  .person-posts.blog-page .post-card .post-card__thumb img,
  .person-posts.blog-page .post-card .post-card__img--placeholder {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
  }

  .person-posts.blog-page .post-card .post-card__content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: auto !important;
    gap: 12px !important;
    padding: 0 8px 0 6px !important;
    box-sizing: border-box !important;
  }

  .person-posts.blog-page .post-card__title,
  .person-posts.blog-page .post-card__title a {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .person-posts.blog-page .post-card__meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
  }

  .person-posts.blog-page .post-card__by-label,
  .person-posts.blog-page .post-card__by-name,
  .person-posts.blog-page .post-card__date {
    font-size: 12px !important;
  }

  .person-posts.blog-page .post-card__excerpt {
    font-size: 14px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5;
  }

  .person-posts.blog-page .post-card__excerpt p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5;
    overflow: hidden !important;
  }

  .person-posts.blog-page .post-card__cats {
    margin-top: 8px !important;
    padding-top: 0 !important;
    font-size: 12px !important;
  }

  .person-posts.blog-page .pagination {
    margin: 32px 0 0 !important;
    padding: 0 !important;
  }

  .person-posts.blog-page .nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
  }

  .person-posts.blog-page .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #001d35 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .person-posts.blog-page .page-numbers.current {
    background: #ffbc00 !important;
  }

  .person-posts.blog-page .prev.page-numbers,
  .person-posts.blog-page .next.page-numbers {
    background: #ffbc00 !important;
    font-size: 0 !important;
  }

  .person-posts.blog-page .prev.page-numbers::before {
    content: "<" !important;
    font-size: 17px !important;
  }

  .person-posts.blog-page .next.page-numbers::before {
    content: ">" !important;
    font-size: 17px !important;
  }

  .person-posts.blog-page span.page-numbers.prev.inactive,
  .person-posts.blog-page span.page-numbers.next.inactive {
    background: var(--inactive-bg) !important;
    color: #c4cdd8 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    font-size: 0 !important;
  }

  .person-posts.blog-page .pagination .dots {
    min-width: 22px !important;
  }

  .person-post-card {
    flex-direction: column;
    gap: 10px;
    min-height: auto;
  }

  .person-post-card__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 330 / 188;
  }

  .person-post-card__content {
    min-height: auto;
    gap: 8px;
  }

  .person-post-card__title {
    font-size: 20px;
  }

  .person-post-card__category {
    font-size: 12px;
  }

  .person-post-card__author,
  .person-post-card__date {
    font-size: 12px;
  }

  .person-post-card__excerpt {
    font-size: 14px;
    line-clamp: 4;
    -webkit-line-clamp: 4;
  }

  .person-posts__pagination {
    justify-content: center;
    gap: 8px;
  }

  .person-posts__nav,
  .person-posts__pages .page-numbers {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .person-posts__pages .page-numbers.dots {
    min-width: 14px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .person-posts__nav--prev {
    min-width: 32px;
  }

  .person-posts__nav--next {
    min-width: 32px;
    background: #ffbf00;
    border: 1px solid #ffbf00;
  }

  .person-posts__nav {
    font-size: 0;
    padding: 0;
    border: 1px solid #ece6d5;
  }

  .person-posts__nav::before {
    font-size: 18px;
    line-height: 1;
  }

  .person-posts__nav--prev::before {
    content: "\2039";
  }

  .person-posts__nav--next::before {
    content: "\203A";
  }

  .person-posts__nav.is-disabled {
    color: #c4cdd8;
    background: transparent;
    border-color: #ece6d5;
  }

  .person-posts__nav--next.is-disabled {
    background: transparent;
    border-color: #ece6d5;
  }

  .person-posts__nav--prev:not(.is-disabled) {
    color: #07121f;
    background: transparent;
  }

  .person-posts__nav--next:not(.is-disabled) {
    color: #07121f;
  }

  .person-cv-section {
    overflow: hidden;
  }

  .person-cv-section .container {
    padding: 64px 12px 156px;
  }

  .person-cv-section__title {
    font-size: 32px;
  }

  .person-cv-section__desc {
    max-width: none;
    font-size: 14px;
  }

  .person-cv-section__form {
    max-width: none;
    gap: 20px;
  }

  .person-cv-section .wpcf7-form {
    gap: 20px;
  }

  .person-cv-section label {
    font-size: 14px;
  }

  .person-cv-section .wpcf7-list-item label {
    gap: 12px;
  }

  .person-cv-section .wpcf7-list-item-label {
    font-size: 14px;
  }

  .person-cv-section input[type="email"],
  .person-cv-section input[type="text"],
  .person-cv-section textarea {
    padding: 14px;
    font-size: 14px;
  }

  .person-cv-section textarea {
    min-height: 188px;
  }

  .person-cv-section .wpcf7-form > p.m.normal {
    font-size: 12px;
  }

  .person-cv-section input[type="submit"] {
    padding: 12px 18px;
    font-size: 14px;
  }

  .person-cv-section__decor {
    left: 12px;
    width: min(360px, calc(100vw - 24px));
  }
}

@media screen and (min-width: 376px) and (max-width: 629px) {
  .person-posts.blog-page .post-card .post-card__thumb::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: -8px !important;
    bottom: -8px !important;
    z-index: 10 !important;
    pointer-events: none !important;
    border-top: 4px solid var(--person-post-accent) !important;
    border-right: 8px solid var(--person-post-accent) !important;
    border-bottom: 8px solid var(--person-post-accent) !important;
    clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%) !important;
  }

  .person-posts.blog-page .post-card .post-card__media::after,
  .person-posts.blog-page .post-card .post-card__thumb::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    width: 12px !important;
    height: 12px !important;
    background: #faf8f5 !important;
    transform: translate(50%, -50%) rotate(45deg) !important;
    z-index: 11 !important;
  }
}

@media screen and (max-width: 375px) {
  .person-posts.blog-page .post-card .post-card__media::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 100 !important;
    pointer-events: none !important;
    background: none !important;
    border-top: 4px solid var(--person-post-accent) !important;
    border-right: 8px solid var(--person-post-accent) !important;
    border-bottom: 8px solid var(--person-post-accent) !important;
    clip-path: polygon(0px 0px, 99% 0px, 100% 3%, 100% 100%, 1.5% 100%, 0px 97%) !important;
  }

  .person-posts.blog-page .post-card .post-card__media::after,
  .person-posts.blog-page .post-card .post-card__thumb::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    width: 12px !important;
    height: 12px !important;
    background: #faf8f5 !important;
    transform: translate(50%, -50%) rotate(45deg) !important;
    z-index: 11 !important;
  }

  .person-posts.blog-page .post-card .post-card__media img,
  .person-posts.blog-page .post-card .post-card__thumb img {
    width: 98% !important;
    height: 97% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 374px) {
  .person-posts.blog-page .pagination {
    margin: 24px 0 0 !important;
  }

  .person-posts.blog-page .nav-links {
    gap: 2px !important;
  }

  .person-posts.blog-page .page-numbers {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }

  .person-posts.blog-page .prev.page-numbers::before,
  .person-posts.blog-page .next.page-numbers::before {
    font-size: 15px !important;
  }

  /* Cause: on the narrowest phones the corner cut needs the same inward nudge as the working blog cards. */
  .person-posts.blog-page .post-card .post-card__media::after,
  .person-posts.blog-page .post-card .post-card__thumb::after {
    right: 0 !important;
    transform: translate(0, -50%) rotate(45deg) !important;
  }
}

/* Keep the line clamp on the shared excerpt wrapper so multi-paragraph excerpts do not stack visible blocks. */
.person-posts.blog-page .post-card__excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.person-posts.blog-page .post-card__excerpt > p {
  display: inline !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow: visible !important;
}