/* ============================================================
   Calmora Solutions: about page
   Loads after styles.css / work.css and reuses their tokens.
   ============================================================ */

/* ---------- Founders ---------- */

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 880px;
}

/* One founder per row: photo column stretches to the text's full height. */
.founder {
  display: grid;
  grid-template-columns: 232px 1fr;
  align-items: stretch;
  min-height: 232px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.founder:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.3);
}

.founder-photo {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.16), rgba(255, 255, 255, 0.03));
}
/* Monogram fallback: shown if the portrait file is missing. */
.founder-photo::before {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-body {
  align-self: center;
  min-width: 0;
  padding: 30px 32px;
}
.founder-body h3 { font-size: 1.125rem; margin-bottom: 3px; }

.founder-role {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.founder-body p {
  color: var(--text-dim);
  font-size: 0.9063rem;
  max-width: 54ch;
  margin-bottom: 16px;
}

.founder-mail {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  overflow-wrap: anywhere;
  transition: color 0.25s;
}
.founder-mail:hover { color: var(--accent); }
.founder-mail svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .founder { grid-template-columns: 176px 1fr; min-height: 200px; }
  .founder-body { padding: 24px 22px; }
}

@media (max-width: 540px) {
  .founder { grid-template-columns: 1fr; min-height: 0; }
  .founder-photo {
    height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}

.principle {
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.principle h3 { font-size: 0.9375rem; margin-bottom: 8px; }
.principle p { color: var(--text-dim); font-size: 0.875rem; }

.theme-flip .principle {
  background: var(--flip-card);
  border-color: rgba(4, 34, 29, 0.18);
}
.theme-flip .principle h3 { color: var(--flip-ink); }
.theme-flip .principle p { color: var(--flip-dim); }

@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
}
