/* About page — kj-templates desktop + mobile design */

.page-about {
  --ap-paper: #fffafa;
  --ap-paper-2: #f9f1f1;
  --ap-ink: #333333;
  --ap-clay: #fa5555;
  --ap-accent: #d80909;
  --ap-gut: clamp(20px, 5vw, 64px);
  --ap-wrap: min(1240px, 100%);
  background: var(--ap-paper);
  color: var(--ap-ink);
}

.page-about .ap-wrap {
  max-width: var(--ap-wrap);
  margin-inline: auto;
  padding-inline: var(--ap-gut);
}

/* Hero */
.ap-hero {
  position: relative;
  min-height: clamp(560px, 86vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #2a1f1c;
}

.ap-hero__media {
  position: absolute;
  inset: 0;
}

.ap-hero__media picture,
.ap-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center 42%;
  aspect-ratio: unset !important;
}

.ap-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 13, 0.15) 0%,
    rgba(20, 14, 13, 0.25) 40%,
    rgba(20, 14, 13, 0.72) 100%
  );
  pointer-events: none;
}

.ap-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ap-wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--ap-gut);
}

.ap-hero__title {
  margin: 0 0 26px;
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 14ch;
}

.ap-hero__lead {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Story pillars */
.ap-pillars {
  padding: clamp(64px, 9vw, 120px) 0;
}

.ap-pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.ap-pillar__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ap-pillar__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Team */
.ap-team {
  background: var(--ap-paper-2);
  border-top: 1px solid rgba(51, 51, 51, 0.07);
  border-bottom: 1px solid rgba(51, 51, 51, 0.07);
}

.ap-team__inner {
  padding: clamp(64px, 9vw, 120px) 0;
}

.ap-team__header {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.ap-team__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.ap-team__intro {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.ap-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: clamp(22px, 2.4vw, 32px);
  align-items: start;
}

.ap-member {
  background: var(--ap-paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px -14px rgba(120, 60, 50, 0.25);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .ap-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px -22px rgba(120, 60, 50, 0.4);
  }
}

.ap-member__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ap-paper-2);
  overflow: hidden;
}

.ap-member__photo picture,
.ap-member__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ap-member__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.ap-member__body {
  padding: 22px clamp(20px, 2vw, 26px) 26px;
}

.ap-member__name {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.ap-member__role {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-clay);
  margin-bottom: 14px;
}

.ap-member__bio {
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

.ap-member__bio p {
  margin: 0 0 0.75em;
}

.ap-member__bio p:last-child {
  margin-bottom: 0;
}

.ap-member__bio a {
  color: var(--ap-accent);
}

/* Mission */
.ap-mission {
  background: var(--ap-paper);
  border-top: 1px solid rgba(51, 51, 51, 0.07);
}

.ap-mission__inner {
  padding: clamp(64px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ap-mission__eyebrow {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-clay);
  margin-bottom: 22px;
}

.ap-mission__rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--ap-accent);
  margin-bottom: 26px;
}

.ap-mission__quote {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.ap-mission__quote p {
  margin: 0;
}

.ap-mission__quote em {
  font-style: italic;
}

/* Gallery (mission carousel) */
.page-about .ap-gallery__stage {
  position: relative;
  height: clamp(300px, 32vw, 460px);
  border-radius: 18px;
  overflow: hidden;
  background: #2a2422;
  box-shadow: 0 22px 44px -24px rgba(120, 60, 50, 0.4);
}

.page-about .ap-gallery__track {
  position: relative;
  height: 100%;
}

.page-about .ap-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.page-about .ap-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.page-about .ap-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-about .ap-gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.page-about .ap-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 250, 250, 0.92);
  color: var(--ap-ink);
  border: 1px solid rgba(51, 51, 51, 0.12);
  box-shadow: 0 8px 22px -10px rgba(51, 51, 51, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-about .ap-gallery__nav--prev {
  left: 16px;
}

.page-about .ap-gallery__nav--next {
  right: 16px;
}

.page-about .ap-gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-about .ap-gallery__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  padding: 0;
  background: rgba(255, 250, 250, 0.45);
  transition: all 0.35s ease;
}

.page-about .ap-gallery__dot.is-active {
  width: 28px;
  background: var(--ap-paper);
}

.page-about .ap-gallery__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-about .ap-gallery__caption {
  margin: 0;
  font-size: 13.5px;
  color: rgba(51, 51, 51, 0.7);
}

.page-about .ap-gallery__count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: rgba(51, 51, 51, 0.5);
}

/* Credentials */
.ap-credentials {
  background: var(--ap-paper-2);
  border-top: 1px solid rgba(51, 51, 51, 0.07);
}

.ap-credentials__inner {
  padding: clamp(64px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.ap-credentials__title {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

.ap-credentials__body {
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.ap-credentials__body p {
  margin: 0 0 16px;
}

.ap-credentials__body p:last-child {
  margin-bottom: 0;
}

.ap-credentials__body a {
  color: var(--ap-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-registration {
  background: var(--ap-paper);
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 20px 50px -28px rgba(120, 60, 50, 0.4);
}

.ap-registration__label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(51, 51, 51, 0.5);
  margin-bottom: 24px;
}

.ap-registration__item + .ap-registration__item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.ap-registration__item-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.ap-registration__item-value {
  font-size: 16px;
  line-height: 1.55;
}

/* Ask a question */
.ap-ask {
  background: var(--ap-paper);
  border-top: 1px solid rgba(51, 51, 51, 0.07);
}

.ap-ask__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--ap-gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.ap-ask__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ap-ask__intro {
  margin: 16px 0 32px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(51, 51, 51, 0.7);
  max-width: 420px;
}

.ap-ask__contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-ask__contact {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--ap-ink);
  transition: color 0.2s;
}

.ap-ask__contact:hover {
  color: var(--ap-accent);
}

.ap-ask__contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(216, 9, 9, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-accent);
}

.ap-ask__contact-text {
  font-size: 14.5px;
  line-height: 1.5;
}

.ap-ask__contact-text strong {
  font-weight: 600;
}

.ap-ask__contact-meta {
  color: rgba(51, 51, 51, 0.55);
}

.ap-ask__form-card {
  background: var(--ap-paper);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(51, 51, 51, 0.07);
  box-shadow: 0 20px 50px -28px rgba(120, 60, 50, 0.4);
}

.ap-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.ap-contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.ap-contact-form label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ap-ink);
}

.ap-contact-form .required {
  color: var(--ap-accent);
}

.ap-contact-form input,
.ap-contact-form textarea {
  font-family: "Montserrat", sans-serif;
  font-size: 14.5px;
  color: var(--ap-ink);
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(51, 51, 51, 0.16);
  background: var(--ap-paper-2);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ap-contact-form input:focus,
.ap-contact-form textarea:focus {
  border-color: var(--ap-accent);
}

.ap-contact-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.ap-contact-form .form-error {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ap-accent);
  margin: 0;
}

.ap-contact-form .btn--send {
  width: 100%;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 15px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--ap-accent);
  color: #fff;
  transition: transform 0.2s;
}

.ap-contact-form .btn--send:hover {
  transform: translateY(-1px);
}

.ap-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  gap: 16px;
}

.ap-form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(216, 9, 9, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-accent);
  font-size: 30px;
  font-weight: 700;
}

.ap-form-success h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.ap-form-success p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(51, 51, 51, 0.7);
  max-width: 320px;
}

/* Mobile */
@media (max-width: 767px) {
  .ap-hero {
    min-height: clamp(420px, 72vh, 540px);
  }

  .ap-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 14, 13, 0.1) 0%,
      rgba(20, 14, 13, 0.28) 45%,
      rgba(20, 14, 13, 0.78) 100%
    );
  }

  .ap-hero__inner {
    padding: 0 24px 30px;
  }

  .ap-hero__title {
    font-size: clamp(38px, 11vw, 50px);
    max-width: none;
    margin-bottom: 16px;
  }

  .ap-hero__lead {
    font-size: 15px;
  }

  .ap-pillars,
  .ap-team__inner,
  .ap-mission__inner,
  .ap-credentials__inner {
    padding-top: clamp(48px, 12vw, 64px);
    padding-bottom: clamp(48px, 12vw, 64px);
  }

  .ap-pillars__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ap-team__grid {
    grid-template-columns: 1fr;
  }

  .ap-mission__inner {
    display: block;
  }

  .ap-mission__copy {
    margin-bottom: 28px;
  }

  .ap-ask__inner {
    padding: 34px 20px 40px;
  }

  .ap-contact-form input,
  .ap-contact-form textarea {
    font-size: 16px;
  }

  .page-about .ap-gallery__nav {
    width: 40px;
    height: 40px;
  }
}
