:root {
  --cg-bg: #f5f2eb;
  --cg-panel: #fbfaf7;
  --cg-border: #e6ded1;
  --cg-text: #35515a;
  --cg-muted: #667a80;
  --cg-teal: #0f7478;
  --cg-gold: #ccb07a;
}
body.page-template-default,
body.page,
body { background: var(--cg-bg); }
.cg-about-page {
  background: var(--cg-bg);
  color: var(--cg-text);
}
.cg-about-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 80px;
}
.cg-about-hero,
.cg-founder-card,
.cg-about-cta,
.cg-panel {
  background: var(--cg-panel);
  border: 1px solid var(--cg-border);
  border-radius: 28px;
}
.cg-about-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  min-height: 560px;
}
.cg-about-hero__content {
  padding: 64px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cg-eyebrow,
.cg-section-kicker {
  display: inline-block;
  color: var(--cg-gold);
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: 18px;
}
.cg-about-page h1,
.cg-about-page h2,
.cg-about-page h3 {
  color: #1b5960;
  line-height: .98;
  font-weight: 500;
}
.cg-about-page h1,
.cg-about-page h2 { 
  font-family: "Cormorant Garamond", "Iowan Old Style", "Baskerville", Georgia, serif;
}
.cg-about-page h1 { font-size: clamp(52px, 5vw, 92px); margin: 0 0 24px; max-width: 12ch; }
.cg-about-hero__content p,
.cg-about-intro__text p,
.cg-founder-card__content p,
.cg-about-cta p,
.cg-team-section__head p,
.cg-team-card p,
.cg-about-extra-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cg-muted);
  font-size: 18px;
  line-height: 1.8;
}
.cg-link-arrow,
.cg-link-soft {
  color: var(--cg-teal);
  text-decoration: none;
  font-weight: 700;
}
.cg-link-arrow:hover,
.cg-link-soft:hover { opacity: .8; }
.cg-about-hero__media {
  position: relative;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.1));
}
.cg-about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cg-about-hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  background: linear-gradient(90deg, rgba(251,250,247,1), rgba(251,250,247,0));
  z-index: 2;
  pointer-events: none;
}
.cg-about-hero__placeholder {
  height: 100%; display:flex; align-items:center; justify-content:center;
}
.cg-about-hero__placeholder img { width:min(190px,40%); height:auto; opacity:.18; object-fit:contain; }
.cg-about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 72px 6px 24px;
}
.cg-about-intro h2 { font-size: clamp(42px, 4vw, 72px); margin: 0; max-width: 10ch; }
.cg-about-intro__text { padding-top: 54px; }
.cg-founder-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  padding: 34px;
  align-items: center;
  margin-top: 18px;
}
.cg-founder-card__frame {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f6f1, #f0ece3);
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}
.cg-founder-card__frame img { width:100%; height:auto; display:block; object-fit:contain; }
.cg-founder-card__content h2 { font-size: clamp(34px, 4vw, 58px); margin: 0 0 6px; }
.cg-founder-card__content h3 {
  margin: 0 0 22px;
  font-size: 24px;
  color: var(--cg-teal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.25;
}
.cg-richtext p { margin: 0 0 18px; }
.cg-button-primary,
.cg-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 0;
  padding: 16px 26px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.cg-button-primary {
  background: var(--cg-teal);
  color: #fff;
}
.cg-button-secondary {
  background: transparent;
  color: var(--cg-teal);
  border: 1px solid rgba(15,116,120,.28);
}
.cg-button-primary:hover,
.cg-button-secondary:hover { transform: translateY(-2px); opacity: .96; }
.cg-team-section { padding: 82px 0 12px; }
.cg-team-section__head {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}
.cg-team-section__head h2 { font-size: clamp(36px, 4vw, 60px); margin: 0; max-width: 11ch; }
.cg-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cg-team-card {
  background: var(--cg-panel);
  border: 1px solid var(--cg-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.cg-team-card__media { aspect-ratio: 4/3; background:#f0ece3; }
.cg-team-card__media img { width:100%; height:100%; object-fit:cover; display:block; }
.cg-team-card__body { padding: 24px; display:flex; flex-direction:column; flex:1; }
.cg-team-card h3 { margin: 0 0 12px; font-size: 30px; font-family: "Cormorant Garamond", Georgia, serif; line-height:1.05; }
.cg-team-card p { font-size: 16px; margin: 0 0 16px; }
.cg-team-card__actions { margin-top: auto; display:flex; align-items:center; gap:18px; flex-wrap: wrap; }
.cg-about-extra-content { padding: 6px 0 0; }
.cg-panel { padding: 32px; margin-top: 24px; }
.cg-panel > *:first-child { margin-top: 0; }
.cg-panel > *:last-child { margin-bottom: 0; }
.cg-about-cta {
  margin-top: 54px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cg-about-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -26px;
  width: 240px;
  height: 240px;
  background: url('../img/cg-isotipo.png') no-repeat center/contain;
  opacity: .07;
  pointer-events: none;
}
.cg-about-cta h2 { font-size: clamp(36px, 4vw, 64px); margin: 0 0 12px; max-width: 12ch; }

@media (max-width: 1024px) {
  .cg-about-hero,
  .cg-about-intro,
  .cg-founder-card,
  .cg-team-section__head,
  .cg-about-cta {
    grid-template-columns: 1fr;
  }
  .cg-about-hero { min-height: 0; }
  .cg-about-hero__content { padding: 46px 28px 18px; }
  .cg-about-hero__media { min-height: 360px; }
  .cg-about-intro { gap: 18px; padding: 54px 0 16px; }
  .cg-about-intro__text { padding-top: 0; }
  .cg-founder-card { padding: 22px; }
  .cg-founder-card__media { max-width: 420px; }
  .cg-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-about-cta { padding: 34px 28px; }
}
@media (max-width: 640px) {
  .cg-about-shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .cg-about-hero,
  .cg-founder-card,
  .cg-panel,
  .cg-about-cta { border-radius: 24px; }
  .cg-about-page h1 { font-size: 58px; }
  .cg-about-intro h2,
  .cg-founder-card__content h2,
  .cg-team-section__head h2,
  .cg-about-cta h2 { font-size: 42px; }
  .cg-about-hero__content p,
  .cg-about-intro__text p,
  .cg-founder-card__content p,
  .cg-about-cta p,
  .cg-team-section__head p,
  .cg-team-card p { font-size: 17px; line-height: 1.65; }
  .cg-team-grid { grid-template-columns: 1fr; }
  .cg-button-primary, .cg-button-secondary { width: 100%; justify-content: center; }
}
