/* Company Profile page — scrollable PDF reader */

.cp-profile {
  position: relative;
  background:
    radial-gradient(circle at 12% 10%, rgba(225, 6, 0, 0.14), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(72, 114, 12, 0.12), transparent 28%),
    linear-gradient(180deg, #1f1f1f 0%, #2a2a2a 48%, #1b1b1b 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 90px 0 110px;
  overflow: hidden;
}

.cp-profile__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(70% 0% 0%);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-profile__header.is-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0% 0% 0%);
}

.cp-profile__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(225, 6, 0, 0.92);
  font-weight: 700;
}

.cp-profile__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
}

.cp-profile__description {
  max-width: 640px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
}

.cp-profile__reader {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.cp-profile__spine {
  display: none;
}

@media (min-width: 1200px) {
  .cp-profile__spine {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -72px;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 0;
  }

  .cp-profile__spine span {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.05);
  }
}

.cp-profile__empty {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.cp-profile__empty-card {
  max-width: 520px;
  text-align: center;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.cp-profile__empty-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #fff;
}

.cp-profile__empty-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.cp-viewer {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    #151515;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cp-viewer--fallback {
  padding: 48px 28px;
  text-align: center;
}

.cp-viewer--fallback p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.7);
}

.cp-viewer__fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cp-viewer__progress {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 5;
  overflow: hidden;
}

.cp-viewer__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #e10600, #ff5a4f);
  transition: transform 0.15s linear;
}

.cp-viewer__toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(10px);
}

.cp-viewer__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cp-viewer__file {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 320px);
}

.cp-viewer__size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.cp-viewer__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cp-viewer__page-label,
.cp-viewer__zoom {
  min-width: 64px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.cp-viewer__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 2px;
}

.cp-viewer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cp-viewer__icon-btn:hover:not(:disabled) {
  background: rgba(225, 6, 0, 0.16);
  border-color: rgba(225, 6, 0, 0.45);
  color: #fff;
}

.cp-viewer__icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cp-viewer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  background: #e10600;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cp-viewer__btn:hover {
  background: #b90400;
  color: #fff !important;
  transform: translateY(-1px);
}

.cp-viewer__btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88) !important;
}

.cp-viewer__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.cp-viewer__stage {
  height: min(82vh, 980px);
  overflow: auto;
  outline: none;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 40%),
    #0f0f0f;
}

.cp-viewer__stage--scroll {
  padding: 18px 12px 36px;
}

.cp-viewer__stage::-webkit-scrollbar {
  width: 10px;
}

.cp-viewer__stage::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 0, 0.55);
  border-radius: 999px;
}

.cp-viewer__stage::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.cp-viewer__loading,
.cp-viewer__fallback-inline {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 24px;
}

.cp-viewer__spinner {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #e10600;
  border-radius: 50%;
  animation: cp-spin 0.8s linear infinite;
}

@keyframes cp-spin {
  to {
    transform: rotate(360deg);
  }
}

.cp-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cp-viewer__page {
  position: relative;
  width: min(100%, 920px);
  min-height: 180px;
  opacity: 0.55;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.cp-viewer__page.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.cp-viewer__page canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  background: #fff;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.cp-viewer__page-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2a2a2a 0%, #353535 50%, #2a2a2a 100%);
  background-size: 200% 100%;
  animation: cp-shimmer 1.2s linear infinite;
}

.cp-viewer__page.is-ready .cp-viewer__page-skeleton {
  display: none;
}

@keyframes cp-shimmer {
  to {
    background-position: -200% 0;
  }
}

.cp-viewer__page-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.site-footer-credit {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
  padding: 18px 0;
  text-align: center;
}

.site-footer-credit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-credit a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-credit a:hover {
  color: #e10600;
}

@media (max-width: 767px) {
  .cp-profile {
    padding: 70px 0 80px;
  }

  .cp-viewer__toolbar {
    padding: 14px 12px;
  }

  .cp-viewer__file {
    max-width: 100%;
  }

  .cp-viewer__btn span {
    display: none;
  }

  .cp-viewer__stage {
    height: min(78vh, 860px);
  }

  .cp-viewer__stage--scroll {
    padding: 14px 8px 28px;
  }

  .cp-viewer__pages {
    gap: 14px;
  }

  .site-footer-credit {
    padding: 16px 12px;
  }

  .site-footer-credit p {
    font-size: 12px;
  }
}
