/* Core Values page: one-line headline, then a cream certificate in a gold foil frame,
   stamped with a gold seal (Revival gold, chip logo in the middle). Marcos's pick: option D1. */
.page-values {
  --cv-cream: #fbf9f2;
  --cv-rule: #d9d3c0;
  --cv-gold: linear-gradient(135deg, #a87f1a 0%, #f9f295 38%, #e6cf57 52%, #f9f295 66%, #b8901f 100%);
  --cv-gold-ink: #7d5f0e; /* gold text on cream: 5.6:1 */
}

.cv {
  background: var(--paper) var(--dots) 0 0 / 22px 22px;
  padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px);
}

.cv-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 30px);
}

.cv h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 24em;
}

.cv h1 .ital,
.cv-cert h2 .ital {
  text-transform: none;
  color: var(--cv-gold-ink);
  letter-spacing: 0;
}

/* certificate */
.cv-cert {
  position: relative;
  background: linear-gradient(var(--cv-cream), var(--cv-cream)) padding-box, var(--cv-gold) border-box;
  border: 6px solid transparent;
  outline: 1.5px solid var(--text);
  outline-offset: -14px;
  padding: clamp(36px, 4.8vw, 58px) clamp(32px, 4.8vw, 62px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  box-shadow: var(--shadow-lg);
  margin-top: clamp(10px, 2vw, 22px);
}

.cv-corner {
  position: absolute;
  width: 46px;
  height: 46px;
}

.cv-corner svg {
  width: 100%;
  height: 100%;
}

.cv-c1 {
  top: 18px;
  left: 18px;
}

.cv-c2 {
  bottom: 18px;
  right: 18px;
  transform: rotate(180deg);
}

.cv-c3 {
  bottom: 18px;
  left: 18px;
  transform: rotate(-90deg);
}

.cv-slug {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.cv-slug b {
  color: var(--cv-gold-ink);
  font-weight: 700;
}

.cv-cert h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cv-slug,
.cv-cert h2 {
  margin-right: clamp(96px, 15vw, 170px);
}

.cv-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1.5px solid var(--text);
}

.cv-list li {
  padding: clamp(16px, 2.4vw, 26px) clamp(10px, 1.4vw, 16px);
  border-right: 1px solid var(--cv-rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cv-list li:last-child {
  border-right: 0;
}

.cv-n {
  font-family: Lora, "Lora Fallback", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cv-gold-ink);
}

.cv-v {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.cv-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1.5px solid var(--text);
  padding-top: 14px;
}

.cv-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-who i {
  font-family: Lora, "Lora Fallback", serif;
  font-size: 1.15rem;
}

.cv-who small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cv-gold-ink);
}

.cv-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1.5px solid var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cv-btn:hover {
  transform: translateY(-2px);
}

.cv-btn--gold {
  background: var(--cv-gold);
  border-color: #a87f1a;
  color: var(--ink);
}

.cv-btn--gold:hover {
  box-shadow: 0 8px 22px rgba(168, 127, 26, 0.35);
}

/* gold seal, stamped over the top right corner */
.cv-seal {
  position: absolute;
  top: clamp(-34px, -3vw, -18px);
  right: clamp(8px, 3vw, 40px);
  width: clamp(108px, 15vw, 172px);
  aspect-ratio: 1;
  transform: rotate(-9deg);
  filter: drop-shadow(0 6px 10px rgba(60, 40, 0, 0.38));
  z-index: 2;
}

.cv-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cv-seal img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-8deg) brightness(1.15);
}

.cv-seal text {
  font-family: "Bricolage Grotesque", "Bricolage Fallback", sans-serif;
  font-weight: 800;
  font-size: 11.6px;
  letter-spacing: 2.2px;
}

/* black ribbon tails under the seal */
.cv-seal::before,
.cv-seal::after {
  content: "";
  position: absolute;
  top: 66%;
  width: 24%;
  height: 52%;
  background: linear-gradient(180deg, #1b1b19, #000);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  z-index: -1;
}

.cv-seal::before {
  left: 24%;
  transform: rotate(15deg);
}

.cv-seal::after {
  right: 24%;
  transform: rotate(-15deg);
}

/* light sweep across the gold, like foil catching light */
.cv-shine {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
}

.cv-shine::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%);
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: no-preference) {
  .cv-shine::after {
    animation: cvSweep 4.5s ease-in-out 1s infinite;
  }
}

@keyframes cvSweep {
  0% {
    transform: translateX(-120%);
  }
  35%,
  100% {
    transform: translateX(120%);
  }
}

/* below the certificate */
.cv-more {
  max-width: 46em;
  color: var(--mid);
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  .cv-cert {
    padding: 40px 26px 34px;
  }

  .cv-list {
    grid-template-columns: 1fr;
  }

  .cv-list li {
    border-right: 0;
    border-bottom: 1px solid var(--cv-rule);
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .cv-list li:last-child {
    border-bottom: 0;
  }

  .cv-n {
    width: 2.2em;
    flex: none;
  }

  .cv-seal {
    width: 96px;
    top: -26px;
    right: 6px;
  }

  .cv-slug,
  .cv-cert h2 {
    margin-right: 78px;
  }

  .cv-corner {
    width: 32px;
    height: 32px;
  }
}

/* Our Mission page: the statement and the MyRevival / Synergy pair */
.cv-quote {
  font-family: Lora, "Lora Fallback", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.45;
  max-width: 34em;
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1.5px solid var(--text);
}

.cv-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--cv-rule);
}

.cv-pair > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2.4vw, 24px) clamp(10px, 1.6vw, 20px) clamp(16px, 2.4vw, 24px) 0;
  min-width: 0;
}

.cv-pair > div + div {
  border-left: 1px solid var(--cv-rule);
  padding-left: clamp(14px, 2vw, 24px);
}

.cv-pair p {
  color: var(--mid);
  max-width: 34em;
}

@media (max-width: 760px) {
  .cv-pair {
    grid-template-columns: 1fr;
  }

  .cv-pair > div + div {
    border-left: 0;
    border-top: 1px solid var(--cv-rule);
    padding-left: 0;
  }
}

.cv-pair .cv-n {
  width: auto;
}

/* founder signature in black over a signature line */
.cv-who {
  gap: 4px;
  min-width: 220px;
}

.cv-sig {
  width: 208px;
  height: auto;
  margin-bottom: -10px;
}

.cv-sig-line {
  display: block;
  height: 1.5px;
  background: var(--text);
}
